|
|
|
|
@ -56,7 +56,7 @@ public class FlowProcessEventHandler {
|
|
|
|
|
* @param instance 实例数据
|
|
|
|
|
* @param taskId 任务id
|
|
|
|
|
*/
|
|
|
|
|
public void processTaskHandler(String flowCode, Instance instance, Long taskId) {
|
|
|
|
|
public void processTaskHandler(String flowCode, Instance instance, Long taskId, Map<String, Object> params) {
|
|
|
|
|
String tenantId = TenantHelper.getTenantId();
|
|
|
|
|
log.info("【流程任务事件发布】租户ID: {}, 流程编码: {}, 业务ID: {}, 节点类型: {}, 节点编码: {}, 节点名称: {}, 任务ID: {}",
|
|
|
|
|
tenantId, flowCode, instance.getBusinessId(), instance.getNodeType(), instance.getNodeCode(), instance.getNodeName(), taskId);
|
|
|
|
|
@ -69,6 +69,7 @@ public class FlowProcessEventHandler {
|
|
|
|
|
processTaskEvent.setNodeName(instance.getNodeName());
|
|
|
|
|
processTaskEvent.setTaskId(taskId);
|
|
|
|
|
processTaskEvent.setStatus(instance.getFlowStatus());
|
|
|
|
|
processTaskEvent.setParams(params);
|
|
|
|
|
SpringUtils.context().publishEvent(processTaskEvent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|