@Override public boolean equals(Object o) { if (o instanceof BaseCaseManagementReusableSubprocess) { BaseCaseManagementReusableSubprocess other = (BaseCaseManagementReusableSubprocess) o; return super.equals(other) && dataIOSet.equals(other.dataIOSet); } return false; } }
@Override public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), dataIOSet.hashCode()); }
@Override protected void initLabels() { super.initLabels(); labels.add("cm_activity"); labels.remove("cm_stage"); }
@SuppressWarnings("unchecked") public BpmnNode convert(CallActivity activity) { ActivityPropertyReader p = propertyReaderFactory.of(activity); Node<View<R>, Edge> node = createNode(activity, p); R definition = node.getContent().getDefinition(); definition.setGeneral(new BPMNGeneralSet( new Name(p.getName()), new Documentation(p.getDocumentation()) )); definition.setExecutionSet(createReusableSubprocessTaskExecutionSet( new CalledElement(activity.getCalledElement()), new Independent(p.isIndependent()), new WaitForCompletion(p.isWaitForCompletion()), new IsAsync(p.isAsync()), new OnEntryAction(p.getOnEntryAction()), new OnExitAction(p.getOnExitAction()), p )); definition.setDataIOSet(new DataIOSet(p.getAssignmentsInfo())); node.getContent().setBounds(p.getBounds()); definition.setSimulationSet(p.getSimulationSet()); definition.setDimensionsSet(p.getRectangleDimensionsSet()); definition.setFontSet(p.getFontSet()); definition.setBackgroundSet(p.getBackgroundSet()); return BpmnNode.of(node); }
public PropertyWriter toFlowElement(Node<View<T>, ?> n) { CallActivity activity = bpmn2.createCallActivity(); activity.setId(n.getUUID()); CallActivityPropertyWriter p = propertyWriterFactory.of(activity); T definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); BaseReusableSubprocessTaskExecutionSet executionSet = definition.getExecutionSet(); p.setOnEntryAction(executionSet.getOnEntryAction()); p.setOnExitAction(executionSet.getOnExitAction()); p.setCalledElement(executionSet.getCalledElement().getValue()); p.setAsync(executionSet.getIsAsync().getValue()); p.setIndependent(executionSet.getIndependent().getValue()); p.setWaitForCompletion(executionSet.getWaitForCompletion().getValue()); p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo()); p.setSimulationSet(definition.getSimulationSet()); p.setBounds(n.getContent().getBounds()); return p; } }
assignmentsInfo = ((StartSignalEvent) definition).getDataIOSet().getAssignmentsinfo(); } else if (definition instanceof BaseReusableSubprocess) { assignmentsInfo = ((BaseReusableSubprocess) definition).getDataIOSet().getAssignmentsinfo(); } else if (definition instanceof MultipleInstanceSubprocess) { MultipleInstanceSubprocess miSubprocess = (MultipleInstanceSubprocess) definition;
@Override public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), executionSet.hashCode(), dataIOSet.hashCode()); }
@Override public boolean equals(Object o) { if (o instanceof ReusableSubprocess) { ReusableSubprocess other = (ReusableSubprocess) o; return super.equals(other) && executionSet.equals(other.executionSet) && dataIOSet.equals(other.dataIOSet); } return false; } }