Documentation
¶
Index ¶
Constants ¶
View Source
const ( WorkflowType = "interstate" State1 = "S1" State21 = "S21" State22 = "S22" State31 = "S31" )
*
- This test workflow has four states, using REST controller to implement the workflow directly. *
- State1:
- - WaitUntil method does nothing
- - Execute method will move to State21 & State22:
- State21:
- - WaitUntil will proceed once channel1 has been published to
- - Execute method will move to State31:
- State22:
- - WaitUntil will delay 2s then publish on channel1
- - Execute method will delay 2s then publish on channel2 & end in a dead-end
- State31:
- - WaitUntil will proceed once channel2 has been published to
- - Execute method will gracefully complete workflow
Variables ¶
View Source
var TestVal1 = iwfidl.EncodedObject{ Encoding: iwfidl.PtrString("json"), Data: iwfidl.PtrString("test-value1"), }
View Source
var TestVal2 = iwfidl.EncodedObject{ Encoding: iwfidl.PtrString("json"), Data: iwfidl.PtrString("test-value2"), }
Functions ¶
func NewHandler ¶
func NewHandler() *handler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.