public class WorkflowTask extends BaseDataRecord implements ProcessElement, java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEADLINEDATE |
static java.lang.String |
DEADLINETYPE |
static java.lang.String |
ISSUE_CONTROL |
static java.lang.String |
ISSUE_OVER |
static java.lang.String |
LEAPFROG_BACK |
static java.lang.String |
PARENT_ID |
static java.lang.String |
PROCESS_ID |
static java.lang.String |
REMIND_CONTROL |
COLUMN_ID
构造器和说明 |
---|
WorkflowTask() |
WorkflowTask(JSONObject jo) |
WorkflowTask(java.lang.String name,
java.lang.String creatorId,
java.lang.String creatorName,
java.lang.String processId,
java.lang.String parentId,
java.lang.String issueControl,
int deadLineDate,
java.lang.String deadLineType,
java.lang.String remindControl,
boolean leapfrogBack) |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
java.lang.Object |
clone() |
JSONObject |
createDetailedJSONObject() |
WorkflowTaskEntity |
createEntity() |
JSONObject |
createJSONObject()
创建JSON对象
|
ProcessOperator |
getAllProcessOperator(int idx)
根据节点层次获取当前层次操作人员
|
java.util.List<WorkflowTaskImpl> |
getAllProcessTaskImpl(int idx)
根据节点层次获取当前节点所有任务
|
java.util.List<WorkflowTaskImpl> |
getAllProcessTaskImpl(java.lang.String taskId)
根据父任务id获取相应的子任务
|
java.util.List<WorkflowTaskImpl> |
getAllTaskImpl()
获取其下发的具体任务列表
|
java.util.Date |
getCreateTime() |
java.lang.String |
getCreatorId() |
java.lang.String |
getCreatorName() |
int |
getDeadLineDate() |
java.lang.String |
getDeadLineType() |
java.util.List<java.lang.String> |
getFullNodeRoutes()
获取当前任务的所有执行路径列表(包括还未到达的节点)
|
java.lang.String |
getIssueControl() |
java.lang.String |
getName() |
java.lang.String |
getParentId() |
Workflow |
getProcess() |
java.lang.String |
getProcessId() |
java.util.List<WorkflowTaskImpl> |
getProcessTaskImplByRole(java.lang.String idx,
int currentNodeIdx)
根据角色id获取子任务
|
java.util.List<WorkflowTaskImpl> |
getProcessTaskImplByUsername(java.lang.String userName,
int currentNodeIdx,
WorkflowTaskImpl processTaskImpl)
根据用户id获取子任务(同一批次运行任务)
|
java.lang.String |
getRemindControl() |
boolean |
isIssueOver() |
boolean |
isLeapfrogBack() |
void |
issue()
下发任务
下发(issue)是指让任务开始向下走
分发(distribute)是指在当前节点的基础上分发子节点
|
void |
issueTask(WorkflowTaskImpl taskImpl)
任务下发
|
void |
makeIssueOver() |
void |
onResume()
服务器重新启动的时候要进行的
|
void |
parseJSON(JSONObject jo)
通过JSONObject初始化
|
void |
setCreateTime(java.util.Date createTime) |
void |
setCreatorId(java.lang.String creatorId) |
void |
setCreatorName(java.lang.String creatorName) |
void |
setDeadLineDate(int deadLineDate) |
void |
setDeadLineType(java.lang.String deadLineType) |
void |
setIssueControl(java.lang.String issueControl) |
void |
setIssueOver(boolean over) |
void |
setLeapfrogBack(boolean leapfrogBack) |
void |
setName(java.lang.String name) |
void |
setParentId(java.lang.String parentId) |
void |
setProcessId(java.lang.String processId) |
void |
setRemindControl(java.lang.String remindControl) |
getId, setId, toString
getId
public static final java.lang.String PARENT_ID
public static final java.lang.String PROCESS_ID
public static final java.lang.String ISSUE_CONTROL
public static final java.lang.String DEADLINEDATE
public static final java.lang.String DEADLINETYPE
public static final java.lang.String REMIND_CONTROL
public static final java.lang.String ISSUE_OVER
public static final java.lang.String LEAPFROG_BACK
public WorkflowTask()
public WorkflowTask(java.lang.String name, java.lang.String creatorId, java.lang.String creatorName, java.lang.String processId, java.lang.String parentId, java.lang.String issueControl, int deadLineDate, java.lang.String deadLineType, java.lang.String remindControl, boolean leapfrogBack)
public WorkflowTask(JSONObject jo)
public java.lang.String getName()
getName
在接口中 ProcessElement
public void setName(java.lang.String name)
public java.lang.String getCreatorName()
public void setCreatorName(java.lang.String creatorName)
public java.lang.String getProcessId()
public void setProcessId(java.lang.String processId)
public boolean isLeapfrogBack()
public void setLeapfrogBack(boolean leapfrogBack)
public java.lang.String getCreatorId()
getCreatorId
在接口中 ProcessElement
public void setCreatorId(java.lang.String creatorId)
public java.lang.String getParentId()
public void setParentId(java.lang.String parentId)
public java.lang.String getIssueControl()
public void setIssueControl(java.lang.String issueControl)
public java.lang.String getRemindControl()
public void setRemindControl(java.lang.String remindControl)
public java.util.Date getCreateTime()
public void setCreateTime(java.util.Date createTime)
public boolean isIssueOver()
public void setIssueOver(boolean over)
public int getDeadLineDate()
public void setDeadLineDate(int deadLineDate)
public java.lang.String getDeadLineType()
public void setDeadLineType(java.lang.String deadLineType)
public Workflow getProcess()
public JSONObject createJSONObject() throws JSONException
createJSONObject
在接口中 ProcessElement
JSONException
public JSONObject createDetailedJSONObject() throws java.lang.Exception
java.lang.Exception
public void parseJSON(JSONObject jo)
jo
- JSON对象public void issue() throws java.lang.Exception
java.lang.Exception
public ProcessOperator getAllProcessOperator(int idx) throws java.lang.Exception
idx
- 节点层次java.lang.Exception
- 异常或错误public java.util.List<WorkflowTaskImpl> getAllProcessTaskImpl(int idx) throws java.lang.Exception
idx
- 流程节点层次java.lang.Exception
- 异常或错误public java.util.List<WorkflowTaskImpl> getAllProcessTaskImpl(java.lang.String taskId) throws java.lang.Exception
taskId
- 父任务IDjava.lang.Exception
- 异常或错误public java.util.List<WorkflowTaskImpl> getProcessTaskImplByUsername(java.lang.String userName, int currentNodeIdx, WorkflowTaskImpl processTaskImpl) throws java.lang.Exception
currentNodeIdx
- 用户idjava.lang.Exception
- 异常或错误public java.util.List<WorkflowTaskImpl> getProcessTaskImplByRole(java.lang.String idx, int currentNodeIdx)
idx
- 角色idpublic void issueTask(WorkflowTaskImpl taskImpl) throws java.lang.Exception
taskImpl
- 子任务java.lang.Exception
- 异常或错误public void onResume()
public void makeIssueOver()
public java.util.List<WorkflowTaskImpl> getAllTaskImpl()
public void clear()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
public java.util.List<java.lang.String> getFullNodeRoutes()
public WorkflowTaskEntity createEntity()