Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
func NewSimpleActivity ¶
type Condition ¶
type Condition interface { Node ConditionAnswerProvider() ConditionAnswerProvider WhenTrue() Node WhenFalse() Node }
type ConditionAnswerProvider ¶
type ConditionAnswerProvider interface {
ConditionAnswer() bool
}
type EventHandler ¶
type Node ¶
type Node interface { Name() string Accept(visitor NodeVisitor) }
type NodeVisitor ¶
type NodeVisitor interface { VisitTask(node Task) VisitActivity(node Activity) VisitCondition(node Condition) VisitSwitch(node Switch) VisitParallelFork(node ParallelFork) }
type ParallelFork ¶
type Switch ¶
type Switch interface { Node Cases() []*SwitchCase }
func NewSimpleSwitch ¶
func NewSimpleSwitch(name string, cases []*SwitchCase) Switch
type SwitchCase ¶
type Workflow ¶
type Workflow struct {
// contains filtered or unexported fields
}
func (*Workflow) DefaultDrawer ¶
func (w *Workflow) DefaultDrawer() *flowdiagrams.Drawer
func (*Workflow) ExecutedPathDrawer ¶
func (w *Workflow) ExecutedPathDrawer() *flowdiagrams.Drawer
type WorkflowBuilder ¶
type WorkflowBuilder struct {
// contains filtered or unexported fields
}
func NewWorkflowBuilder ¶
func NewWorkflowBuilder(initialNode Node) *WorkflowBuilder
func (*WorkflowBuilder) Build ¶
func (w *WorkflowBuilder) Build() (*Workflow, error)
func (*WorkflowBuilder) SetEventHandler ¶
func (w *WorkflowBuilder) SetEventHandler(eventHandler EventHandler) *WorkflowBuilder
Click to show internal directories.
Click to hide internal directories.