// If at least one process definition is executable, show a warning for
// each of the none-executables
// If at least one process definition is executable, show a warning for each of the none-executables
if(isAtLeastOneExecutable){
for(Processprocess:bpmnModel.getProcesses()){
if(!process.isExecutable()){
addWarning(errors,Problems.PROCESS_DEFINITION_NOT_EXECUTABLE,process,process,"Process definition is not executable. Please verify that this is intentional.");
"The documentation of the process definition must not contain more than "+Constraints.PROCESS_DEFINITION_DOCUMENTATION_MAX_LENGTH+" characters");
}
}
if(nrOfExecutableDefinitions==0){
addError(errors,Problems.ALL_PROCESS_DEFINITIONS_NOT_EXECUTABLE,"All process definition are set to be non-executable (property 'isExecutable' on process). This is not allowed.");