Interface IActionScriptContext
Defines an action script context.
Namespace: StylelabsStylelabs.MStylelabs.M.ScriptingStylelabs.M.Scripting.TypesStylelabs.M.Scripting.Types.V1_0Action
Assembly: Stylelabs.M.Scripting.Types.dll
Syntax
Properties
ChangeTracker
Gets used in combination with entity targets.
Declaration
Property Value
| Type | Description |
|---|---|
| IChangeTracker |
Data
Gets arguments passed through the script. Should never be null.
Declaration
Property Value
| Type | Description |
|---|---|
| JToken |
ExecutionEvent
Gets the execution event.
Declaration
Property Value
| Type | Description |
|---|---|
| ExecutionEvent |
ExecutionPhase
Gets the execution phase.
Declaration
Property Value
| Type | Description |
|---|---|
| ExecutionPhase |
ExecutionSource
Gets the execution source.
Declaration
Property Value
| Type | Description |
|---|---|
| ExecutionSource |
ExecutionType
Gets the type of execution.
Declaration
Property Value
| Type | Description |
|---|---|
| ExecutionType |
PropertyBag
Gets useful collection of string keyed string properties for case when ExecutionSource is Trigger. Use to store and retrieve information between trigger phases and in or out-of-process actions. Should never be null.
Declaration
Property Value
| Type | Description |
|---|---|
| IPropertyBag |
Remarks
Note that for ExecutionType equals to ExecutionType.OutOfProcess the bag is read only.
Result
Gets or sets output of the script, possibly null.
Declaration
Property Value
| Type | Description |
|---|---|
| JToken |
StatusCode
Gets or sets status code to return when executed through REST.
Declaration
Property Value
| Type | Description |
|---|---|
| HttpStatusCode |
Target
Gets the target.
Declaration
Property Value
| Type | Description |
|---|---|
| object |
TargetId
Gets the target id.
Declaration
Property Value
| Type | Description |
|---|---|
| long |
TargetType
Gets the target type.
Declaration
Property Value
| Type | Description |
|---|---|
| TargetType |
TriggeringUserId
Gets if applicable and available an id of the user who caused event leading to this action or id of the user explicitly requesting the action.
Declaration
Property Value
| Type | Description |
|---|---|
| long |
Methods
ToString()
Converts to string.
Declaration
Returns
| Type | Description |
|---|---|
| string |
An string. |