memory_process_instance_manager

package
v0.0.0-...-c54ede3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessInstanceManager

type ProcessInstanceManager struct {
	ProcessInstances map[string]*memory_process_instance.ProcessInstance `json:"process_instances"` // 内存流程实例Map
}

manager *ProcessInstanceManager github.com/averyyan/bpmn-engine/bpmn/engine/types.ProcessInstanceManager

func New

func (*ProcessInstanceManager) Create

func (manager *ProcessInstanceManager) Create(ctx context.Context, raw []byte, variables map[string]any) (engine_types.ProcessInstance, error)

创建流程实例 ctx 上下文用于未来事务 raw 流程文件数据流 variables 实例上下文

func (*ProcessInstanceManager) FindOneByKey

func (manager *ProcessInstanceManager) FindOneByKey(ctx context.Context, piKey string) (engine_types.ProcessInstance, error)

通过Key找到流程实例

Jump to

Keyboard shortcuts

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