| 程序包 | 说明 |
|---|---|
| org.snaker.engine | |
| org.snaker.engine.core | |
| org.snaker.engine.handlers | |
| org.snaker.engine.handlers.impl | |
| org.snaker.engine.impl | |
| org.snaker.engine.model |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
AssignmentHandler.assign(Execution execution)
分配参与者方法,可获取到当前的执行对象
|
Object |
Assignment.assign(Execution execution) |
abstract Object |
Assignment.assign(TaskModel model,
Execution execution)
分配参与者方法,可获取到当前的任务模型、执行对象
|
List<Task> |
ITaskService.createTask(TaskModel taskModel,
Execution execution)
根据任务模型、执行对象创建新的任务
|
String |
DecisionHandler.decide(Execution execution)
定义决策方法,实现类需要根据执行对象做处理,并返回后置流转的name
|
void |
Action.execute(Execution execution)
根据当前的执行对象所维持的process、order、model、args对所属流程实例进行执行
|
HistoryTask |
ITaskService.history(Execution execution,
CustomModel model)
根据执行对象、自定义节点模型创建历史任务记录
|
void |
SnakerInterceptor.intercept(Execution execution)
拦截方法,参数为执行对象
|
Order |
SnakerEngine.startInstanceByExecution(Execution execution)
根据父执行对象启动子流程实例
|
| 限定符和类型 | 方法和说明 |
|---|---|
Execution |
Execution.createSubExecution(Execution execution,
Process process,
String parentNodeName)
根据当前执行对象execution、子流程定义process、当前节点名称产生子流程的执行对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
Execution |
Execution.createSubExecution(Execution execution,
Process process,
String parentNodeName)
根据当前执行对象execution、子流程定义process、当前节点名称产生子流程的执行对象
|
List<Task> |
TaskService.createTask(TaskModel taskModel,
Execution execution)
由DBAccess实现类创建task,并根据model类型决定是否分配参与者
|
HistoryTask |
TaskService.history(Execution execution,
CustomModel model)
任务历史记录方法
|
Order |
SnakerEngineImpl.startInstanceByExecution(Execution execution)
根据父执行对象启动子流程实例(用于启动子流程)
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
IHandler.handle(Execution execution)
子类需要实现的方法,来处理具体的操作
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
StartSubProcessHandler.handle(Execution execution)
子流程执行的处理
|
void |
EndProcessHandler.handle(Execution execution)
结束当前流程实例,如果存在父流程,则触发父流程继续执行
|
void |
CreateTaskHandler.handle(Execution execution)
根据任务模型、执行对象,创建下一个任务,并添加到execution对象的tasks集合中
|
void |
AbstractMergeHandler.handle(Execution execution) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SurrogateInterceptor.intercept(Execution execution) |
void |
SchedulerInterceptor.intercept(Execution execution)
时限控制拦截方法
|
void |
LogInterceptor.intercept(Execution execution)
拦截产生的任务对象,打印日志
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
TaskModel.exec(Execution execution) |
protected void |
SubProcessModel.exec(Execution execution) |
protected void |
StartModel.exec(Execution execution) |
protected abstract void |
NodeModel.exec(Execution execution)
具体节点模型需要完成的执行逻辑
|
void |
JoinModel.exec(Execution execution) |
protected void |
ForkModel.exec(Execution execution) |
void |
EndModel.exec(Execution execution) |
void |
DecisionModel.exec(Execution execution) |
void |
CustomModel.exec(Execution execution) |
void |
TransitionModel.execute(Execution execution) |
void |
NodeModel.execute(Execution execution)
对执行逻辑增加前置、后置拦截处理
|
protected void |
BaseModel.fire(IHandler handler,
Execution execution)
将执行对象execution交给具体的处理器处理
|
protected void |
NodeModel.runOutTransition(Execution execution)
运行变迁继续执行
|
Copyright © 2013-2015. All Rights Reserved.