Documentation
¶
Index ¶
- type ActivitiListener
- type Activity
- type BoundaryEvent
- type BpmnModel
- type ConditionalEventDefinition
- type DefaultBaseElement
- type EndEvent
- type ExclusiveGateway
- type ExtensionElement
- type FieldExtension
- type FlowElementsContainer
- type FlowNode
- func (flow *FlowNode) GetBehavior() delegate.ActivityBehavior
- func (flow *FlowNode) GetHandlerType() string
- func (flow *FlowNode) GetId() string
- func (flow *FlowNode) GetIncoming() []delegate.FlowElement
- func (flow *FlowNode) GetName() string
- func (flow *FlowNode) GetOutgoing() []delegate.FlowElement
- func (flow *FlowNode) GetSourceFlowElement() delegate.FlowElement
- func (flow *FlowNode) GetTargetFlowElement() delegate.FlowElement
- func (flow *FlowNode) SetBehavior(behavior delegate.ActivityBehavior)
- func (flow *FlowNode) SetIncoming(f []delegate.FlowElement)
- func (flow *FlowNode) SetOutgoing(f []delegate.FlowElement)
- func (flow *FlowNode) SetSourceFlowElement(f delegate.FlowElement)
- func (flow *FlowNode) SetTargetFlowElement(f delegate.FlowElement)
- type FormButtonEventDefinition
- type Gateway
- type IEqual
- type InclusiveGateway
- type IntermediateCatchEvent
- type LinkEventDefinition
- type LoopCharacteristicsGetter
- type Message
- type MessageEventDefinition
- type MultiInstanceLoopCharacteristics
- type ParallelGateway
- type Process
- type SequenceFlow
- type ServiceTask
- type StartEvent
- type SubProcess
- type Task
- type TimerEventDefinition
- type UserTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivitiListener ¶
type ActivitiListener struct {
EventType string `xml:"event,attr"`
}
type Activity ¶ added in v0.0.5
type Activity struct {
FlowNode
MultiInstance *MultiInstanceLoopCharacteristics `xml:"multiInstanceLoopCharacteristics"`
}
func (Activity) GetLoopCharacteristics ¶ added in v0.0.5
func (a Activity) GetLoopCharacteristics() *MultiInstanceLoopCharacteristics
func (Activity) HasMultiInstanceLoopCharacteristics ¶ added in v0.0.5
type BoundaryEvent ¶
type BoundaryEvent struct {
*FlowNode
AttachedToRef string `xml:"attachedToRef,attr"`
CancelActivity string `xml:"cancelActivity,attr"`
TimerEventDefinition TimerEventDefinition `xml:"timerEventDefinition"`
}
type BpmnModel ¶
type BpmnModel struct {
Processes []*Process
}
func (*BpmnModel) AddProcess ¶
func (BpmnModel) GetMainProcess ¶
func (BpmnModel) GetProcess ¶
func (*BpmnModel) GetProcessById ¶
type ConditionalEventDefinition ¶
type ConditionalEventDefinition struct {
DefaultBaseElement
Condition string `xml:"condition"`
}
func (ConditionalEventDefinition) GetHandlerType ¶
func (c ConditionalEventDefinition) GetHandlerType() string
type DefaultBaseElement ¶
func (DefaultBaseElement) GetId ¶
func (d DefaultBaseElement) GetId() string
func (DefaultBaseElement) GetName ¶
func (d DefaultBaseElement) GetName() string
type ExclusiveGateway ¶
type ExclusiveGateway struct {
Gateway
}
func (ExclusiveGateway) GetType ¶
func (exclusiveGateway ExclusiveGateway) GetType() string
type ExtensionElement ¶
type ExtensionElement struct {
TaskListener []ActivitiListener `xml:"taskListener"`
FieldExtensions []FieldExtension `xml:"field"`
}
func (ExtensionElement) GetFieldByName ¶ added in v0.0.3
func (receiver ExtensionElement) GetFieldByName(fieldName string) FieldExtension
type FieldExtension ¶ added in v0.0.3
type FlowElementsContainer ¶
type FlowElementsContainer interface {
AddFlowElement(element delegate.FlowElement)
}
type FlowNode ¶
type FlowNode struct {
delegate.BaseHandlerType
DefaultBaseElement
IncomingFlow []delegate.FlowElement
OutgoingFlow []delegate.FlowElement
SourceFlowElement delegate.FlowElement
TargetFlowElement delegate.FlowElement
Behavior delegate.ActivityBehavior
Incoming []string `xml:"incoming"`
Outgoing []string `xml:"outgoing"`
}
父类实现体
func (*FlowNode) GetBehavior ¶
func (flow *FlowNode) GetBehavior() delegate.ActivityBehavior
func (*FlowNode) GetHandlerType ¶
func (*FlowNode) GetIncoming ¶
func (flow *FlowNode) GetIncoming() []delegate.FlowElement
func (*FlowNode) GetOutgoing ¶
func (flow *FlowNode) GetOutgoing() []delegate.FlowElement
func (*FlowNode) GetSourceFlowElement ¶
func (flow *FlowNode) GetSourceFlowElement() delegate.FlowElement
func (*FlowNode) GetTargetFlowElement ¶
func (flow *FlowNode) GetTargetFlowElement() delegate.FlowElement
func (*FlowNode) SetBehavior ¶
func (flow *FlowNode) SetBehavior(behavior delegate.ActivityBehavior)
func (*FlowNode) SetIncoming ¶
func (flow *FlowNode) SetIncoming(f []delegate.FlowElement)
func (*FlowNode) SetOutgoing ¶
func (flow *FlowNode) SetOutgoing(f []delegate.FlowElement)
func (*FlowNode) SetSourceFlowElement ¶
func (flow *FlowNode) SetSourceFlowElement(f delegate.FlowElement)
func (*FlowNode) SetTargetFlowElement ¶
func (flow *FlowNode) SetTargetFlowElement(f delegate.FlowElement)
type InclusiveGateway ¶
type InclusiveGateway struct {
Gateway
}
func (InclusiveGateway) GetType ¶
func (inclusiveGateway InclusiveGateway) GetType() string
type IntermediateCatchEvent ¶
type IntermediateCatchEvent struct {
FlowNode
XMLName xml.Name `xml:"intermediateCatchEvent"`
MessageEventDefinition *MessageEventDefinition `xml:"messageEventDefinition"`
TimerEventDefinition *TimerEventDefinition `xml:"timerEventDefinition"`
LinkEventDefinition *LinkEventDefinition `xml:"linkEventDefinition"`
ConditionalEventDefinition *ConditionalEventDefinition `xml:"conditionalEventDefinition"`
FormButtonEventDefinition *FormButtonEventDefinition `xml:"extensionElements>formButtonEventDefinition"`
}
IntermediateCatchEvent 中间抛出事件
func (IntermediateCatchEvent) GetType ¶
func (event IntermediateCatchEvent) GetType() string
type LinkEventDefinition ¶
type LinkEventDefinition struct {
DefaultBaseElement
}
type LoopCharacteristicsGetter ¶ added in v0.0.5
type LoopCharacteristicsGetter interface {
GetLoopCharacteristics() *MultiInstanceLoopCharacteristics
HasMultiInstanceLoopCharacteristics() bool
}
type Message ¶
type Message struct {
delegate.BaseElement
}
type MessageEventDefinition ¶
type MessageEventDefinition struct {
MessageRef string `xml:"messageRef,attr"`
}
消息事件
type MultiInstanceLoopCharacteristics ¶
type MultiInstanceLoopCharacteristics struct {
// LoopCardinality TODO
LoopCardinality int `xml:"loopCardinality"`
IsSequential bool `xml:"isSequential,attr"`
Collection string `xml:"collection,attr"`
ElementVariable string `xml:"elementVariable,attr"`
// if empty, means all
// e.g.:
// ${(nrOfCompletedInstances / nrOfInstances) * 100 > 50}
// ${nrOfCompletedInstances == 5}
CompletionCondition string `xml:"completionCondition"`
}
MultiInstanceLoopCharacteristics
nrOfInstances:实例总数 nrOfActiveInstances:当前活动的(尚未完成的)实例数量。对于串行多实例来说,这个值始终是 1。 nrOfCompletedInstances:已经完成的实例的数量。 loopCounter:给定实例在 for-each 循环中的 index。
type ParallelGateway ¶
type ParallelGateway struct {
Gateway
}
func (ParallelGateway) GetType ¶
func (parallelGateway ParallelGateway) GetType() string
type Process ¶
type Process struct {
FlowNode
XMLName xml.Name `xml:"process"`
IsExecutable string `xml:"isExecutable,attr"`
FormKey string `xml:"formKey,attr"` // main form key/default form key
StartEvents []StartEvent `xml:"startEvent"`
EndEvents []EndEvent `xml:"endEvent"`
UserTasks []UserTask `xml:"userTask"`
ServiceTasks []ServiceTask `xml:"serviceTask"`
SequenceFlows []SequenceFlow `xml:"sequenceFlow"`
ExclusiveGateways []ExclusiveGateway `xml:"exclusiveGateway"`
InclusiveGateways []InclusiveGateway `xml:"inclusiveGateway"`
ParallelGateways []ParallelGateway `xml:"parallelGateway"`
BoundaryEvents []BoundaryEvent `xml:"boundaryEvent"`
IntermediateCatchEvents []IntermediateCatchEvent `xml:"intermediateCatchEvent"`
SubProcesses []SubProcess `xml:"subProcess"`
FlowElementList []delegate.FlowElement
InitialFlowElement delegate.FlowElement
FlowElementMap map[string]delegate.FlowElement
}
func (*Process) AddFlowElement ¶
func (process *Process) AddFlowElement(element delegate.FlowElement)
func (Process) GetFlowElement ¶
func (process Process) GetFlowElement(flowElementId string) delegate.FlowElement
type SequenceFlow ¶
type SequenceFlow struct {
FlowNode
XMLName xml.Name `xml:"sequenceFlow"`
SourceRef string `xml:"sourceRef,attr"`
TargetRef string `xml:"targetRef,attr"`
ConditionExpression string `xml:"conditionExpression"`
}
func (SequenceFlow) GetType ¶
func (sequenceFlow SequenceFlow) GetType() string
type ServiceTask ¶ added in v0.0.3
type ServiceTask struct {
Task
XMLName xml.Name `xml:"serviceTask"`
TaskType string `xml:"type,attr"`
ExtensionElements *ExtensionElement `xml:"extensionElements"`
}
func (ServiceTask) Clone ¶ added in v0.0.5
func (serviceTask ServiceTask) Clone() delegate.FlowElement
func (*ServiceTask) Equal ¶ added in v0.0.3
func (serviceTask *ServiceTask) Equal(otherServiceTask interface{}) bool
func (ServiceTask) GetType ¶ added in v0.0.3
func (serviceTask ServiceTask) GetType() string
type StartEvent ¶
type StartEvent struct {
FlowNode
XMLName xml.Name `xml:"startEvent"`
Initiator string `xml:"initiator,attr"`
FormKey string `xml:"formKey,attr"`
}
func (StartEvent) GetType ¶
func (start StartEvent) GetType() string
type SubProcess ¶
type SubProcess struct {
delegate.BaseElement
}
type TimerEventDefinition ¶
type TimerEventDefinition struct {
TimeDuration string `xml:"timeDuration"`
}
type UserTask ¶
type UserTask struct {
Task
XMLName xml.Name `xml:"userTask"`
Assignee *string `xml:"assignee,attr"`
FormKey *string `xml:"formKey,attr"`
CandidateUsers *string `xml:"candidateUsers,attr"`
CandidateGroups *string `xml:"candidateGroups,attr"`
DueDate *string `xml:"dueDate,attr"`
ExtensionElements *ExtensionElement `xml:"extensionElements"`
}
func (UserTask) Clone ¶ added in v0.0.5
func (user UserTask) Clone() delegate.FlowElement
func (UserTask) GetAssignee ¶
func (UserTask) GetCandidateGroups ¶
func (UserTask) GetCandidateUsers ¶
Source Files
¶
- activitiListener.go
- activity.go
- boundaryEvent.go
- bpmnModel.go
- conditionalEventDefinition.go
- defaultBaseElement.go
- endEvent.go
- equal.go
- exclusiveGateway.go
- extensionElement.go
- fieldExtension.go
- flowElementsContainer.go
- flowNode.go
- formButtonEventDefinition.go
- gateway.go
- inclusiveGateway.go
- intermediateCatchEvent.go
- linkEventDefinition.go
- loopCharacteristicsGetter.go
- message.go
- messageEventDefinition.go
- multiInstanceLoopCharacteristics.go
- parallelGateway.go
- process.go
- sequenceFlow.go
- serviceTask.go
- startEvent.go
- subProcess.go
- task.go
- timerEventDefinition.go
- userTask.go
Click to show internal directories.
Click to hide internal directories.