public ProcessBuilder addEventSubProcess(final String processName, final String version) { if ("".equals(processName.trim())) { problems.add(new Problem("Event sub-process name is an empty string.", Problem.SEVERITY_ERROR)); } final Object obj = peek(ProcessDefinitionImpl.class); if (isProcess(obj)) { final ProcessDefinitionImpl process = (ProcessDefinitionImpl) obj; final EventProcessDefinitionImpl event = new EventProcessDefinitionImpl(processName, version); process.addEventSubProcess(event); push(event); } else { problems.add(new Problem("Unable to add an event sub process " + processName + " on an object of type: " + getClass(obj), Problem.SEVERITY_ERROR)); } return this; }
public ProcessBuilder addEventSubProcess(final String processName, final String version) { if ("".equals(processName.trim())) { problems.add(new Problem("Event sub-process name is an empty string.", Problem.SEVERITY_ERROR)); } final Object obj = peek(ProcessDefinitionImpl.class); if (isProcess(obj)) { final ProcessDefinitionImpl process = (ProcessDefinitionImpl) obj; final EventProcessDefinitionImpl event = new EventProcessDefinitionImpl(processName, version); process.addEventSubProcess(event); push(event); } else { problems.add(new Problem("Unable to add an event sub process " + processName + " on an object of type: " + getClass(obj), Problem.SEVERITY_ERROR)); } return this; }
this.eventSubProcesses = new ArrayList<EventProcessDefinition>(); for (final EventProcessDefinition d : eventSubProcesses) { this.eventSubProcesses.add(new EventProcessDefinitionImpl(d));
this.eventSubProcesses = new ArrayList<EventProcessDefinition>(); for (final EventProcessDefinition d : eventSubProcesses) { this.eventSubProcesses.add(new EventProcessDefinitionImpl(d));