public class WorkFlowUtil
extends java.lang.Object
构造器和说明 |
---|
WorkFlowUtil() |
限定符和类型 | 方法和说明 |
---|---|
static DeploymentVo |
deploymentToVo(com.kdayun.workflow.engine.repository.Deployment deployment) |
static java.util.List<DeploymentVo> |
deploymentToVo(java.util.List<com.kdayun.workflow.engine.repository.Deployment> deployments) |
static java.lang.String |
generateProcessId(java.lang.String key,
java.lang.String orgId)
生成流程标识
|
static java.util.List<java.lang.String> |
getAssignedsByActInst(com.kdayun.workflow.engine.impl.persistence.entity.HistoricActivityInstanceEntity actInst)
得到节点的流程参与者/候选者
|
static java.util.List<java.lang.String> |
getAssignedsByTask(com.kdayun.workflow.engine.history.HistoricTaskInstance task)
得到节点的流程参与者
|
static java.util.List<java.lang.String> |
getAssignedsByTaskId(java.lang.String taskId)
得到节点的流程参与者
|
static java.lang.String |
getFwUserAssign(java.lang.String orgId,
java.lang.String deptId,
java.lang.String roleId,
java.lang.String userId,
java.lang.String roleCode,
java.lang.Integer rolelev)
返回工作流需要的assigned字符串
|
static java.lang.String |
getOrgPrvActInst(com.kdayun.workflow.engine.impl.interceptor.CommandContext commandContext,
com.kdayun.workflow.engine.task.Task currentTask)
获取原路退回的上一个节点
|
static java.util.List<java.lang.String> |
getPrevTaskAssigned(com.kdayun.workflow.engine.task.Task currentTask)
得到当前节点的上一个节点的流程参与者
|
static java.lang.String |
getPrvActInst(com.kdayun.workflow.engine.impl.interceptor.CommandContext commandContext,
com.kdayun.workflow.engine.task.Task currentTask,
java.lang.String assigned)
得到当前节点的前一个节点
|
static java.lang.String |
getPrvTaskId(com.kdayun.workflow.engine.impl.interceptor.CommandContext commandContext,
com.kdayun.workflow.engine.task.Task currentTask)
获取 当前节点的上一个节点
|
static java.lang.String |
getUserAssign()
获取流程assigned字符串
|
static java.lang.String |
getUserAssign(UserDeptRole user)
返回工作流需要的assigned字符串
|
static java.lang.String |
getUserAssign(UserVo user)
返回工作流需要的assigned字符串
|
static java.lang.String |
getUserLogStr()
获取流程日志的审核人字符串
|
public static java.util.List<DeploymentVo> deploymentToVo(java.util.List<com.kdayun.workflow.engine.repository.Deployment> deployments)
public static DeploymentVo deploymentToVo(com.kdayun.workflow.engine.repository.Deployment deployment)
public static java.lang.String getFwUserAssign(java.lang.String orgId, java.lang.String deptId, java.lang.String roleId, java.lang.String userId, java.lang.String roleCode, java.lang.Integer rolelev)
orgId
- 机构iddeptId
- 部门idroleId
- 角色iduserId
- 用户idroleCode
- 角色编号rolelev
- 角色级别public static java.lang.String getUserAssign(UserDeptRole user)
user
- 用户部门实体实例public static java.lang.String getUserAssign(UserVo user)
user
- 用户vopublic static java.lang.String generateProcessId(java.lang.String key, java.lang.String orgId)
key
- 流程keyorgId
- 机构idpublic static java.lang.String getUserLogStr()
public static java.lang.String getUserAssign()
public static java.lang.String getPrvTaskId(com.kdayun.workflow.engine.impl.interceptor.CommandContext commandContext, com.kdayun.workflow.engine.task.Task currentTask)
commandContext
- 流程的命令上下文currentTask
- 当前节点task实例public static java.util.List<java.lang.String> getPrevTaskAssigned(com.kdayun.workflow.engine.task.Task currentTask)
currentTask
- 当前任务实例public static java.util.List<java.lang.String> getAssignedsByTaskId(java.lang.String taskId)
taskId
- 任务idpublic static java.util.List<java.lang.String> getAssignedsByTask(com.kdayun.workflow.engine.history.HistoricTaskInstance task)
task
- HistoricTaskInstancepublic static java.util.List<java.lang.String> getAssignedsByActInst(com.kdayun.workflow.engine.impl.persistence.entity.HistoricActivityInstanceEntity actInst)
actInst
- 流程Act实例public static java.lang.String getPrvActInst(com.kdayun.workflow.engine.impl.interceptor.CommandContext commandContext, com.kdayun.workflow.engine.task.Task currentTask, java.lang.String assigned)
commandContext
- 上下文currentTask
- 当前任务assigned
- 为空时候返回指定用户的,否则返回第一个public static java.lang.String getOrgPrvActInst(com.kdayun.workflow.engine.impl.interceptor.CommandContext commandContext, com.kdayun.workflow.engine.task.Task currentTask)
commandContext
- 脚本的上下文currentTask
- 当前任务实体实例