Documentation
¶
Index ¶
- type CancelSubWorkflowCommandAttr
- type CancelTimerCommandAttr
- type Command
- func NewCancelSubWorkflowCommand(id int64, subWorkflowInstance *core.WorkflowInstance) Command
- func NewCancelTimerCommand(id int64, timerID int64) Command
- func NewCompleteWorkflowCommand(id int64, result payload.Payload, err error) Command
- func NewScheduleActivityTaskCommand(id int64, name string, inputs []payload.Payload) Command
- func NewScheduleSubWorkflowCommand(id int64, parentInstance *core.WorkflowInstance, ...) Command
- func NewScheduleTimerCommand(id int64, at time.Time) Command
- func NewSideEffectCommand(id int64, result payload.Payload) Command
- type CommandState
- type CommandType
- type CompleteWorkflowCommandAttr
- type ScheduleActivityTaskCommandAttr
- type ScheduleSubWorkflowCommandAttr
- type ScheduleTimerCommandAttr
- type SideEffectCommandAttr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelSubWorkflowCommandAttr ¶ added in v0.1.0
type CancelSubWorkflowCommandAttr struct {
SubWorkflowInstance *core.WorkflowInstance
}
type CancelTimerCommandAttr ¶
type CancelTimerCommandAttr struct {
TimerScheduleEventID int64
}
type Command ¶
type Command struct {
State CommandState
ID int64
Type CommandType
Attr interface{}
}
func NewCancelSubWorkflowCommand ¶ added in v0.1.0
func NewCancelSubWorkflowCommand(id int64, subWorkflowInstance *core.WorkflowInstance) Command
func NewCancelTimerCommand ¶
type CommandState ¶
type CommandState int
const ( CommandState_Pending CommandState = iota CommandState_Committed CommandState_Done )
type CommandType ¶
type CommandType int
const ( CommandType_ScheduleActivityTask CommandType CommandType_ScheduleSubWorkflow CommandType_CancelSubWorkflow CommandType_ScheduleTimer CommandType_CancelTimer CommandType_SideEffect CommandType_CompleteWorkflow )
type ScheduleSubWorkflowCommandAttr ¶
type ScheduleSubWorkflowCommandAttr struct {
Instance *core.WorkflowInstance
Name string
Inputs []payload.Payload
}
type SideEffectCommandAttr ¶
Click to show internal directories.
Click to hide internal directories.