Class ExecutionContext
Represents the main context a ModelAction operates on during its execution.
Inherited Members
Namespace: TimeCockpit.Data.DataModel.Actions
Assembly: TimeCockpit.Data.dll
Syntax
public class ExecutionContext : ModelActionContextRemarks
All the properties of the class are optional. None of the is necessary for a ModelAction to be executed successfully. This is of course only true if the executable code of the Binding of the ModelAction does not have references to the properties...
Constructors
ExecutionContext()
Declaration
public ExecutionContext()Properties
ActionResult
Gets or sets the action result.
Declaration
public IActionResult ActionResult { get; set; }Property Value
| Type | Description | 
|---|---|
| IActionResult | 
Deleted
Gets a list of all updated or delete entity objects for triggers.
Declaration
public EntityObject[] Deleted { get; }Property Value
| Type | Description | 
|---|---|
| EntityObject[] | 
InputSet
Gets or sets a list of EntityObjects that may be updated during the execution of a ModelAction.
Declaration
public IEnumerable<EntityObject> InputSet { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<EntityObject> | 
Remarks
Be aware that neither InputSetUuids nor InputSet provides a defined object order. Sorting may be required depending on the use-case.
InputSetUuids
Gets or sets a list of Uuids of the EntityObjects that may be updated during the execution of a ModelAction.
Declaration
public IEnumerable<Guid> InputSetUuids { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<System.Guid> | 
Remarks
Be aware that neither InputSetUuids nor InputSet provides a defined object order.
Inserted
Gets a list of all inserted or updated entity objects for triggers.
Declaration
public EntityObject[] Inserted { get; }Property Value
| Type | Description | 
|---|---|
| EntityObject[] | 
Parameter
Gets or sets a parameter that is handed to a ModelAction.
Declaration
public EntityObject Parameter { get; set; }Property Value
| Type | Description | 
|---|---|
| EntityObject | 
Remarks
When this property is set, a validation is performed on basis of the ValidationRules the underlying ModelEntityBase of the EntityObject has.
Exceptions
| Type | Condition | 
|---|---|
| System.Exception | If the validation of the EntityObject does not succeed, an exception is thrown who's error message is the error message of the ValidationRule. | 
ScriptOutput
Gets the script output.
Declaration
public string ScriptOutput { get; }Property Value
| Type | Description | 
|---|---|
| System.String |