marshal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionalEventDefinition

type ConditionalEventDefinition struct {
	DefaultBaseElement
	XMLName   xml.Name `xml:"bpmn:conditionalEventDefinition"`
	Condition string   `xml:"bpmn:condition"`
}

type DefaultBaseElement

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

type Definitions

type Definitions struct {
	XMLName         xml.Name  `xml:"bpmn:definitions"`
	Text            string    `xml:",chardata"`
	Xsi             string    `xml:"xmlns:xsi,attr"`
	Bpmn            string    `xml:"xmlns:bpmn,attr"`
	Bpmndi          string    `xml:"xmlns:bpmndi,attr"`
	Dc              string    `xml:"xmlns:dc,attr"`
	Di              string    `xml:"xmlns:di,attr"`
	Flowable        string    `xml:"xmlns:flowable,attr"`
	ID              string    `xml:"id,attr"`
	TargetNamespace string    `xml:"targetNamespace,attr"`
	Process         []Process `xml:"process"`
}

func NewDefinitions

func NewDefinitions(processId string) Definitions

type EndEvent

type EndEvent struct {
	FlowNode
	XMLName xml.Name `xml:"bpmn:endEvent"`
}

type FlowNode

type FlowNode struct {
	DefaultBaseElement

	Incoming []string `xml:"bpmn:incoming"`
	Outgoing []string `xml:"bpmn:outgoing"`
}

FlowNode 父类实现体

type FormButtonEventDefinition

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

type IntermediateCatchEvent

type IntermediateCatchEvent struct {
	FlowNode
	XMLName                    xml.Name                    `xml:"bpmn:intermediateCatchEvent"`
	ConditionalEventDefinition *ConditionalEventDefinition `xml:"bpmn:conditionalEventDefinition"`
	FormButtonEventDefinition  *FormButtonEventDefinition  `xml:"bpmn:extensionElements>flowable:formButtonEventDefinition"`
}

IntermediateCatchEvent 中间抛出事件

type Process

type Process struct {
	FlowNode
	XMLName                 xml.Name                 `xml:"bpmn:process"`
	IsExecutable            string                   `xml:"isExecutable,attr"`
	StartEvents             []StartEvent             `xml:"startEvent"`
	EndEvents               []EndEvent               `xml:"endEvent"`
	UserTasks               []UserTask               `xml:"userTask"`
	SequenceFlows           []SequenceFlow           `xml:"sequenceFlow"`
	IntermediateCatchEvents []IntermediateCatchEvent `xml:"intermediateCatchEvent"`
}

type SequenceFlow

type SequenceFlow struct {
	FlowNode
	XMLName             xml.Name `xml:"bpmn:sequenceFlow"`
	SourceRef           string   `xml:"sourceRef,attr"`
	TargetRef           string   `xml:"targetRef,attr"`
	ConditionExpression string   `xml:"bpmn:conditionExpression,omitempty"`
}

func NewSequenceFlow

func NewSequenceFlow(sourceRef, targetRef string) SequenceFlow

type StartEvent

type StartEvent struct {
	FlowNode
	XMLName   xml.Name `xml:"bpmn:startEvent"`
	Initiator string   `xml:"flowable:initiator,attr,omitempty"`
	FormKey   string   `xml:"flowable:formKey,attr,omitempty"`
}

type UserTask

type UserTask struct {
	FlowNode
	XMLName           xml.Name                  `xml:"bpmn:userTask"`
	Assignee          *string                   `xml:"flowable:assignee,attr"`
	FormKey           *string                   `xml:"flowable:formKey,attr"`
	CandidateUsers    *string                   `xml:"flowable:candidateUsers,attr"`
	CandidateGroups   *string                   `xml:"flowable:candidateGroups,attr"`
	DueDate           *string                   `xml:"flowable:dueDate,attr"`
	ExtensionElements *UserTaskExtensionElement `xml:"bpmn:extensionElements"`
}

type UserTaskExtensionElement

type UserTaskExtensionElement struct {
	AssigneeType            string `xml:"flowable:assigneeType"`
	StaticAssigneeVariables string `xml:"flowable:staticAssigneeVariables,omitempty"`
	IdmCandidateGroups      string `xml:"flowable:idmCandidateGroups,omitempty"`
	IdmCandidateUsers       string `xml:"flowable:idmCandidateUsers,omitempty"`
}

Jump to

Keyboard shortcuts

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