Package com.founder.fix.bpmn2extensions.fixflow

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


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetDataSourceToSubProcessMapping(DataSourceToSubProcessMapping newDataSourceToSubProcessMapping, NotificationChain msgs) {
    DataSourceToSubProcessMapping oldDataSourceToSubProcessMapping = dataSourceToSubProcessMapping;
    dataSourceToSubProcessMapping = newDataSourceToSubProcessMapping;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FixFlowPackage.DOCUMENT_ROOT__DATA_SOURCE_TO_SUB_PROCESS_MAPPING, oldDataSourceToSubProcessMapping, newDataSourceToSubProcessMapping);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here


    ProcessInstanceEntity subProcessInstance = new ProcessInstanceEntity(processDefinitionBehavior, bizKey,
        executionContext.getProcessInstance(), executionContext.getToken());

    subProcessInstance.setStartAuthor(Authentication.getAuthenticatedUserId());

    DataSourceToSubProcessMapping dataSourceToSubProcessMapping=getDataSourceToSubProcessMapping();
    if(dataSourceToSubProcessMapping!=null){
      for (DataVariableMapping dataVariableMapping :dataSourceToSubProcessMapping.getDataVariableMapping()) {

        String dataSourceId = "${" + dataVariableMapping.getDataSourceId() + "}";

        subProcessInstance.getContextInstance().addDataVariable(dataVariableMapping.getSubProcesId(),
            ExpressionMgmt.execute(dataSourceId, executionContext));
View Full Code Here

    }
    if(StringUtil.isNotEmpty(callElementBizKey)){
      propertiesNode.put(PROPERTY_CALLACTIVITY_BIZKEY, callElementBizKey);
    }
    propertiesNode.put(PROPERTY_CALLACTIVITY_ISASYNC, isAsync);
    DataSourceToSubProcessMapping dataSourceToSubProcessMapping = callActivity.getDataSourceToSubProcessMapping();
    if(dataSourceToSubProcessMapping != null){
      ObjectNode datavariableNode = objectMapper.createObjectNode();
      ArrayNode itemsNode = objectMapper.createArrayNode();
      List<DataVariableMapping> variableMappings = dataSourceToSubProcessMapping.getDataVariableMapping();
      for(DataVariableMapping dataVariable :variableMappings){
        ObjectNode datavariableItemNode = objectMapper.createObjectNode();
        datavariableItemNode.put(PROPERTY_CALLACTIVITY_DATASOURCE_ID,dataVariable.getDataSourceId());
        datavariableItemNode.put(PROPERTY_CALLACTIVITY_SUBPROCESS_ID,dataVariable.getSubProcesId());
        //datavariableItemNode.put(PROPERTY_CALLACTIVITY_DATA_TYPE,dataVariable.);
View Full Code Here

    JsonNode dataSourceToSubprocess = getProperty(PROPERTY_CALLACTIVITY_DATASOURCETOSUBPROCESS, elementNode);
    if(dataSourceToSubprocess != null){
      JsonNode itemsNode = dataSourceToSubprocess.get(EDITOR_PROPERTIES_GENERAL_ITEMS);
      if(itemsNode !=null){
        Iterator<JsonNode> dataVariableIterator = itemsNode.getElements();
        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);
      }
    }
   
View Full Code Here

TOP

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

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.