public class JumpCmd
extends java.lang.Object
implements com.kdayun.workflow.engine.impl.interceptor.Command<com.kdayun.workflow.engine.impl.persistence.entity.ExecutionEntity>
限定符和类型 | 类和说明 |
---|---|
static interface |
JumpCmd.JmpCallback
节点跳转的回调
|
限定符和类型 | 字段和说明 |
---|---|
protected com.kdayun.workflow.engine.impl.pvm.process.ActivityImpl |
currentActivity |
protected com.kdayun.workflow.engine.impl.persistence.entity.ExecutionEntity |
currentExecutionEntity
当前的 ExecutionEntity
|
protected com.kdayun.workflow.engine.task.Task |
currentTask
当前的 Task
|
protected com.kdayun.workflow.engine.history.HistoricTaskInstance |
currHTask
当前节点的 HistoricTaskInstance
|
protected java.util.List<com.kdayun.workflow.engine.impl.persistence.entity.TaskEntity> |
delTask |
protected com.kdayun.workflow.engine.impl.pvm.process.ActivityImpl |
destActivity
目标节点
|
protected com.kdayun.workflow.engine.impl.persistence.entity.HistoricActivityInstanceEntity |
destHActivityInstance
目标节点的HistoricTaskInstance
|
protected java.lang.String |
executionId
当前的 executionId
|
protected BaseProcessService |
processService
流程服务类
|
static java.lang.String |
REASION_DELETE |
protected CoreOrgService |
service
机构服务类
|
protected java.util.Map<java.lang.String,java.lang.Object> |
variables |
构造器和说明 |
---|
JumpCmd(com.kdayun.workflow.engine.task.Task currentTask,
java.util.Map<java.lang.String,java.lang.Object> variables) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addComment(com.kdayun.workflow.engine.impl.persistence.entity.TaskEntity task)
增加备注
|
protected void |
deleteHistoricTask(java.lang.String taskId) |
protected void |
deleteTaskExcludeComment(WorkFlowConst.ConfirmResult result)
清理task 除了 comment
|
com.kdayun.workflow.engine.impl.persistence.entity.ExecutionEntity |
execute(com.kdayun.workflow.engine.impl.interceptor.CommandContext commandContext) |
protected com.kdayun.workflow.engine.impl.persistence.entity.HistoricActivityInstanceEntity |
getActInst(java.lang.String actInstId)
获取HistoricActivityInstance
|
protected java.lang.String |
getAssigneesByActInst(com.kdayun.workflow.engine.impl.persistence.entity.HistoricActivityInstanceEntity actInst)
得到节点的流程参与者
|
JumpCmd |
getCmd()
得到类实例
|
protected com.kdayun.workflow.engine.impl.db.DbSqlSession |
getDbSqlSession() |
protected com.kdayun.workflow.engine.impl.persistence.entity.ProcessDefinitionEntity |
getProcessDefinitionEntity() |
protected void |
initActivity() |
protected java.lang.Boolean |
isMultiInstance(com.kdayun.workflow.engine.impl.pvm.process.ActivityImpl activityImpl)
判断节点是否多实例节点.
|
protected void |
maskHistoricActivityEnd(WorkFlowConst.ConfirmResult result)
设置HistoricActivity 对象的结束
|
protected void |
setVariables(com.kdayun.workflow.engine.impl.persistence.entity.ExecutionEntity executionEntity,
JumpCmd.JmpCallback callBack) |
protected void |
updateComment(com.kdayun.workflow.engine.impl.persistence.entity.TaskEntity task)
更新备注,存在更新,不存在新增
根据流程变量来设置流程日志
|
protected void |
updateComment(com.kdayun.workflow.engine.impl.persistence.entity.TaskEntity task,
com.kdayun.workflow.engine.impl.persistence.entity.ExecutionEntity executionEntity,
WorkFlowConst.ConfirmResult result,
java.lang.String beiz)
更新备注 ,存在更新,不存在新增
|
protected void |
updateComment(com.kdayun.workflow.engine.impl.persistence.entity.TaskEntity task,
java.lang.String strMessage)
更新备注,存在更新,不存在新增
|
protected com.kdayun.workflow.engine.impl.pvm.process.ActivityImpl currentActivity
protected com.kdayun.workflow.engine.impl.pvm.process.ActivityImpl destActivity
protected com.kdayun.workflow.engine.impl.persistence.entity.HistoricActivityInstanceEntity destHActivityInstance
protected com.kdayun.workflow.engine.history.HistoricTaskInstance currHTask
protected java.util.List<com.kdayun.workflow.engine.impl.persistence.entity.TaskEntity> delTask
protected java.lang.String executionId
protected CoreOrgService service
protected BaseProcessService processService
protected com.kdayun.workflow.engine.impl.persistence.entity.ExecutionEntity currentExecutionEntity
protected com.kdayun.workflow.engine.task.Task currentTask
protected java.util.Map<java.lang.String,java.lang.Object> variables
public static final java.lang.String REASION_DELETE
public JumpCmd(com.kdayun.workflow.engine.task.Task currentTask, java.util.Map<java.lang.String,java.lang.Object> variables)
public JumpCmd getCmd()
protected com.kdayun.workflow.engine.impl.persistence.entity.ProcessDefinitionEntity getProcessDefinitionEntity()
protected void initActivity()
public com.kdayun.workflow.engine.impl.persistence.entity.ExecutionEntity execute(com.kdayun.workflow.engine.impl.interceptor.CommandContext commandContext)
execute
在接口中 com.kdayun.workflow.engine.impl.interceptor.Command<com.kdayun.workflow.engine.impl.persistence.entity.ExecutionEntity>
protected void updateComment(com.kdayun.workflow.engine.impl.persistence.entity.TaskEntity task)
task
- 节点实例protected void updateComment(com.kdayun.workflow.engine.impl.persistence.entity.TaskEntity task, java.lang.String strMessage)
task
- 节点实例strMessage
- 审核的结果protected void updateComment(com.kdayun.workflow.engine.impl.persistence.entity.TaskEntity task, com.kdayun.workflow.engine.impl.persistence.entity.ExecutionEntity executionEntity, WorkFlowConst.ConfirmResult result, java.lang.String beiz)
task
- 节点实例executionEntity
- 节点的exceutionresult
- 审核的结果beiz
- 审核备注protected java.lang.Boolean isMultiInstance(com.kdayun.workflow.engine.impl.pvm.process.ActivityImpl activityImpl)
activityImpl
- 节点实例protected java.lang.String getAssigneesByActInst(com.kdayun.workflow.engine.impl.persistence.entity.HistoricActivityInstanceEntity actInst)
task
- protected void addComment(com.kdayun.workflow.engine.impl.persistence.entity.TaskEntity task)
task
- protected void setVariables(com.kdayun.workflow.engine.impl.persistence.entity.ExecutionEntity executionEntity, JumpCmd.JmpCallback callBack)
protected void maskHistoricActivityEnd(WorkFlowConst.ConfirmResult result)
deleteResion
- protected void deleteTaskExcludeComment(WorkFlowConst.ConfirmResult result)
result
- protected com.kdayun.workflow.engine.impl.persistence.entity.HistoricActivityInstanceEntity getActInst(java.lang.String actInstId)
actInstId
- 唯一idprotected void deleteHistoricTask(java.lang.String taskId)
protected com.kdayun.workflow.engine.impl.db.DbSqlSession getDbSqlSession()