Documentation
¶
Index ¶
Constants ¶
View Source
const ( WorkflowType = "persistence" State1 = "S1" State2 = "S2" State3 = "S3" TestDataAttributeKey = "test-data-attribute" TestDataAttributeKey2 = "test-data-attribute-2" TestStateLocalKey = "test-state-local" TestSearchAttributeKeywordKey = "CustomKeywordField" TestSearchAttributeKeywordValue1 = "keyword-value1" TestSearchAttributeKeywordValue2 = "keyword-value2" TestSearchAttributeKeywordArrayKey = "CustomKeywordArrayField" TestSearchAttributeIntKey = "CustomIntField" TestSearchAttributeBoolKey = "CustomBoolField" TestSearchAttributeDoubleKey = "CustomDoubleField" TestSearchAttributeDatetimeKey = "CustomDatetimeField" TestSearchAttributeTextKey = "CustomStringField" TestSearchAttributeIntValue1 = 1 TestSearchAttributeIntValue2 = 2 )
*
- This test workflow has three states, using REST controller to implement the workflow directly. *
- State1:
- - WaitUntil method will update DA, SA, & SL
- - Execute method will move to State2 with partially loaded data
- State2:
- - WaitUntil method will store attribute data
- - Execute method will move to State3 with partially loaded data
- State3:
- - WaitUntil method performs some attribute checks
- - Execute method performs checks on the attribute data and then gracefully completes the workflow
Variables ¶
View Source
var TestDataAttributeVal1 = iwfidl.EncodedObject{ Encoding: iwfidl.PtrString("json"), Data: iwfidl.PtrString("test-data-attribute-value1"), }
View Source
var TestDataAttributeVal2 = iwfidl.EncodedObject{ Encoding: iwfidl.PtrString("json"), Data: iwfidl.PtrString("test-data-attribute-value2"), }
Functions ¶
func NewHandler ¶
func NewHandler() common.WorkflowHandler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.