public class InsServiceImpl extends WarmServiceImpl<FlowInstanceDao<Instance>,Instance> implements InsService
warmDao| Constructor and Description |
|---|
InsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
active(Long id)
激活实例
|
private Node |
getFirstBetween(Node startNode)
有且只能有一个开始节点
|
boolean |
remove(List<Long> instanceIds)
根据实例ids,删除流程
|
private void |
saveFlowInfo(Instance instance,
List<Task> addTasks,
List<HisTask> hisTasks)
开启流程,保存流程信息
|
InsService |
setDao(FlowInstanceDao<Instance> warmDao) |
private List<HisTask> |
setHisTask(List<Node> nextNodes,
FlowParams flowParams,
Node startNode,
Long instanceId)
设置历史任务
|
private Instance |
setStartInstance(Node firstBetweenNode,
String businessId,
FlowParams flowParams)
设置流程实例对象
|
Instance |
skipByInsId(Long instanceId,
FlowParams flowParams)
根据实例id,流程跳转,一般是开始节点后第一个节点,用来提交申请,此时不可有同时两个待办任务
|
Instance |
start(String businessId,
FlowParams flowParams)
传入业务id开启流程
|
Instance |
termination(Long instanceId,
FlowParams flowParams)
终止流程,提前结束流程,将所有待办任务转历史
|
private boolean |
toRemoveTask(List<Long> instanceIds) |
boolean |
unActive(Long id)
挂起实例,流程实例挂起后,该流程实例无法继续流转
|
exists, getById, getByIds, getDao, getOne, insertFill, list, list, orderBy, orderByAsc, orderByCreateTime, orderByDesc, orderById, orderByUpdateTime, page, remove, removeById, removeByIds, save, saveBatch, saveBatch, selectCount, updateBatch, updateById, updateFillclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, getById, getByIds, getDao, getOne, list, list, orderBy, orderByAsc, orderByCreateTime, orderByDesc, orderById, orderByUpdateTime, page, remove, removeById, removeByIds, save, saveBatch, saveBatch, selectCount, updateBatch, updateByIdpublic InsServiceImpl()
public InsService setDao(FlowInstanceDao<Instance> warmDao)
setDao in class WarmServiceImpl<FlowInstanceDao<Instance>,Instance>public Instance start(String businessId, FlowParams flowParams)
InsServicestart in interface InsServicepublic Instance skipByInsId(Long instanceId, FlowParams flowParams)
InsServiceskipByInsId in interface InsServicepublic Instance termination(Long instanceId, FlowParams flowParams)
InsServicetermination in interface InsServicepublic boolean remove(List<Long> instanceIds)
InsServiceremove in interface InsServiceprivate List<HisTask> setHisTask(List<Node> nextNodes, FlowParams flowParams, Node startNode, Long instanceId)
nextNodes - 下一节点集合flowParams - 流程参数startNode - 开始节点instanceId - 流程实例idprivate void saveFlowInfo(Instance instance, List<Task> addTasks, List<HisTask> hisTasks)
instance - 流程实例addTasks - 新增任务hisTasks - 历史任务private Instance setStartInstance(Node firstBetweenNode, String businessId, FlowParams flowParams)
firstBetweenNode - 第一个中间节点businessId - 业务idprivate Node getFirstBetween(Node startNode)
startNode - 开始节点private boolean toRemoveTask(List<Long> instanceIds)
public boolean active(Long id)
InsServiceactive in interface InsServiceid - 流程实例id: [必传]public boolean unActive(Long id)
InsServiceunActive in interface InsServiceid - 流程实例id: [必传]Copyright © 2024. All rights reserved.