public class WorkflowManager
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
CACHE_TASK_LIMIT |
static boolean |
cacheTask |
static long |
END_TIME
default end time
|
static boolean |
initialized |
static java.lang.String |
ONLY_ONCE |
static java.lang.String |
START_TIME |
构造器和说明 |
---|
WorkflowManager() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addTask(WorkflowTaskImpl task)
添加任务
|
static void |
checkAlert(java.lang.String userId) |
static void |
checkRemind(java.lang.String userName) |
static void |
clearIssue(java.lang.String taskId)
清除
|
static void |
error(java.lang.String message) |
static void |
error(java.lang.String userId,
java.lang.String processName,
java.lang.String taskName,
java.lang.String message) |
static void |
error(java.lang.String userId,
WorkflowTaskImpl task,
java.lang.String message) |
static java.util.List<WorkflowTaskImpl> |
getActiveTaskFromDB() |
static JSONArray |
getAllReportProcess(AdvancedTaskQuery advancedTaskQuery,
java.lang.String processName)
高级搜索
|
static JSONArray |
getAllReportProcess(BaseTaskQuery baseTaskQuery,
java.lang.String filter)
获取用户创建的流程
|
static JSONArray |
getAllTask(AdvancedTaskQuery advancedTaskQuery,
java.lang.String processName)
高级搜索
|
static JSONArray |
getAllTask(BaseTaskQuery baseTaskQuery,
java.lang.String filter)
获取用户创建的任务
|
static JSONArray |
getAllTaskImpl(int getType,
java.lang.String userid,
java.lang.String filter,
java.lang.String sortBy,
boolean asc)
获取用户处理的任务
|
static JSONArray |
getAllTaskImpl(int getType,
java.lang.String userid,
java.lang.String creatorId,
java.lang.String senderId,
java.lang.String taskName,
java.util.Date sendStartTime,
java.util.Date sendEndTime,
java.util.Date startDeadLine,
java.util.Date endDeadLine,
int state,
int opt,
java.lang.String sortBy,
boolean asc) |
static java.util.Date |
getDefaultEndTime() |
static java.util.Map<java.lang.String,java.lang.Boolean> |
getLockedProcessMap() |
static java.util.Map<java.lang.String,java.lang.Boolean> |
getLockedProcessOrTask(boolean isProcess) |
static java.util.Map<java.lang.String,java.lang.Boolean> |
getLockedTaskMap() |
static java.lang.String |
getProcessName(java.lang.String processId) |
static int |
getStateByAuthority(java.lang.String authority)
根据操作权限获取状态
|
static WorkflowTaskImpl |
getTask(java.lang.String id)
获取任务实例
|
static java.lang.String |
getTaskAuthorityName(int idx) |
static java.lang.String |
getTaskAuthorityName(java.lang.String authority,
boolean offline) |
static java.lang.String |
getTaskName(java.lang.String taskId) |
static java.lang.String |
getTaskStateName(int state)
获取状态名称
|
static java.util.List<java.lang.String> |
getUserOps(java.lang.String userid)
获取用户和用户所在角色字符串列表
|
static void |
init()
初始化数据
|
static void |
issue(java.lang.String issueControl,
WorkflowTask pt)
创建人物的时候任务下发
|
static void |
log(java.lang.String message) |
static void |
log(java.lang.String operatorName,
java.lang.String message) |
static void |
log(java.lang.String operatorName,
java.lang.String processName,
java.lang.String taskName,
java.lang.String message) |
static void |
log(java.lang.String userId,
WorkflowTaskImpl task,
java.lang.String message) |
static void |
registerIssue(java.lang.String taskId,
java.util.concurrent.ScheduledFuture timer)
注册定时下发任务
|
static void |
removeTask(java.lang.String id)
删除任务
|
public static final int CACHE_TASK_LIMIT
public static final java.lang.String START_TIME
public static final java.lang.String ONLY_ONCE
public static final long END_TIME
public static boolean cacheTask
public static boolean initialized
public static void init()
public static WorkflowTaskImpl getTask(java.lang.String id)
id
- public static void addTask(WorkflowTaskImpl task) throws java.lang.Exception
task
- 任务java.lang.Exception
public static void removeTask(java.lang.String id) throws java.lang.Exception
id
- 任务idjava.lang.Exception
public static java.util.List<WorkflowTaskImpl> getActiveTaskFromDB()
public static void issue(java.lang.String issueControl, WorkflowTask pt)
issueControl
- 定时下发控制pt
- 任务public static void registerIssue(java.lang.String taskId, java.util.concurrent.ScheduledFuture timer)
taskId
- 流程任务idtimer
- 定时器public static void clearIssue(java.lang.String taskId)
taskId
- 流程任务idpublic static JSONArray getAllReportProcess(BaseTaskQuery baseTaskQuery, java.lang.String filter) throws java.lang.Exception
baseTaskQuery
- 基础搜索对象filter
- 过滤词java.lang.Exception
- 异常public static JSONArray getAllReportProcess(AdvancedTaskQuery advancedTaskQuery, java.lang.String processName) throws java.lang.Exception
advancedTaskQuery
- 高级搜索对象processName
- 流程名java.lang.Exception
- 异常public static java.util.Map<java.lang.String,java.lang.Boolean> getLockedProcessMap() throws java.lang.Exception
java.lang.Exception
public static java.util.Map<java.lang.String,java.lang.Boolean> getLockedTaskMap() throws java.lang.Exception
java.lang.Exception
public static java.util.Map<java.lang.String,java.lang.Boolean> getLockedProcessOrTask(boolean isProcess) throws java.lang.Exception
java.lang.Exception
public static JSONArray getAllTask(BaseTaskQuery baseTaskQuery, java.lang.String filter) throws java.lang.Exception
baseTaskQuery
- 基础查询对象filter
- 过滤词java.lang.Exception
public static JSONArray getAllTask(AdvancedTaskQuery advancedTaskQuery, java.lang.String processName) throws java.lang.Exception
advancedTaskQuery
- 高级搜索对象processName
- 流程名java.lang.Exception
- 异常public static JSONArray getAllTaskImpl(int getType, java.lang.String userid, java.lang.String filter, java.lang.String sortBy, boolean asc) throws java.lang.Exception
userid
- 用户idfilter
- 过滤词java.lang.Exception
public static JSONArray getAllTaskImpl(int getType, java.lang.String userid, java.lang.String creatorId, java.lang.String senderId, java.lang.String taskName, java.util.Date sendStartTime, java.util.Date sendEndTime, java.util.Date startDeadLine, java.util.Date endDeadLine, int state, int opt, java.lang.String sortBy, boolean asc) throws java.lang.Exception
java.lang.Exception
public static java.util.List<java.lang.String> getUserOps(java.lang.String userid) throws java.lang.Exception
userid
- 用户idjava.lang.Exception
public static java.util.Date getDefaultEndTime()
public static void checkAlert(java.lang.String userId)
public static void checkRemind(java.lang.String userName)
public static void log(java.lang.String message)
public static void log(java.lang.String operatorName, java.lang.String message)
public static void log(java.lang.String userId, WorkflowTaskImpl task, java.lang.String message)
public static void log(java.lang.String operatorName, java.lang.String processName, java.lang.String taskName, java.lang.String message)
public static void error(java.lang.String message)
public static void error(java.lang.String userId, WorkflowTaskImpl task, java.lang.String message)
public static void error(java.lang.String userId, java.lang.String processName, java.lang.String taskName, java.lang.String message)
public static java.lang.String getTaskStateName(int state)
state
- 状态idpublic static java.lang.String getTaskAuthorityName(int idx)
public static java.lang.String getTaskAuthorityName(java.lang.String authority, boolean offline)
public static int getStateByAuthority(java.lang.String authority)
authority
- public static java.lang.String getProcessName(java.lang.String processId)
public static java.lang.String getTaskName(java.lang.String taskId)