protected void handleDataAssociations(Process process, Activity activity, List<ValidationError> errors) { if (activity.getDataInputAssociations() != null) { for (DataAssociation dataAssociation : activity.getDataInputAssociations()) { if (StringUtils.isEmpty(dataAssociation.getTargetRef())) { addError(errors, Problems.DATA_ASSOCIATION_MISSING_TARGETREF, process, activity, "Targetref is required on a data association"); } } } if (activity.getDataOutputAssociations() != null) { for (DataAssociation dataAssociation : activity.getDataOutputAssociations()) { if (StringUtils.isEmpty(dataAssociation.getTargetRef())) { addError(errors, Problems.DATA_ASSOCIATION_MISSING_TARGETREF, process, activity, "Targetref is required on a data association"); } } } }
protected void processDataStoreReferences(FlowElementsContainer container, String dataStoreReferenceId, ArrayNode outgoingArrayNode) { for (FlowElement flowElement : container.getFlowElements()) { if (flowElement instanceof Activity) { Activity activity = (Activity) flowElement; if (CollectionUtils.isNotEmpty(activity.getDataInputAssociations())) { for (DataAssociation dataAssociation : activity.getDataInputAssociations()) { if (dataStoreReferenceId.equals(dataAssociation.getSourceRef())) { outgoingArrayNode.add(BpmnJsonConverterUtil.createResourceNode(dataAssociation.getId())); } } } } else if (flowElement instanceof SubProcess) { processDataStoreReferences((SubProcess) flowElement, dataStoreReferenceId, outgoingArrayNode); } } }
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception { if (!(parentElement instanceof Activity)) { return; } DataAssociation dataAssociation = new DataAssociation(); BpmnXMLUtil.addXMLLocation(dataAssociation, xtr); DataAssociationParser.parseDataAssociation(dataAssociation, getElementName(), xtr); ((Activity) parentElement).getDataInputAssociations().add(dataAssociation); } }
if (CollectionUtils.isNotEmpty(activity.getDataInputAssociations())) { for (DataAssociation dataAssociation : activity.getDataInputAssociations()) { if (model.getFlowElement(dataAssociation.getSourceRef()) != null) { createDataAssociation(dataAssociation,
protected void processDataStoreReferences(FlowElementsContainer container, String dataStoreReferenceId, ArrayNode outgoingArrayNode) { for (FlowElement flowElement : container.getFlowElements()) { if (flowElement instanceof Activity) { Activity activity = (Activity) flowElement; if (CollectionUtils.isNotEmpty(activity.getDataInputAssociations())) { for (DataAssociation dataAssociation : activity.getDataInputAssociations()) { if (dataStoreReferenceId.equals(dataAssociation.getSourceRef())) { outgoingArrayNode.add(BpmnJsonConverterUtil.createResourceNode(dataAssociation.getId())); } } } } else if (flowElement instanceof SubProcess) { processDataStoreReferences((SubProcess) flowElement, dataStoreReferenceId, outgoingArrayNode); } } }
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception { if (parentElement instanceof Activity == false) return; DataAssociation dataAssociation = new DataAssociation(); BpmnXMLUtil.addXMLLocation(dataAssociation, xtr); DataAssociationParser.parseDataAssociation(dataAssociation, getElementName(), xtr); ((Activity) parentElement).getDataInputAssociations().add(dataAssociation); } }
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception { if (parentElement instanceof ServiceTask == false && parentElement instanceof SendTask == false) return; DataAssociation dataAssociation = new DataAssociation(); BpmnXMLUtil.addXMLLocation(dataAssociation, xtr); DataAssociationParser.parseDataAssociation(dataAssociation, getElementName(), xtr); ((Activity) parentElement).getDataInputAssociations().add(dataAssociation); } }
protected void handleDataAssociations(Process process, Activity activity, List<ValidationError> errors) { if (activity.getDataInputAssociations() != null) { for (DataAssociation dataAssociation : activity.getDataInputAssociations()) { if (StringUtils.isEmpty(dataAssociation.getTargetRef())) { addError(errors, Problems.DATA_ASSOCIATION_MISSING_TARGETREF, process, activity, "Targetref is required on a data association"); } } } if (activity.getDataOutputAssociations() != null) { for (DataAssociation dataAssociation : activity.getDataOutputAssociations()) { if (StringUtils.isEmpty(dataAssociation.getTargetRef())) { addError(errors, Problems.DATA_ASSOCIATION_MISSING_TARGETREF, process, activity, "Targetref is required on a data association"); } } } }
if (CollectionUtils.isNotEmpty(activity.getDataInputAssociations())) { for (DataAssociation dataAssociation : activity.getDataInputAssociations()) { if (model.getFlowElement(dataAssociation.getSourceRef()) != null) { createDataAssociation(dataAssociation, true, activity);