Package org.uengine.contexts

Examples of org.uengine.contexts.MappingContext


   
    Connection con = null;

    IDAO dao = ConnectiveDAO.createDAOImpl(instance.getProcessTransactionContext(), null, IDAO.class);

    MappingContext mappingContext = getMappingContext();

    //Using DAO
/*    for(int i=0; i<mappingContext.getMappingElements().length; i++){
      ParameterContext paramContext = mappingContext.getMappingElements()[i];
      String tableAndFieldName = paramContext.getArgument().getText();
View Full Code Here


   
    if (Activity.STATUS_READY.equals(status) ||
        Activity.STATUS_RUNNING.equals(status) ||
        Activity.STATUS_TIMEOUT.equals(status)) {
     
      MappingContext mappingContext = getMappingContext();
      ParameterContext[] params = mappingContext.getMappingElements();//getVariableBindings();
     
      if(params != null && instance != null){
        //String script = "";
        String objName = null;
        Serializable objValue = null;
View Full Code Here

    public void setMappingContext(MappingContext mappingContext) {
      this.mappingContext = mappingContext;
    }
   
  protected void executeActivity(ProcessInstance instance) throws Exception {
    MappingContext mc= getMappingContext();
    if(mc !=null){
      ParameterContext[] params = mc.getMappingElements();
      for (int i = 0; i < params.length; i++) {
        ParameterContext param = params[i];
       
        String srcVariableName = null;
        String targetFieldName = param.getArgument().getText();
View Full Code Here

    if(valueMap==null && officeDocInst.getFilePath()!=null){
      officeDocInst.loadValueMap();
      mappedResult = officeDocInst.getValueMap();
    }
   
    MappingContext mappingContext = getMappingContext();
   
    ParameterContext[] params = mappingContext.getMappingElements();//getVariableBindings();
    if(params!=null && instance!=null){
      //String script = "";
      String objName = null;
      Serializable objValue = null;
      for (int i = 0; i < params.length; i++) {
View Full Code Here

     }
    
     ParameterContext[] result = new ParameterContext[mappingContexts.size()];
     mappingContexts.toArray(result);
    
     MappingContext mc = new MappingContext();
     mc.setMappingElements(result);
    
     return mc;
  }
View Full Code Here

  }

  public void setValue(Object arg0) {
    if(arg0==null) return;
   
     MappingContext mc = (MappingContext)arg0;
     ParameterContext[] mappingElements = mc.getMappingElements();
   
     final HashMap existingTransformers = new HashMap();
    
     for(int i=0; i<mappingElements.length; i++){
       MappingElement paramContext = (MappingElement) mappingElements[i];
View Full Code Here

TOP

Related Classes of org.uengine.contexts.MappingContext

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.