You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will be quite useful if user can store workflow specific state in variable. At the moment user will use either database or probably marker workflow action.
Here is how user can create workflow specific variables:
[WorkflowDescription("1.0")
public classOrderWorkflow:Workflow{//Initialization is not neededprivateVariable<bool>_state1=newVariable<bool>();privateVariable<string>_state2=newVariable<string>();privateVariable<CustomObject>_state3=newVariable<CustomObject>();[WorkflowVariable]privateint_id=0;//You can access these variables when workflow is executed[WorkflowEvent(EventName.Signal)]publicWorkflowActionOnSignal(stringsignalName){if(signalName=="set"){_state=true;}if(signalName=="get"){if(_state.Value)returnCompleteWorkflow("done");}returnIgnore;}}
Implementation note:
Should store the variables in execution state.
Lazy load the variables, when the first variable is accessed by calling DescribeWorkflowExecution API. This will avoid penalising the users who do not want to user variables.
Total deserialized JSON length of variables should not exceed the length of 32768.
The text was updated successfully, but these errors were encountered:
It will be quite useful if user can store workflow specific state in variable. At the moment user will use either database or probably marker workflow action.
Here is how user can create workflow specific variables:
Implementation note:
The text was updated successfully, but these errors were encountered: