Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyNode ¶
type DummyNode struct {
Node
}
* Node that has the concatenation of its predecessors' results and a hard-coded value for its result.
func NewDummyNode ¶
func NewDummyNode() *DummyNode
type DummyNodeB ¶
type DummyNodeB struct {
Node
}
* Node that has a hard-coded value for its result.
func NewDummyNodeB ¶
func NewDummyNodeB() *DummyNodeB
type DummyNodeC ¶
type DummyNodeC struct { Node // contains filtered or unexported fields }
* Node that has a hard-coded value for its result.
func NewDummyNodeC ¶
func NewDummyNodeC() *DummyNodeC
type InterfaceNode ¶
type InterfaceNode interface { Process(interfaceNode InterfaceNode, workflowContext *WorkflowContext) GetResult(interfaceNode InterfaceNode, workflowContext *WorkflowContext) interface{} // contains filtered or unexported methods }
* Interface for defining unit of work to be processed by event loop. Classes that implement InterfaceNode can provide their own constructor.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
* Concrete type for defining unit of work to be processed by event loop.
func (*Node) GetResult ¶
func (node *Node) GetResult(interfaceNode InterfaceNode, workflowContext *WorkflowContext) interface{}
func (*Node) Process ¶
func (node *Node) Process(interfaceNode InterfaceNode, workflowContext *WorkflowContext)
type WorkflowContext ¶
type WorkflowContext struct {
// contains filtered or unexported fields
}
* Class that stores information about the current state of a running workflow.
func NewWorkflowContext ¶
func NewWorkflowContext() *WorkflowContext
func (*WorkflowContext) GetNodes ¶
func (workflowContext *WorkflowContext) GetNodes() []InterfaceNode
func (*WorkflowContext) SetNodes ¶
func (workflowContext *WorkflowContext) SetNodes(nodes []InterfaceNode)
Click to show internal directories.
Click to hide internal directories.