Documentation
¶
Index ¶
- func Validate(wf *model.Workflow, container *container.DIContiner) error
- type Flow
- type FlowMachine
- func (f *FlowMachine) Execute(tryCount int, actionId int) error
- func (f *FlowMachine) GetFlowState() model.FlowState
- func (f *FlowMachine) Init(wfName string, input map[string]any) error
- func (f *FlowMachine) MarkComplete()
- func (f *FlowMachine) MarkFailed()
- func (f *FlowMachine) MarkPaused()
- func (f *FlowMachine) MarkRunning()
- func (f *FlowMachine) MarkWaitingDelay()
- func (f *FlowMachine) MarkWaitingEvent()
- func (f *FlowMachine) MoveForward(event string, dataMap map[string]any) (bool, error)
- func (f *FlowMachine) ValidateExecutionRequest(actionId int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Flow ¶
type Flow struct {
Id string
RootAction int
Actions map[int]action.Action
FailureHandler cluster.Statehandler
SuccessHandler cluster.Statehandler
}
type FlowMachine ¶
type FlowMachine struct {
WorkflowName string
FlowId string
CurrentAction action.Action
// contains filtered or unexported fields
}
func GetFlowStateMachine ¶
func GetFlowStateMachine(wfName string, flowId string, container *container.DIContiner) (*FlowMachine, error)
func NewFlowStateMachine ¶
func NewFlowStateMachine(container *container.DIContiner) *FlowMachine
func (*FlowMachine) GetFlowState ¶
func (f *FlowMachine) GetFlowState() model.FlowState
func (*FlowMachine) MarkComplete ¶
func (f *FlowMachine) MarkComplete()
func (*FlowMachine) MarkFailed ¶
func (f *FlowMachine) MarkFailed()
func (*FlowMachine) MarkPaused ¶
func (f *FlowMachine) MarkPaused()
func (*FlowMachine) MarkRunning ¶
func (f *FlowMachine) MarkRunning()
func (*FlowMachine) MarkWaitingDelay ¶
func (f *FlowMachine) MarkWaitingDelay()
func (*FlowMachine) MarkWaitingEvent ¶
func (f *FlowMachine) MarkWaitingEvent()
func (*FlowMachine) MoveForward ¶
func (*FlowMachine) ValidateExecutionRequest ¶
func (f *FlowMachine) ValidateExecutionRequest(actionId int) error
Click to show internal directories.
Click to hide internal directories.