Package com.founder.fix.fixflow.core.impl.datavariable

Examples of com.founder.fix.fixflow.core.impl.datavariable.DataVariableMgmtInstance


    return str;
  }
 
 
  public static void dataVariableCalculate(String scriptText, ExecutionContext executionContext){
    DataVariableMgmtInstance dataVariableMgmtInstance = executionContext.getProcessInstance().getDataVariableMgmtInstance();

    List<String> dataVariableList = getDataVariableList(scriptText);

    for (String expressionId : dataVariableList) {

      if (dataVariableMgmtInstance.getDataVariableByExpressionId(expressionId) == null) {

        List<DataVariableBehavior> dataVariableBehaviors = dataVariableMgmtInstance.getProcessInstance().getProcessDefinition().getDataVariableMgmtDefinition()
            .getDataVariableBehaviorsByProcess();
        for (DataVariableBehavior dataVariableBehavior : dataVariableBehaviors) {


          if (dataVariableBehavior.getId().equals(expressionId)) {

            DataVariableEntity dataVariableEntity = dataVariableMgmtInstance.createDataVariableInstance(dataVariableBehavior);
            dataVariableEntity.executeExpression(executionContext);

          }else{
            if(dataVariableBehavior.getBizType()!=null&&!dataVariableBehavior.getBizType().equals("")&&dataVariableBehavior.getBizType().equals(DataVariableEntity.QUERY_DATA_KEY)){
              DataVariableEntity dataVariableEntity = dataVariableMgmtInstance.createDataVariableInstance(dataVariableBehavior);
              dataVariableEntity.executeExpression(executionContext);
            }
          }

        }
View Full Code Here


    this.taskMgmtInstance = ProcessObjectFactory.FACTORYINSTANCE.createTaskMgmtInstance();
   
    this.taskMgmtInstance.setProcessInstance(this);

    this.dataVariableMgmtInstance = new DataVariableMgmtInstance(this);

    this.contextInstance = new ContextInstanceImpl(this);
   

  }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.datavariable.DataVariableMgmtInstance

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.