Documentation
¶
Index ¶
Constants ¶
View Source
const ( WorkflowType = "locking" State1 = "S1" State2 = "S2" StateWaiting = "StateWaiting" TestDataAttributeKey1 = "test-data-attribute-1" TestDataAttributeKey2 = "test-data-attribute-2" RPCName = "increase-counter" InternalChannelName = "test-channel" TestSearchAttributeKeywordKey = "CustomKeywordField" TestSearchAttributeIntKey = "CustomIntField" ShouldUnblockStateWaiting = "shouldUnblockStateWaiting" InParallelS2 = 10 NumUnusedSignals = 4 UnusedSignalChannelName = "test-unused-signal-channel" UnusedInternalChannelName = "test-unused-internal-channel" )
*
- This test workflow has three states, using REST controller to implement the workflow directly. *
- State1:
- - WaitUntil method does nothing
- - Execute method will move to State Waiting, and 10 instances of State 2
- State2:
- - WaitUntil update SA
- - Execute method will update data attributes and will gracefully complete workflow
- StateWaiting:
- - WaitUntil will proceed once the internal channel has been published to
- - Execute method will gracefully complete workflow
Variables ¶
View Source
var TestValue = &iwfidl.EncodedObject{ Encoding: iwfidl.PtrString("json"), Data: iwfidl.PtrString("data"), }
View Source
var UnblockValue = &iwfidl.EncodedObject{ Encoding: iwfidl.PtrString("json"), Data: iwfidl.PtrString(ShouldUnblockStateWaiting), }
Functions ¶
func NewHandler ¶
func NewHandler() common.WorkflowHandlerWithRpc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.