public class WorkflowTaskImpl extends BaseDataRecord implements java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
ALERTED |
static int |
COMPLETE |
static java.lang.String |
COMPLETE_STATE |
static java.lang.String |
CREATE_TIME |
static java.lang.String |
CURRENT_NODE_IDX |
static int |
CURRENT_OPERATOR |
static java.lang.String |
CUTPAGE |
static int |
DATA_SOURCE |
static java.lang.String |
DEADLINE |
static int |
EMPTY_OPERATORJSON |
static java.lang.String |
FR_TASK_ID |
static java.lang.String |
NEED_ALL_COMPLETE |
static java.lang.String |
NODE_ROUTE |
static int |
NOT_COMPLETE |
static java.lang.String |
NOTE |
static java.lang.String |
OPERATOR |
static java.lang.String |
OPERATOR_DELIMITER |
static java.lang.String |
OPERATOR_JSON |
static java.lang.String |
OPERATOR_OFFSET |
static java.lang.String |
OPERATOR_OFFSET_NAME |
static java.lang.String |
PARENT_ID |
static java.lang.String |
PROCESS_ID |
static java.lang.String |
REPORT_OFFSET |
static java.lang.String |
ROLE_DIFF |
static java.lang.String |
SEND_TIME |
static java.lang.String |
SENDER |
static java.lang.String |
SENDER_ID |
static int |
SINGLE_OPERATOR |
static java.lang.String |
SON_TAG_ID |
static java.lang.String |
SON_TAG_NODE_IDX |
static java.lang.String |
SON_TAG_USER_ID |
static java.lang.String |
SON_TASK_IDS |
static java.lang.String |
STATE |
static java.lang.String |
STATE_NAME |
static java.lang.String |
TASK_ID |
COLUMN_ID
构造器和说明 |
---|
WorkflowTaskImpl() |
WorkflowTaskImpl(WorkflowTask task,
java.lang.String operatorJSON,
int reportOffset,
java.lang.String operatorOffset,
boolean needAllComplete) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
addNote(int nodeIdx,
java.lang.String user,
java.lang.String message)
添加备注
|
boolean |
addNote(int nodeIdx,
java.lang.String user,
java.lang.String message,
java.lang.String time)
添加备注
|
boolean |
checkAllComplete()
是否全部完成
|
void |
checkValidBeforeMove(java.lang.String userid)
在节点变动操作是否可以操作
|
void |
checkValidBeforeMove(java.lang.String userid,
int nodeIdx)
在节点变动操作是否可以操作
必须是本节点的操作人
并且其下发的子任务都完成了
|
void |
clear()
清除本任务
清除子任务 数据库记录
|
java.lang.Object |
clone() |
JSONObject |
createDetailedJSONObject()
详细的信息
|
WorkflowTaskImplEntity |
createEntity() |
JSONObject |
createJSONObject() |
JSONObject |
createJSONObject(java.lang.String userId)
创建JSON对象
|
java.lang.String[] |
getAllRelatedUsers()
获取本任务的所有相关用户
|
java.lang.Object |
getAllSender(boolean fullName) |
java.lang.Object |
getAllSender(boolean getStr,
boolean fullName) |
java.lang.String |
getAllSenderStr(boolean needFullName) |
java.util.List<WorkflowTask> |
getAllSonTask()
获取子任务
|
JSONObject |
getBackTarget()
获取上个节点对象
|
java.lang.String |
getCompleteState() |
java.util.Date |
getCreateTime() |
java.lang.String |
getCreatorId() |
WorkflowNode |
getCurrentNode() |
int |
getCurrentNodeIdx() |
java.lang.String[] |
getCurrentNodeOperatorIds() |
java.lang.String |
getCurrentOperator() |
java.lang.String |
getCurrentOperatorName() |
int |
getCurrentRouteIdx() |
ProcessOperator[] |
getCurrentUnderTaker() |
java.lang.String[] |
getCurrentUnderTakerIds() |
java.util.Date |
getDeadLine() |
java.lang.String |
getFrTaskId() |
java.lang.String |
getFullNodeRoute(java.util.List<java.lang.String> fullNodeRoutes) |
int |
getMaxRoutePoint() |
java.lang.String |
getName() |
WorkflowNode |
getNode(int idx) |
java.lang.String |
getNodeRoute() |
ProcessOperator[] |
getNodeUnderTaker(int nodeIdx) |
ProcessOperator[] |
getNodeUnderTaker(int nodeIdx,
boolean getAll) |
java.lang.String |
getNote() |
JSONObject |
getOperateJSON() |
java.lang.String |
getOperatorJSON() |
int |
getOperatorNumFromCurrentNodeIdx() |
java.lang.String |
getOperatorOffset() |
java.lang.String |
getOperatorOffsetName() |
java.lang.String |
getParentId() |
Workflow |
getProcess() |
java.lang.String |
getProcessId() |
int |
getReportOffset() |
java.lang.String[] |
getRouteNodeOperatorIds()
获得各流转节点的节点操作员ID
|
java.lang.String |
getSender() |
java.lang.String |
getSender(boolean fullName) |
java.lang.String |
getSenderId() |
java.util.Date |
getSendTime() |
java.lang.String |
getSonTaskId() |
void |
getStartTarget(JSONObject result)
获取初始节点对象
|
int |
getState() |
java.lang.String |
getStateName() |
WorkflowTask |
getTask() |
java.lang.String |
getTaskId() |
java.lang.String |
getUserReportPath(java.lang.String userid)
获取用户模板路径
|
void |
initCompleteState(java.lang.String jo) |
void |
initOperateJSON(JSONObject operateJSON) |
void |
initProcessTask() |
void |
initReportProcess() |
boolean |
isAlerted() |
boolean |
isClosed()
任务是否关闭了
|
boolean |
isCompletedBy(java.lang.String userid)
这个任务是否由某个人完成了
|
boolean |
isCompletedByUser(java.lang.String userid)
这个任务是否由某个人完成了(不限于当前节点)
|
boolean |
isDataSource() |
boolean |
isNeedAllComplete() |
boolean |
isRelatedWith(java.lang.String userid) |
boolean |
isSameBatch(WorkflowTaskImpl impl) |
boolean |
isUnderTakeBy(java.lang.String userid) |
boolean |
isUseDataSource() |
boolean |
leapfrogBack()
判断是否支持越级回退
|
void |
onIssue()
下发完成的时候要进行的
|
void |
onResume()
服务器重新启动的时候要进行的
|
void |
resetCompleteState()
完成状态都置为没完成
|
void |
setAlerted(boolean alerted) |
void |
setCompleteState(java.lang.String completeState) |
void |
setCreateTime(java.util.Date createTime) |
void |
setCurrentNodeIdx(int currentNodeIdx) |
void |
setCurrentOperatorCompleted(java.lang.String userId,
java.lang.String reportPath)
设置当前正在操作的对象已完成
|
void |
setDataSource(boolean dataSource) |
void |
setDeadLine(java.util.Date deadLine) |
void |
setFrTaskId(java.lang.String frTaskId) |
void |
setName(java.lang.String name) |
void |
setNeedAllComplete(boolean needAllComplete) |
void |
setNodeRoute(java.lang.String nodeRoute) |
void |
setNote(java.lang.String note) |
void |
setOperateJSON(java.lang.String operatorJSON) |
void |
setOperatorJSON(java.lang.String operatorJSON) |
void |
setOperatorOffset(java.lang.String offset) |
void |
setOperatorOffsetName(java.lang.String offsetName) |
void |
setParentId(java.lang.String parentId) |
void |
setProcess(Workflow process) |
void |
setProcessId(java.lang.String processId) |
void |
setReportOffset(int reportOffset) |
void |
setSender(java.lang.String sender) |
void |
setSenderId(java.lang.String senderId) |
void |
setSendTime(java.util.Date sendTime) |
void |
setSonTaskId(java.lang.String sonTaskId) |
void |
setState(int state) |
void |
setTask(WorkflowTask task) |
void |
setTaskId(java.lang.String processTaskId) |
void |
setUseDataSource(boolean isUseDataSource) |
void |
startAlertSchedule()
开始预警计时任务
变动了如果设置了预警的话需要进行计时
|
void |
startOverTimeSchedule() |
void |
taskBack(java.lang.String userId,
java.lang.String reportPath,
java.lang.String backTarget,
java.lang.String backNodeItem)
回退
|
void |
taskClose(java.lang.String userId) |
void |
taskDistribute(java.lang.String userid,
java.lang.String taskId)
分发
|
void |
taskForward(java.lang.String userid,
java.lang.String reportPath,
int state) |
void |
taskPass(java.lang.String userid,
java.lang.String reportPath,
int nodeIdx)
通过
|
void |
taskReport(java.lang.String userid,
java.lang.String reportPath,
int nodeIdx)
上报
目前上报的过程为:
前端发请求校验本任务操作是否合法 --> 合法的话进行入库
--> 入库成功的话再进行流转 流转时候还会再校验一下流程任务
|
void |
taskStash(java.lang.String userid,
java.lang.String sessionID)
数据暂存
|
void |
updateMessageProcessed() |
getId, setId, toString
public static final java.lang.String TASK_ID
public static final java.lang.String FR_TASK_ID
public static final java.lang.String PROCESS_ID
public static final java.lang.String CURRENT_NODE_IDX
public static final java.lang.String OPERATOR_JSON
public static final java.lang.String REPORT_OFFSET
public static final java.lang.String OPERATOR_OFFSET
public static final java.lang.String OPERATOR_OFFSET_NAME
public static final java.lang.String NEED_ALL_COMPLETE
public static final java.lang.String COMPLETE_STATE
public static final java.lang.String STATE
public static final java.lang.String STATE_NAME
public static final java.lang.String SENDER_ID
public static final java.lang.String SENDER
public static final java.lang.String SEND_TIME
public static final java.lang.String CREATE_TIME
public static final java.lang.String NOTE
public static final java.lang.String NODE_ROUTE
public static final java.lang.String CUTPAGE
public static final java.lang.String SON_TASK_IDS
public static final java.lang.String PARENT_ID
public static final java.lang.String SON_TAG_NODE_IDX
public static final java.lang.String SON_TAG_USER_ID
public static final java.lang.String SON_TAG_ID
public static final java.lang.String ALERTED
public static final java.lang.String DEADLINE
public static final java.lang.String OPERATOR_DELIMITER
public static final java.lang.String OPERATOR
public static final java.lang.String ROLE_DIFF
public static final int CURRENT_OPERATOR
public static final int DATA_SOURCE
public static final int EMPTY_OPERATORJSON
public static final int SINGLE_OPERATOR
public static int COMPLETE
public static int NOT_COMPLETE
public WorkflowTaskImpl()
public WorkflowTaskImpl(WorkflowTask task, java.lang.String operatorJSON, int reportOffset, java.lang.String operatorOffset, boolean needAllComplete)
public boolean isNeedAllComplete()
public void setNeedAllComplete(boolean needAllComplete)
public java.lang.String getTaskId()
public void setTaskId(java.lang.String processTaskId)
public java.lang.String getFrTaskId()
public void setFrTaskId(java.lang.String frTaskId)
public boolean isSameBatch(WorkflowTaskImpl impl)
public java.lang.String getProcessId()
public void setProcessId(java.lang.String processId)
public WorkflowTask getTask()
public void setTask(WorkflowTask task)
public int getCurrentNodeIdx()
public void setCurrentNodeIdx(int currentNodeIdx)
public int getReportOffset()
public void setReportOffset(int reportOffset)
public java.lang.String getOperatorOffset()
public void setOperatorOffset(java.lang.String offset)
public java.lang.String getOperatorOffsetName()
public void setOperatorOffsetName(java.lang.String offsetName)
public java.lang.String getNote()
public void setNote(java.lang.String note)
public java.lang.String getParentId()
public void setParentId(java.lang.String parentId)
public WorkflowNode getNode(int idx)
public WorkflowNode getCurrentNode()
public java.lang.String getNodeRoute()
public void setNodeRoute(java.lang.String nodeRoute)
public int getCurrentRouteIdx()
public java.lang.String getSonTaskId()
public void setSonTaskId(java.lang.String sonTaskId)
public java.util.Date getCreateTime()
public void setCreateTime(java.util.Date createTime)
public java.lang.String getOperatorJSON()
public void setOperatorJSON(java.lang.String operatorJSON)
public boolean isAlerted()
public void setAlerted(boolean alerted)
public Workflow getProcess()
public void setProcess(Workflow process)
public boolean isDataSource()
public void setDataSource(boolean dataSource)
public int getMaxRoutePoint()
public void initCompleteState(java.lang.String jo)
public java.lang.String getCompleteState()
public void setCompleteState(java.lang.String completeState)
public boolean isUseDataSource()
public void setUseDataSource(boolean isUseDataSource)
public void resetCompleteState()
public boolean checkAllComplete()
public int getState()
public void setState(int state)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getSenderId()
public void setSenderId(java.lang.String senderId)
public java.util.Date getSendTime()
public void setSendTime(java.util.Date sendTime)
public java.lang.String getSender()
public void setSender(java.lang.String sender)
public java.lang.String getSender(boolean fullName)
public java.lang.Object getAllSender(boolean fullName)
public java.lang.String getAllSenderStr(boolean needFullName)
public java.lang.Object getAllSender(boolean getStr, boolean fullName)
public java.lang.String getCreatorId()
public java.util.Date getDeadLine()
public void setDeadLine(java.util.Date deadLine)
public java.lang.String getStateName()
public JSONObject createJSONObject()
public JSONObject createJSONObject(java.lang.String userId)
userId
- 用户idJSONException
public JSONObject createDetailedJSONObject() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCurrentOperator()
public java.lang.String getCurrentOperatorName()
public boolean isCompletedBy(java.lang.String userid) throws java.lang.Exception
userid
- 用户idjava.lang.Exception
public boolean isCompletedByUser(java.lang.String userid) throws java.lang.Exception
userid
- 用户idjava.lang.Exception
public boolean isUnderTakeBy(java.lang.String userid)
public boolean isRelatedWith(java.lang.String userid)
public java.lang.String[] getCurrentUnderTakerIds()
public java.lang.String[] getCurrentNodeOperatorIds() throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getAllRelatedUsers()
public ProcessOperator[] getCurrentUnderTaker()
public ProcessOperator[] getNodeUnderTaker(int nodeIdx) throws java.lang.Exception
java.lang.Exception
public ProcessOperator[] getNodeUnderTaker(int nodeIdx, boolean getAll) throws java.lang.Exception
java.lang.Exception
public java.lang.String getUserReportPath(java.lang.String userid)
userid
- 用户idpublic boolean addNote(int nodeIdx, java.lang.String user, java.lang.String message)
nodeIdx
- 节点user
- 用户名message
- 备注public boolean addNote(int nodeIdx, java.lang.String user, java.lang.String message, java.lang.String time)
nodeIdx
- 节点user
- 用户名message
- 备注time
- 时间public JSONObject getBackTarget() throws java.lang.Exception
java.lang.Exception
public boolean leapfrogBack() throws java.lang.Exception
java.lang.Exception
public void getStartTarget(JSONObject result) throws java.lang.Exception
result
- 返回结果java.lang.Exception
- 异常public void taskBack(java.lang.String userId, java.lang.String reportPath, java.lang.String backTarget, java.lang.String backNodeItem) throws java.lang.Exception
userId
- 用户idreportPath
- 模板backTarget
- 回退对象java.lang.Exception
public void setCurrentOperatorCompleted(java.lang.String userId, java.lang.String reportPath) throws java.lang.Exception
userId
- 用户idreportPath
- 模板java.lang.Exception
public void taskForward(java.lang.String userid, java.lang.String reportPath, int state) throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getRouteNodeOperatorIds() throws java.lang.Exception
java.lang.Exception
- 异常public int getOperatorNumFromCurrentNodeIdx() throws java.lang.Exception
java.lang.Exception
public void initOperateJSON(JSONObject operateJSON)
public JSONObject getOperateJSON() throws JSONException
JSONException
public void setOperateJSON(java.lang.String operatorJSON)
public java.lang.String getFullNodeRoute(java.util.List<java.lang.String> fullNodeRoutes)
public void taskClose(java.lang.String userId) throws java.lang.Exception
java.lang.Exception
public void taskDistribute(java.lang.String userid, java.lang.String taskId) throws java.lang.Exception
userid
- 用户idtaskId
- 分发的子任务idjava.lang.Exception
public void taskStash(java.lang.String userid, java.lang.String sessionID) throws java.lang.Exception
userid
- 用户idsessionID
- 任务模板会话的sessionIDjava.lang.Exception
public void taskPass(java.lang.String userid, java.lang.String reportPath, int nodeIdx) throws java.lang.Exception
userid
- 用户idreportPath
- 模板nodeIdx
- 节点java.lang.Exception
public void taskReport(java.lang.String userid, java.lang.String reportPath, int nodeIdx) throws java.lang.Exception
userid
- 用户idreportPath
- 模板nodeIdx
- 节点java.lang.Exception
public void checkValidBeforeMove(java.lang.String userid) throws java.lang.Exception
userid
- 用户idjava.lang.Exception
public void checkValidBeforeMove(java.lang.String userid, int nodeIdx) throws java.lang.Exception
userid
- 用户idnodeIdx
- 操作节点java.lang.Exception
public void updateMessageProcessed()
public void startOverTimeSchedule()
public void startAlertSchedule()
public void onIssue()
public void onResume()
public boolean isClosed()
public void initProcessTask()
public void initReportProcess()
public java.util.List<WorkflowTask> getAllSonTask()
public void clear()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
public WorkflowTaskImplEntity createEntity()