Documentation ¶
Index ¶
Constants ¶
View Source
const ( WorkflowType = "wait_until_search_optimization" State1 = "S1" State2 = "S2" State3 = "S3" State4 = "S4" State5 = "S5" State6 = "S6" State7 = "S7" SignalName = "test-signal" )
*
- This test workflow has 7 states, using REST controller to implement the workflow directly. *
- State1:
- - Waits one second before executing
- - Execute method will loop back to State1 five times; then execute method will go to State2
- State2:
- - First execution: loops back to State2 + goes to State3
- - Second execution (after 1 second): goes to State3 and State4
- State3:
- - Waits 8 seconds
- - Execute method will gracefully complete workflow
- State4:
- - Waits on command trigger
- - Execute method will go to State5
- State5:
- - Skips waitUntil and executes momentarily
- - Execute method will go to State6 and State7
- State6:
- - Waits 4 seconds
- - Execute method will gracefully complete workflow
- State7:
- - Skips waitUntil and executes momentarily
- - Execute method will gracefully complete workflow
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler() common.WorkflowHandler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.