类 WorkflowEngine
java.lang.Object
io.github.code.visual.workflow.WorkflowEngine
Core workflow execution engine.
This is the main class users interact with to execute workflows programmatically.
Inject it as a Spring Bean and call execute(java.lang.Integer, java.util.Map) or debug(io.github.code.visual.model.DebugRequest).
- 从以下版本开始:
- 09/18/2023
- 作者:
- Levi Li
-
构造器概要
构造器构造器说明WorkflowEngine(org.codehaus.groovy.control.CompilerConfiguration compilerConfig, WorkflowRepository repository, VisualFlowProperties properties, List<WorkflowExecutionListener> listeners) -
方法概要
修饰符和类型方法说明compileScript(String code) Compile and validate Groovy code without executing it.createWorkflow(WorkflowMetadata metadata) debug(DebugRequest debugRequest) Debug a workflow with provided script metadata and input values.debug(DebugRequest debugRequest, Consumer<WorkflowTaskLog> onNodeComplete) Debug a workflow with streaming callback.voiddeleteWorkflow(Integer workflowId) Execute a workflow by ID.Execute a workflow by name.getWorkflow(Integer workflowId) updateWorkflow(WorkflowMetadata metadata)
-
构造器详细资料
-
WorkflowEngine
public WorkflowEngine(org.codehaus.groovy.control.CompilerConfiguration compilerConfig, WorkflowRepository repository, VisualFlowProperties properties, List<WorkflowExecutionListener> listeners)
-
-
方法详细资料
-
execute
Execute a workflow by ID. -
execute
Execute a workflow by name. -
debug
Debug a workflow with provided script metadata and input values. -
debug
public Map<Integer,List<WorkflowTaskLog>> debug(DebugRequest debugRequest, Consumer<WorkflowTaskLog> onNodeComplete) Debug a workflow with streaming callback. Each node execution result is pushed to the callback in real-time. -
compileScript
Compile and validate Groovy code without executing it. -
createWorkflow
-
getWorkflow
-
updateWorkflow
-
deleteWorkflow
-