CommandResult

data class CommandResult(val stage: CommandStage, val aggregateId: String, val contextName: String, val processorName: String, val tenantId: String, val requestId: String, val commandId: String, val errorCode: String = ErrorCodes.SUCCEEDED, val errorMsg: String = ErrorCodes.SUCCEEDED_MESSAGE, val bindingErrors: List<BindingError> = emptyList(), val result: Map<String, Any> = emptyMap()) : CommandId, TenantId, RequestId, ErrorInfo, ProcessorInfo, CommandResultCapable

Constructors

Link copied to clipboard
constructor(stage: CommandStage, aggregateId: String, contextName: String, processorName: String, tenantId: String, requestId: String, commandId: String, errorCode: String = ErrorCodes.SUCCEEDED, errorMsg: String = ErrorCodes.SUCCEEDED_MESSAGE, bindingErrors: List<BindingError> = emptyList(), result: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
open override val bindingErrors: List<BindingError>
Link copied to clipboard
open override val commandId: String
Link copied to clipboard
open override val contextName: String
Link copied to clipboard
open override val errorCode: String
Link copied to clipboard
open override val errorMsg: String
Link copied to clipboard
open override val processorName: String
Link copied to clipboard
open override val requestId: String
Link copied to clipboard
open override val result: Map<String, Any>
Link copied to clipboard
Link copied to clipboard
open val succeeded: Boolean
Link copied to clipboard
open override val tenantId: String

Functions

Link copied to clipboard
fun NamedBoundedContext.getContextAlias(boundedContext: BoundedContext? = MetadataSearcher.metadata.contexts[contextName]): String
Link copied to clipboard