Class ExecutionContext
- Namespace
- TimeCockpit.Data.DataModel.Actions
- Assembly
- TimeCockpit.Data.dll
Represents the main context a ModelAction operates on during its execution.
public class ExecutionContext : ModelActionContext
- Inheritance
-
ObjectExecutionContext
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Remarks
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()
public ExecutionContext()
Properties
ActionResult
Gets or sets the action result.
public IActionResult ActionResult { get; set; }
Property Value
Deleted
Gets a list of all updated or delete entity objects for triggers.
public EntityObject[] Deleted { get; }
Property Value
InputSet
Gets or sets a list of EntityObjects that may be updated during the execution of a ModelAction.
public IEnumerable<EntityObject> InputSet { get; set; }
Property Value
- 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.
public IEnumerable<Guid> InputSetUuids { get; set; }
Property Value
- IEnumerable<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.
public EntityObject[] Inserted { get; }
Property Value
Parameter
Gets or sets a parameter that is handed to a ModelAction.
public EntityObject Parameter { get; set; }
Property Value
Remarks
When this property is set, a validation is performed on basis of the ValidationRules the underlying ModelEntityBase of the EntityObject has.
Exceptions
- 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.
public string ScriptOutput { get; }
Property Value
- String