Package com.founder.fix.bpmn2extensions.fixflow

Examples of com.founder.fix.bpmn2extensions.fixflow.DataVariableMapping


        DataSourceToSubProcessMapping dataSourceToSubProcessMapping = FixFlowFactory.eINSTANCE.createDataSourceToSubProcessMapping();
        while(dataVariableIterator.hasNext()) {
          JsonNode dataVariableItemNode = dataVariableIterator.next();
          String dataSourceId = dataVariableItemNode.get(PROPERTY_CALLACTIVITY_DATASOURCE_ID).asText();
          String subprocessId = dataVariableItemNode.get(PROPERTY_CALLACTIVITY_SUBPROCESS_ID).asText();
          DataVariableMapping dataVariableMapping = FixFlowFactory.eINSTANCE.createDataVariableMapping();
          dataVariableMapping.setDataSourceId(dataSourceId);
          dataVariableMapping.setSubProcesId(subprocessId);
          dataSourceToSubProcessMapping.getDataVariableMapping().add(dataVariableMapping);
        }
        BpmnModelUtil.addExtensionElement(callActivity, FixFlowPackage.Literals.DOCUMENT_ROOT__DATA_SOURCE_TO_SUB_PROCESS_MAPPING, dataSourceToSubProcessMapping);
      }
    }
   
    JsonNode subprocessToDataSource = getProperty(PROPERTY_CALLACTIVITY_SUBPROCESSTODATASOURCE, elementNode);
    if(subprocessToDataSource != null){
      JsonNode itemsNode = dataSourceToSubprocess.get(EDITOR_PROPERTIES_GENERAL_ITEMS);
      if(itemsNode !=null){
        Iterator<JsonNode> dataVariableIterator = itemsNode.getElements();
        SubProcessToDataSourceMapping subProcessToDataSourceMapping = FixFlowFactory.eINSTANCE.createSubProcessToDataSourceMapping();
        while(dataVariableIterator.hasNext()) {
          JsonNode dataVariableItemNode = dataVariableIterator.next();
          String dataSourceId = dataVariableItemNode.get(PROPERTY_CALLACTIVITY_DATASOURCE_ID).asText();
          String subprocessId = dataVariableItemNode.get(PROPERTY_CALLACTIVITY_SUBPROCESS_ID).asText();
          DataVariableMapping dataVariableMapping = FixFlowFactory.eINSTANCE.createDataVariableMapping();
          dataVariableMapping.setDataSourceId(dataSourceId);
          dataVariableMapping.setSubProcesId(subprocessId);
          subProcessToDataSourceMapping.getDataVariableMapping().add(dataVariableMapping);
        }
        BpmnModelUtil.addExtensionElement(callActivity, FixFlowPackage.Literals.DOCUMENT_ROOT__SUB_PROCESS_TO_DATA_SOURCE_MAPPING, subProcessToDataSourceMapping);
      }
    }
View Full Code Here

TOP

Related Classes of com.founder.fix.bpmn2extensions.fixflow.DataVariableMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.