Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng committed May 22, 2023
1 parent 85bf6b3 commit 025eec6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iwf/workflow_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ type WorkflowState interface {
// 3. In case of dynamic workflow state implementation, return customized values instead of using empty string
GetStateId() string

// WaitUntil is the method to set up commands set up to wait for, before `Execute` API is invoked
// WaitUntil is the method to set up commands set up to wait for, before `Execute` API is invoked.
// It's optional -- use iwf.WorkflowStateDefaultsNoWaitUntil or iwf.NoWaitUntil to skip this step( Execute will be invoked instead)
//
// ctx the context info of this API invocation, like workflow start time, workflowId, etc
// input the state input
Expand All @@ -33,7 +34,7 @@ type WorkflowState interface {
///
WaitUntil(ctx WorkflowContext, input Object, persistence Persistence, communication Communication) (*CommandRequest, error)

// Execute is the method to execute and decide what to do next
// Execute is the method to execute and decide what to do next. Invoke after commands from WaitUntil are completed, or there is WaitUntil is not implemented for the state.
//
// ctx the context info of this API invocation, like workflow start time, workflowId, etc
// input the state input
Expand Down

0 comments on commit 025eec6

Please sign in to comment.