model

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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"`
}

func (ActivitiListener) String

func (receiver ActivitiListener) String() string

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 *BpmnModel) AddProcess(process *Process)

func (BpmnModel) GetMainProcess

func (bpmnModel BpmnModel) GetMainProcess() []*Process

func (BpmnModel) GetProcess

func (bpmnModel BpmnModel) GetProcess() *Process

func (*BpmnModel) GetProcessById

func (bpmnModel *BpmnModel) GetProcessById(id string) *Process

type ConditionalEventDefinition

type ConditionalEventDefinition struct {
	DefaultBaseElement
	Condition string `xml:"condition"`
}

func (ConditionalEventDefinition) GetHandlerType

func (c ConditionalEventDefinition) GetHandlerType() string

type DefaultBaseElement

type DefaultBaseElement struct {
	Id   string `xml:"id,attr"`
	Name string `xml:"name,attr"`
}

func (DefaultBaseElement) GetId

func (d DefaultBaseElement) GetId() string

func (DefaultBaseElement) GetName

func (d DefaultBaseElement) GetName() string

func (DefaultBaseElement) String

func (d DefaultBaseElement) String() string

type EndEvent

type EndEvent struct {
	FlowNode
}

func (EndEvent) GetType

func (endEvent EndEvent) GetType() string

type ExclusiveGateway

type ExclusiveGateway struct {
	Gateway
}

func (ExclusiveGateway) GetType

func (exclusiveGateway ExclusiveGateway) GetType() string

type ExtensionElement

type ExtensionElement struct {
	TaskListener []ActivitiListener `xml:"taskListener"`
}

func (ExtensionElement) String

func (receiver ExtensionElement) String() string

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
}

父类实现体

func (*FlowNode) GetBehavior

func (flow *FlowNode) GetBehavior() delegate.ActivityBehavior

func (*FlowNode) GetHandlerType

func (flow *FlowNode) GetHandlerType() string

func (*FlowNode) GetId

func (flow *FlowNode) GetId() string

func (*FlowNode) GetIncoming

func (flow *FlowNode) GetIncoming() []delegate.FlowElement

func (*FlowNode) GetName

func (flow *FlowNode) GetName() string

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)

func (FlowNode) String

func (flow FlowNode) String() string

type FormButtonEventDefinition

type FormButtonEventDefinition struct {
	CandidateGroups string `xml:"candidateGroups,attr"`
	OpenForm        bool   `xml:"openForm,attr"`
	OpenConfirm     bool   `xml:"openConfirm,attr"`
	FormKey         string `xml:"formKey,attr"`
}

type Gateway

type Gateway struct {
	FlowNode
	DefaultFlow string
}

type IEqual

type IEqual interface {
	Equal(other interface{}) bool
}

type InclusiveGateway

type InclusiveGateway struct {
	Gateway
}

func (InclusiveGateway) GetType

func (inclusiveGateway InclusiveGateway) GetType() string

type IntermediateCatchEvent

type IntermediateCatchEvent struct {
	FlowNode
	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 Message

type Message struct {
	delegate.BaseElement
}

type MessageEventDefinition

type MessageEventDefinition struct {
	MessageRef string `xml:"messageRef,attr"`
}

消息事件

type MultiInstanceLoopCharacteristics

type MultiInstanceLoopCharacteristics struct {
	IsSequential        bool   `xml:"isSequential,attr"`
	Collection          string `xml:"collection,attr"`
	CompletionCondition string `xml:"completionCondition"`
}

func (MultiInstanceLoopCharacteristics) String

func (receiver MultiInstanceLoopCharacteristics) String() string

type ParallelGateway

type ParallelGateway struct {
	Gateway
}

func (ParallelGateway) GetType

func (parallelGateway ParallelGateway) GetType() string

type Process

type Process struct {
	FlowNode
	IsExecutable string `xml:"isExecutable,attr"`
	// Attributes below aren't used
	//Documentation           string                   `xml:"documentation"`
	//IsExecutable            string                   `xml:"isExecutable,attr"`
	//StartEvents             []StartEvent             `xml:"startEvent"`
	//EndEvents               []EndEvent               `xml:"endEvent"`
	//UserTasks               []UserTask               `xml:"userTask"`
	//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

func (Process) GetType

func (process Process) GetType() string

type SequenceFlow

type SequenceFlow struct {
	FlowNode
	//Id                  string   `xml:"id,attr"`
	SourceRef           string `xml:"sourceRef,attr"`
	TargetRef           string `xml:"targetRef,attr"`
	ConditionExpression string `xml:"conditionExpression"`
}

func (SequenceFlow) GetType

func (sequenceFlow SequenceFlow) GetType() string

type StartEvent

type StartEvent struct {
	FlowNode
	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 {
	FlowNode
	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"`
	MultiInstance     *MultiInstanceLoopCharacteristics `xml:"multiInstanceLoopCharacteristics"`
	ExtensionElements *ExtensionElement                 `xml:"extensionElements"`
}

func (*UserTask) Equal

func (user *UserTask) Equal(otherUser interface{}) bool

func (UserTask) GetAssignee

func (user UserTask) GetAssignee() *string

func (UserTask) GetCandidateGroups

func (user UserTask) GetCandidateGroups() *string

func (UserTask) GetCandidateUsers

func (user UserTask) GetCandidateUsers() *string

func (UserTask) GetType

func (user UserTask) GetType() string

func (UserTask) String

func (user UserTask) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL