Success

data class Success<T : Any, C : KlerkContext, V>(val primaryModel: ModelID<T>?, val createdModels: List<ModelID<out Any>>, val modelsWithUpdatedProps: List<ModelID<out Any>>, val deletedModels: List<ModelID<out Any>>, val transitionedModels: List<ModelID<out Any>>, val secondaryEvents: List<EventReference>, val jobs: List<Job<C, V>>, val actions: List<GeneralAction>, val authorizedModels: Map<ModelID<out Any>, Model<out Any>>, val log: List<String>) : CommandResult<T, C, V>

Note that the reason this doesn't return the whole models is because it is easy to make a mistake and show the result to the user by mistake when the user does not have permission to see the models.

Constructors

Link copied to clipboard
constructor(primaryModel: ModelID<T>?, createdModels: List<ModelID<out Any>>, modelsWithUpdatedProps: List<ModelID<out Any>>, deletedModels: List<ModelID<out Any>>, transitionedModels: List<ModelID<out Any>>, secondaryEvents: List<EventReference>, jobs: List<Job<C, V>>, actions: List<GeneralAction>, authorizedModels: Map<ModelID<out Any>, Model<out Any>>, log: List<String>)

Properties

Link copied to clipboard
Link copied to clipboard

contains the models as they are after the command. Note that if the context doesn't allow reading any of the models, that model will not be present.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val jobs: List<Job<C, V>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

the model that was created or updated directly by the command in contrast to by secondary events.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard