if (sp.getArtifacts() != null) { List<Association> incompleteAssociations = new ArrayList<Association>(); for (Artifact artifact : sp.getArtifacts()) { sp.getArtifacts().remove(incompleteAssociation);
public BpmnNode convertSubProcess(SubProcess subProcess) { BpmnNode subProcessRoot; if (subProcess instanceof org.eclipse.bpmn2.AdHocSubProcess) { subProcessRoot = convertAdHocSubProcess((org.eclipse.bpmn2.AdHocSubProcess) subProcess); } else if (subProcess.getLoopCharacteristics() != null) { subProcessRoot = convertMultInstanceSubprocessNode(subProcess); } else if (subProcess.isTriggeredByEvent()) { subProcessRoot = convertEventSubprocessNode(subProcess); } else { subProcessRoot = convertEmbeddedSubprocessNode(subProcess); } Map<String, BpmnNode> nodes = delegate.convertChildNodes(subProcessRoot, subProcess.getFlowElements(), subProcess.getLaneSets()); delegate.convertEdges(subProcessRoot, Stream.concat(subProcess.getFlowElements().stream(), subProcess.getArtifacts().stream()).collect(Collectors.toList()), nodes); return subProcessRoot; }
((Process)process).getArtifacts().add((Artifact)p.getElement()); } else if (process instanceof SubProcess) { ((SubProcess)process).getArtifacts().add((Artifact)p.getElement());
@Before public void setUp() { when(propertyWriter.getRootElements()).thenReturn(propertyWriterRootElements); when(propertyWriter.getSimulationParameters()).thenReturn(propertyWriterElementParameters); when(propertyWriter.getItemDefinitions()).thenReturn(propertyWriterItemDefinitions); when(boundaryEventPropertyWriter.getRootElements()).thenReturn(propertyWriterRootElements); when(boundaryEventPropertyWriter.getSimulationParameters()).thenReturn(propertyWriterElementParameters); when(boundaryEventPropertyWriter.getItemDefinitions()).thenReturn(propertyWriterItemDefinitions); flowElement = new FlowElementImpl() {}; flowElement.setId(ELEMENT_ID); artifact = new ArtifactImpl() {}; artifact.setId(ELEMENT_ID); when(process.getFlowElements()).thenReturn(flowElements); when(process.getArtifacts()).thenReturn(artifacts); when(subProcess.getFlowElements()).thenReturn(flowElements); when(subProcess.getArtifacts()).thenReturn(artifacts); }
((SubProcess) baseElt).getFlowElements().add((FlowElement) child); } else if (child instanceof Artifact) { ((SubProcess) baseElt).getArtifacts().add((Artifact) child); } else { _logger.error("Subprocess - don't know what to do of " + child);
for (Artifact artifact : subProcess.getArtifacts()) { if (coordianteManipulation) { marshallArtifact(artifact,