@@ -0,0 +1,1365 @@
+package org.activiti.validation.validator.impl;%0A%0Aimport java.util.List;%0A%0Aimport org.activiti.bpmn.model.BpmnModel;%0Aimport org.activiti.bpmn.model.FlowElement;%0Aimport org.activiti.bpmn.model.FlowElementsContainer;%0Aimport org.activiti.bpmn.model.FlowNode;%0Aimport org.activiti.bpmn.model.Process;%0Aimport org.activiti.validation.ValidationError;%0Aimport org.activiti.validation.validator.ProcessLevelValidator;%0A%0Apublic class AsyncPropertyValidator extends ProcessLevelValidator %7B%0A%0A%09private boolean asyncExecutorActivate;%0A%0A%09public AsyncPropertyValidator(boolean asyncExecutorActivate) %7B%0A%09%09this.asyncExecutorActivate = asyncExecutorActivate;%0A%09%7D%0A%0A%09@Override%0A%09protected void executeValidation(BpmnModel bpmnModel, Process process, List%3CValidationError%3E errors) %7B%0A%09%09if (!asyncExecutorActivate) %7B%0A%09%09%09validateFlowElementsInContainer(process, errors);%0A%09%09%7D%0A%09%7D%0A%0A%09protected void validateFlowElementsInContainer(FlowElementsContainer container, List%3CValidationError%3E errors) %7B%0A%09%09for (FlowElement flowElement : container.getFlowElements()) %7B%0A%09%09%09if (flowElement instanceof FlowElementsContainer) %7B%0A%09%09%09%09FlowElementsContainer subProcess = (FlowElementsContainer) flowElement;%0A%09%09%09%09validateFlowElementsInContainer(subProcess, errors);%0A%09%09%09%7D%0A%0A%09%09%09if ((flowElement instanceof FlowNode) && ((FlowNode) flowElement).isAsynchronous()) %7B%0A%09%09%09%09addWarning(errors, %22%22, null, null, %22%22);%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add validator