@Override protected void executeValidation(BpmnModel bpmnModel, Process process, List<ValidationError> errors) { validateListeners(process, process, process.getExecutionListeners(), errors); for (FlowElement flowElement : process.getFlowElements()) { validateListeners(process, flowElement, flowElement.getExecutionListeners(), errors); } }
((Process) element).getExecutionListeners().add(listener); } else if (element instanceof SequenceFlow) { ((SequenceFlow) element).getExecutionListeners().add(listener);
if (otherElement.getExecutionListeners() != null && !otherElement.getExecutionListeners().isEmpty()) { for (FlowableListener listener : otherElement.getExecutionListeners()) { executionListeners.add(listener.clone());
if (otherElement.getExecutionListeners() != null && !otherElement.getExecutionListeners().isEmpty()) { for (FlowableListener listener : otherElement.getExecutionListeners()) { executionListeners.add(listener.clone());
if (CollectionUtil.isNotEmpty(process.getExecutionListeners())) { executeExecutionListeners(process, processInstanceExecution, ExecutionListener.EVENTNAME_END);
BpmnJsonConverterUtil.convertListenersToJson(mainProcess.getExecutionListeners(), true, propertiesNode); BpmnJsonConverterUtil.convertEventListenersToJson(mainProcess.getEventListeners(), propertiesNode); BpmnJsonConverterUtil.convertSignalDefinitionsToJson(model, propertiesNode);
currentProcessDefinition.setDeploymentId(bpmnParse.getDeployment().getId()); createEventListeners(bpmnParse, process.getEventListeners()); createExecutionListenersOnScope(bpmnParse, process.getExecutionListeners(), currentProcessDefinition);