类的使用
net.sohelp.boot.engine.workflow.core.FlowCreator
使用FlowCreator的程序包
程序包
说明
-
net.sohelp.boot.demo.core.workflow中FlowCreator的使用
修饰符和类型方法说明booleanWorkFlowInstanceListener.notify(InstanceEventType eventType, Supplier<FlwHisInstance> supplier, NodeModel nodeModel, FlowCreator flowCreator) 通知工作流事件发生booleanWorkflowTaskListener.notify(TaskEventType eventType, Supplier<FlwTask> supplier, List<FlwTaskActor> taskActors, NodeModel nodeModel, FlowCreator flowCreator) 任务事件通知处理器,根据不同事件类型发送相应通知并更新业务状态 -
net.sohelp.boot.engine.workflow中FlowCreator的使用
修饰符和类型方法说明booleanRuntimeService.activeInstanceById(Long instanceId, FlowCreator flowCreator) 激活流程实例InstanceState.activedefault booleanTaskService.addTaskActor(Long taskId, List<FlwTaskActor> taskActors, FlowCreator flowCreator) booleanTaskService.addTaskActor(Long taskId, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator) 向指定的任务ID添加参与者【加签】default booleanTaskService.addTaskActor(Long taskId, PerformType performType, FlwTaskActor taskActor, FlowCreator flowCreator) default booleanTaskService.addTaskActor(Long taskId, FlwTaskActor taskActor, FlowCreator flowCreator) default booleanTaskService.agentTask(Long taskId, FlowCreator flowCreator, List<FlowCreator> agentFlowCreators) default booleanTaskService.agentTask(Long taskId, FlowCreator flowCreator, List<FlowCreator> agentFlowCreators, Map<String, Object> args) 根据 任务ID 指定代理人default booleanTaskService.assigneeTask(Long taskId, TaskType taskType, TaskEventType taskEventType, FlowCreator flowCreator, List<FlowCreator> assigneeFlowCreators) booleanTaskService.assigneeTask(Long taskId, TaskType taskType, TaskEventType taskEventType, FlowCreator flowCreator, List<FlowCreator> assigneeFlowCreators, Map<String, Object> args, Function<FlwTask, Boolean> check) 根据 任务ID 分配任务给指定办理人、重置任务类型booleanFlowEngine.autoCompleteTask(Long taskId, Map<String, Object> args, FlowCreator flowCreator) 自动完成任务default booleanFlowEngine.autoCompleteTask(Long taskId, FlowCreator flowCreator) booleanFlowEngine.autoJumpTask(Long taskId, Map<String, Object> args, FlowCreator flowCreator) 自动跳转任务default booleanFlowEngine.autoJumpTask(Long taskId, FlowCreator flowCreator) booleanFlowEngine.autoRejectTask(FlwTask flwTask, Map<String, Object> args, FlowCreator flowCreator) 自动拒绝任务default booleanFlowEngine.autoRejectTask(FlwTask flwTask, FlowCreator flowCreator) TaskService.claimDepartment(Long taskId, FlowCreator flowCreator) 部门根据 任务ID 认领任务,删除其它任务参与者TaskService.claimRole(Long taskId, FlowCreator flowCreator) 角色根据 任务ID 认领任务,删除其它任务参与者default FlwTaskTaskService.complete(Long taskId, FlowCreator flowCreator) default FlwTask根据任务ID,创建人ID完成任务booleanTaskService.completeActiveTasksByInstanceId(Long instanceId, FlowCreator flowCreator) 完成指定实例ID活动任务default booleanFlowEngine.createCcTask(FlwTask flwTask, List<NodeAssignee> ccUserList, FlowCreator flowCreator) 创建抄送任务booleanFlowEngine.createCcTask(NodeModel taskModel, FlwTask flwTask, List<NodeAssignee> ccUserList, FlowCreator flowCreator) 创建抄送任务booleanTaskService.createCcTask(NodeModel taskModel, FlwTask flwTask, List<NodeAssignee> ccUserList, FlowCreator flowCreator) 创建抄送任务RuntimeService.createInstance(FlwProcess flwProcess, FlowCreator flowCreator, Map<String, Object> args, NodeModel nodeModel, boolean saveAsDraft, Supplier<FlwInstance> supplier) 根据流程、创建人员、父流程实例ID创建流程实例FlowEngine.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Map<String, Object> args) 根据已有任务、参与者创建新的任务TaskService.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Function<FlwTask, Execution> executionFunction) 根据已有任务、参与者创建新的任务default booleanTaskService.delegateTask(Long taskId, FlowCreator flowCreator, FlowCreator assigneeFlowCreator) default booleanTaskService.delegateTask(Long taskId, FlowCreator flowCreator, FlowCreator assigneeFlowCreator, Map<String, Object> args) 根据 任务ID 委派任务、代理人办理完任务该任务重新归还给原处理人default LongProcessService.deploy(InputStream input, FlowCreator flowCreator, boolean repeat) 根据InputStream输入流,部署流程定义default LongProcessService.deploy(InputStream input, FlowCreator flowCreator, boolean repeat, Consumer<FlwProcess> processSave) 根据InputStream输入流,部署流程定义ProcessService.deploy(Long processId, String jsonString, FlowCreator flowCreator, boolean repeat, Consumer<FlwProcess> processSave) 根据 流程定义jsonString 部署流程定义default LongProcessService.deployByResource(String resourceName, FlowCreator flowCreator, boolean repeat) 根据本地 resource 资源名称部署流程default LongProcessService.deployByResource(String resourceName, FlowCreator flowCreator, boolean repeat, Consumer<FlwProcess> processSave) 根据本地 resource 资源名称部署流程default booleanFlowEngine.executeAppendNodeModel(Long taskId, NodeModel nodeModel, FlowCreator flowCreator, boolean beforeAfter) 执行追加节点模型booleanFlowEngine.executeAppendNodeModel(Long taskId, NodeModel nodeModel, FlowCreator flowCreator, Map<String, Object> args, boolean beforeAfter) 执行追加节点模型default booleanFlowEngine.executeFinishTrigger(Long taskId, FlowCreator flowCreator) booleanFlowEngine.executeFinishTrigger(Long taskId, FlowCreator flowCreator, Map<String, Object> args) 根据 触发器任务ID,创建人信息,参数列表执行完成触发器任务booleanTaskService.executeFinishTrigger(NodeModel nodeModel, Execution execution, FlowCreator flowCreator) 执行完成触发器操作流程继续往下执行default booleanFlowEngine.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator) default booleanFlowEngine.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args) 根据任务ID,创建人ID,参数列表执行任务,并且根据nodeName跳转到任意节点FlowEngine.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, TaskType taskType) default booleanTaskService.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Function<FlwTask, Execution> executionFunction) default booleanTaskService.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, Function<FlwTask, Execution> executionFunction) TaskService.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, Function<FlwTask, Execution> executionFunction, TaskType taskType) 执行节点跳转任务FlowEngine.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator) FlowEngine.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args) FlowEngine.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, boolean termination) 根据当前任务对象驳回至指定 nodeKey 节点,如果 nodeKey 为空默认为上一步处理FlowEngine.executeRejectTask(FlwTask currentFlwTask, FlowCreator flowCreator) FlowEngine.executeRejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args) default booleanFlowEngine.executeResumeTask(Long instanceId, FlowCreator flowCreator) booleanFlowEngine.executeResumeTask(Long instanceId, FlowCreator flowCreator, Map<String, Object> args) 执行唤醒撤回或拒绝终止历史任务(只有实例发起人可操作)default booleanFlowEngine.executeTask(Long taskId, FlowCreator flowCreator) booleanFlowEngine.executeTask(Long taskId, FlowCreator flowCreator, Map<String, Object> args) 根据任务ID,创建人信息,参数列表执行任务TaskService.executeTask(Long taskId, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) 根据任务ID,创建人ID完成任务booleanTaskService.forceCompleteAllTask(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator, InstanceState instanceState, TaskEventType eventType) 强制完成所有任务booleanTaskService.forceCompleteTask(FlwTask flwTask, FlowCreator flowCreator, TaskState taskState, TaskEventType eventType) 强制完成某个任务default FlwTaskActorTaskAccessStrategy.getAllowedFlwTaskActor(Long taskId, FlowCreator flowCreator, List<FlwTaskActor> taskActors) 获取指定合法参与者对象default booleanTaskActorProvider.isAllowed(NodeModel nodeModel, FlowCreator flowCreator) 流程创建者是否允许操作执行当前节点TaskService.reclaimTask(Long taskId, FlowCreator flowCreator) TaskService.reclaimTask(Long taskId, FlowCreator flowCreator, BiConsumer<FlwHisTask, Integer> assertConsumer) 拿回任务、在当前办理人尚未处理文件前,允许上一节点提交人员执行拿回default booleanRuntimeService.reject(Long instanceId, FlowCreator flowCreator) booleanRuntimeService.reject(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) 流程实例拒绝审批强制终止(用于后续审核人员认为该审批不再需要继续,拒绝审批强行终止)TaskService.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator) TaskService.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args) TaskService.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) 根据当前任务对象驳回至上一步处理default booleanTaskService.removeTaskActor(Long taskId, String actorId, FlowCreator flowCreator) booleanTaskService.removeTaskActor(Long taskId, List<String> actorIds, FlowCreator flowCreator) 对指定的任务ID删除参与者【减签】booleanTaskService.resolveTask(Long taskId, FlowCreator flowCreator) 根据 任务ID 解决委派任务booleanTaskService.resume(Long instanceId, FlowCreator flowCreator, BiFunction<FlwInstance, String, Boolean> execFunc) 唤醒撤回或拒绝终止历史任务(只有实例发起人可操作)default booleanRuntimeService.revoke(Long instanceId, FlowCreator flowCreator) booleanRuntimeService.revoke(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) 流程实例撤销(用于错误发起审批申请,发起人主动撤销)voidRuntimeService.saveInstance(FlwInstance flwInstance, FlwProcess flwProcess, boolean saveAsDraft, FlowCreator flowCreator) 保存流程实例default Optional<FlwInstance> FlowEngine.startInstanceById(Long id, FlowCreator flowCreator) default Optional<FlwInstance> FlowEngine.startInstanceById(Long id, FlowCreator flowCreator, boolean saveAsDraft) default Optional<FlwInstance> FlowEngine.startInstanceById(Long id, FlowCreator flowCreator, String businessKey) default Optional<FlwInstance> FlowEngine.startInstanceById(Long id, FlowCreator flowCreator, String businessKey, boolean saveAsDraft) default Optional<FlwInstance> FlowEngine.startInstanceById(Long id, FlowCreator flowCreator, Map<String, Object> args) default Optional<FlwInstance> FlowEngine.startInstanceById(Long id, FlowCreator flowCreator, Map<String, Object> args, boolean saveAsDraft) FlowEngine.startInstanceById(Long id, FlowCreator flowCreator, Map<String, Object> args, boolean saveAsDraft, Supplier<FlwInstance> supplier) 根据流程定义ID,创建人ID,参数列表启动流程实例default Optional<FlwInstance> FlowEngine.startInstanceByProcessKey(String processKey, Integer version, FlowCreator flowCreator) default Optional<FlwInstance> FlowEngine.startInstanceByProcessKey(String processKey, Integer version, FlowCreator flowCreator, boolean saveAsDraft) default Optional<FlwInstance> FlowEngine.startInstanceByProcessKey(String processKey, Integer version, FlowCreator flowCreator, String businessKey) default Optional<FlwInstance> FlowEngine.startInstanceByProcessKey(String processKey, Integer version, FlowCreator flowCreator, String businessKey, boolean saveAsDraft) default Optional<FlwInstance> FlowEngine.startInstanceByProcessKey(String processKey, Integer version, FlowCreator flowCreator, Map<String, Object> args) default Optional<FlwInstance> FlowEngine.startInstanceByProcessKey(String processKey, Integer version, FlowCreator flowCreator, Map<String, Object> args, boolean saveAsDraft) FlowEngine.startInstanceByProcessKey(String processKey, Integer version, FlowCreator flowCreator, Map<String, Object> args, boolean saveAsDraft, Supplier<FlwInstance> supplier) 根据流程名称、版本号、创建人、参数列表启动流程实例default Optional<FlwInstance> FlowEngine.startInstanceByProcessKey(String processKey, FlowCreator flowCreator) default Optional<FlwInstance> FlowEngine.startInstanceByProcessKey(String processKey, FlowCreator flowCreator, boolean saveAsDraft) FlowEngine.startProcessInstance(FlwProcess process, FlowCreator flowCreator, Map<String, Object> args, boolean saveAsDraft, Supplier<FlwInstance> supplier) 根据流程对象启动流程实例booleanRuntimeService.suspendInstanceById(Long instanceId, FlowCreator flowCreator) 暂停流程实例InstanceState.suspenddefault booleanRuntimeService.terminate(Long instanceId, FlowCreator flowCreator) booleanRuntimeService.terminate(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) 流程实例强制终止default booleanRuntimeService.timeout(Long instanceId, FlowCreator flowCreator) booleanRuntimeService.timeout(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) 流程实例超时(设定审批时间超时,自动结束)default booleanTaskService.transferTask(Long taskId, FlowCreator flowCreator, FlowCreator assigneeFlowCreator) default booleanTaskService.transferTask(Long taskId, FlowCreator flowCreator, FlowCreator assigneeFlowCreator, Map<String, Object> args) 根据 任务ID 转办任务booleanTaskService.transferTask(FlowCreator flowCreator, FlowCreator assigneeFlowCreator) 参与者的所有任务【离职转办】给指定办理人voidTaskService.updateTaskById(FlwTask flwTask, FlowCreator flowCreator) 更新任务对象booleanTaskService.viewTask(Long taskId, FlowCreator flowCreator) 查看任务设置为已阅状态TaskService.withdrawTask(Long taskId, FlowCreator flowCreator) 根据任务ID、创建人撤回任务(该任务后续任务未执行前有效)类型变量类型为FlowCreator的net.sohelp.boot.engine.workflow中的方法参数修饰符和类型方法说明default booleanTaskService.agentTask(Long taskId, FlowCreator flowCreator, List<FlowCreator> agentFlowCreators) default booleanTaskService.agentTask(Long taskId, FlowCreator flowCreator, List<FlowCreator> agentFlowCreators, Map<String, Object> args) 根据 任务ID 指定代理人default booleanTaskService.assigneeTask(Long taskId, TaskType taskType, TaskEventType taskEventType, FlowCreator flowCreator, List<FlowCreator> assigneeFlowCreators) booleanTaskService.assigneeTask(Long taskId, TaskType taskType, TaskEventType taskEventType, FlowCreator flowCreator, List<FlowCreator> assigneeFlowCreators, Map<String, Object> args, Function<FlwTask, Boolean> check) 根据 任务ID 分配任务给指定办理人、重置任务类型 -
net.sohelp.boot.engine.workflow.core中FlowCreator的使用
修饰符和类型方法说明static FlowCreatorstatic FlowCreatorstatic FlowCreatorFlowCreator.of(FlwTaskActor fta) 修饰符和类型方法说明booleanFlowEngineImpl.autoCompleteTask(Long taskId, Map<String, Object> args, FlowCreator flowCreator) 自动完成任务booleanFlowEngineImpl.autoJumpTask(Long taskId, Map<String, Object> args, FlowCreator flowCreator) 自动跳转任务booleanFlowEngineImpl.autoRejectTask(FlwTask flwTask, Map<String, Object> args, FlowCreator flowCreator) 自动拒绝任务booleanFlowEngineImpl.createCcTask(NodeModel taskModel, FlwTask flwTask, List<NodeAssignee> ccUserList, FlowCreator flowCreator) 创建抄送任务protected ExecutionFlowEngineImpl.createExecution(ProcessModel processModel, FlwInstance flwInstance, FlwTask flwTask, FlowCreator flowCreator, Map<String, Object> args) FlowEngineImpl.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Map<String, Object> args) booleanFlowEngineImpl.executeAppendNodeModel(Long taskId, NodeModel nodeModel, FlowCreator flowCreator, Map<String, Object> args, boolean beforeAfter) booleanFlowEngineImpl.executeFinishTrigger(Long taskId, FlowCreator flowCreator, Map<String, Object> args) 根据 触发器任务ID,创建人信息,参数列表执行完成触发器任务FlowEngineImpl.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, TaskType taskType) FlowEngineImpl.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, boolean termination) FlowEngineImpl.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, boolean termination, Supplier<Optional<List<FlwTask>>> terminateProcess) booleanFlowEngineImpl.executeResumeTask(Long instanceId, FlowCreator flowCreator, Map<String, Object> args) booleanFlowEngineImpl.executeTask(Long taskId, FlowCreator flowCreator, Map<String, Object> args) 根据任务ID,创建人信息,参数列表执行任务protected booleanFlowEngineImpl.executeTask(Long taskId, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) FlowEngineImpl.startInstanceById(Long id, FlowCreator flowCreator, Map<String, Object> args, boolean saveAsDraft, Supplier<FlwInstance> supplier) 根据流程定义ID,创建人,参数列表启动流程实例FlowEngineImpl.startInstanceByProcessKey(String processKey, Integer version, FlowCreator flowCreator, Map<String, Object> args, boolean saveAsDraft, Supplier<FlwInstance> supplier) 根据流程定义key、版本号、创建人、参数列表启动流程实例FlowEngineImpl.startProcessInstance(FlwProcess process, FlowCreator flowCreator, Map<String, Object> args, boolean saveAsDraft, Supplier<FlwInstance> supplier) 根据流程对象启动流程实例限定符构造器说明Execution(FlowCreator flowCreator, Map<String, Object> args) 构造函数,仅适用于模型条件节点查找Execution(FlowEngine engine, ProcessModel processModel, FlowCreator flowCreator, FlwInstance flwInstance, Map<String, Object> args) 构造函数,接收流程定义、流程实例对象、执行参数 -
net.sohelp.boot.engine.workflow.entity中FlowCreator的使用
修饰符和类型方法说明FlwProcess.executeStartModel(FlowContext flowLongContext, FlowCreator flowCreator, boolean saveAsDraft, Function<NodeModel, Execution> function) 执行开始模型static FlwProcessFlwProcess.of(FlowCreator flowCreator, ProcessModel processModel, int processVersion, String jsonString) static FlwTaskActorFlwTaskActor.of(FlowCreator flowCreator, FlwTask flwTask) static FlwTaskActorFlwTaskActor.ofAgent(AgentType agentType, FlowCreator flowCreator, FlwTask flwTask, FlwTaskActor agentTaskActor) static FlwTaskActorFlwTaskActor.ofAgentIt(FlowCreator flowCreator) static FlwTaskActorFlwTaskActor.ofFlowCreator(FlowCreator flowCreator) voidFlowEntity.setFlowCreator(FlowCreator flowCreator) -
net.sohelp.boot.engine.workflow.impl中FlowCreator的使用
修饰符和类型方法说明booleanRuntimeServiceImpl.activeInstanceById(Long instanceId, FlowCreator flowCreator) booleanTaskServiceImpl.addTaskActor(Long taskId, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator) 向指定的任务ID添加参与者booleanTaskServiceImpl.assigneeTask(Long taskId, TaskType taskType, TaskEventType taskEventType, FlowCreator flowCreator, List<FlowCreator> assigneeFlowCreators, Map<String, Object> args, Function<FlwTask, Boolean> check) 根据 任务ID 分配任务给指定办理人、重置任务类型protected FlwTaskTaskServiceImpl.claim(Long taskId, AgentType agentType, TaskEventType eventType, FlowCreator flowCreator) 根据 任务ID 认领任务,删除其它任务参与者TaskServiceImpl.claimDepartment(Long taskId, FlowCreator flowCreator) TaskServiceImpl.claimRole(Long taskId, FlowCreator flowCreator) booleanTaskServiceImpl.completeActiveTasksByInstanceId(Long instanceId, FlowCreator flowCreator) 完成指定实例ID活动任务booleanTaskServiceImpl.createCcTask(NodeModel taskModel, FlwTask flwTask, List<NodeAssignee> ccUserList, FlowCreator flowCreator) 创建抄送任务RuntimeServiceImpl.createInstance(FlwProcess flwProcess, FlowCreator flowCreator, Map<String, Object> args, NodeModel nodeModel, boolean saveAsDraft, Supplier<FlwInstance> supplier) 创建活动实例TaskServiceImpl.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Function<FlwTask, Execution> executionFunction) 根据已有任务、参与者创建新的任务ProcessServiceImpl.deploy(Long processId, String jsonString, FlowCreator flowCreator, boolean repeat, Consumer<FlwProcess> processSave) 根据流程定义json字符串,部署流程定义booleanTaskServiceImpl.executeFinishTrigger(NodeModel nodeModel, Execution execution, FlowCreator flowCreator) TaskServiceImpl.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, Function<FlwTask, Execution> executionFunction, TaskType taskType) 执行节点跳转任务TaskServiceImpl.executeTask(Long taskId, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) 执行任务protected booleanRuntimeServiceImpl.forceComplete(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator, InstanceEventType instanceEventType, InstanceState instanceState, TaskEventType eventType) 强制完成流程实例protected voidRuntimeServiceImpl.forceCompleteAll(FlwInstance flwInstance, FlwTask currentFlwTask, FlowCreator flowCreator, InstanceEventType instanceEventType, InstanceState instanceState, TaskEventType eventType) 强制完成流程所有实例booleanTaskServiceImpl.forceCompleteAllTask(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator, InstanceState instanceState, TaskEventType eventType) 强制完成所有任务booleanTaskServiceImpl.forceCompleteTask(FlwTask flwTask, FlowCreator flowCreator, TaskState taskState, TaskEventType eventType) protected FlwTaskTaskServiceImpl.getAllowedFlwTask(Long taskId, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState) 获取执行任务并验证合法性protected FlwTaskActorTaskServiceImpl.getAllowedFlwTaskActor(Long taskId, FlowCreator flowCreator) 获取指定 任务ID 合法参与者对象protected voidRuntimeServiceImpl.instanceNotify(InstanceEventType eventType, Supplier<FlwHisInstance> supplier, NodeModel nodeModel, FlowCreator flowCreator) protected booleanTaskServiceImpl.moveToHisTask(FlwTask flwTask, TaskState taskState, FlowCreator flowCreator) 迁移任务至历史表protected booleanTaskServiceImpl.moveToHisTaskTrigger(FlwTask flwTask, FlowCreator flowCreator) 触发器任务归档TaskServiceImpl.reclaimTask(Long taskId, FlowCreator flowCreator, BiConsumer<FlwHisTask, Integer> assertConsumer) 拿回任务、根据历史任务ID撤回下一个节点的任务、恢复历史任务booleanRuntimeServiceImpl.reject(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) TaskServiceImpl.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) booleanTaskServiceImpl.removeTaskActor(Long taskId, List<String> actorIds, FlowCreator flowCreator) booleanTaskServiceImpl.resolveTask(Long taskId, FlowCreator flowCreator) 根据 任务ID 解决委派任务booleanTaskServiceImpl.resume(Long instanceId, FlowCreator flowCreator, BiFunction<FlwInstance, String, Boolean> execFunc) 唤醒撤回或拒绝终止历史任务booleanRuntimeServiceImpl.revoke(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) voidRuntimeServiceImpl.saveInstance(FlwInstance flwInstance, FlwProcess flwProcess, boolean saveAsDraft, FlowCreator flowCreator) 流程实例数据会保存至活动实例表、历史实例表booleanRuntimeServiceImpl.suspendInstanceById(Long instanceId, FlowCreator flowCreator) protected voidTaskServiceImpl.taskNotify(TaskEventType eventType, Supplier<FlwTask> supplier, List<FlwTaskActor> taskActors, NodeModel nodeModel, FlowCreator flowCreator) booleanRuntimeServiceImpl.terminate(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) 强制终止活动实例,并强制完成活动任务booleanRuntimeServiceImpl.timeout(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) booleanTaskServiceImpl.transferTask(FlowCreator flowCreator, FlowCreator assigneeFlowCreator) TaskServiceImpl.undoHisTask(Long hisTaskId, FlowCreator flowCreator, TaskType taskType, Consumer<FlwHisTask> hisTaskConsumer) 撤回历史任务protected booleanRuntimeServiceImpl.updateInstanceState(FlwHisInstance dbFhi, InstanceState instanceState, FlowCreator flowCreator) 更新流程实例状态protected booleanRuntimeServiceImpl.updateInstanceStateById(Long instanceId, InstanceState instanceState, FlowCreator flowCreator) 根据流程实例ID更新流程实例状态voidTaskServiceImpl.updateTaskById(FlwTask flwTask, FlowCreator flowCreator) 更新任务对象的 finishTime、createBy、expireTime、version、variablebooleanTaskServiceImpl.viewTask(Long taskId, FlowCreator flowCreator) 查看任务设置为已阅状态TaskServiceImpl.withdrawTask(Long taskId, FlowCreator flowCreator) 撤回指定的任务类型变量类型为FlowCreator的net.sohelp.boot.engine.workflow.impl中的方法参数修饰符和类型方法说明booleanTaskServiceImpl.assigneeTask(Long taskId, TaskType taskType, TaskEventType taskEventType, FlowCreator flowCreator, List<FlowCreator> assigneeFlowCreators, Map<String, Object> args, Function<FlwTask, Boolean> check) 根据 任务ID 分配任务给指定办理人、重置任务类型 -
net.sohelp.boot.engine.workflow.listener中FlowCreator的使用
修饰符和类型方法说明booleanInstanceListener.notify(InstanceEventType eventType, Supplier<FlwHisInstance> supplier, NodeModel nodeModel, FlowCreator flowCreator) 流程引擎监听通知booleanTaskListener.notify(TaskEventType eventType, Supplier<FlwTask> supplier, List<FlwTaskActor> taskActors, NodeModel nodeModel, FlowCreator flowCreator) 流程引擎监听通知 -
net.sohelp.boot.engine.workflow.model中FlowCreator的使用
-
net.sohelp.boot.engine.workflow.spring.event中FlowCreator的使用
修饰符和类型方法说明booleanEventInstanceListener.notify(InstanceEventType eventType, Supplier<FlwHisInstance> supplier, NodeModel nodeModel, FlowCreator flowCreator) booleanEventTaskListener.notify(TaskEventType eventType, Supplier<FlwTask> supplier, List<FlwTaskActor> taskActors, NodeModel nodeModel, FlowCreator flowCreator)