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 New() *ProcessInstanceManager
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找到流程实例
Click to show internal directories.
Click to hide internal directories.