Examples of TransactionContext


Examples of org.teiid.dqp.service.TransactionContext

     
        RequestMessage msg = workItem.requestMsg;
        DQPWorkContext workContext = DQPWorkContext.getWorkContext();
        RequestID rID = new RequestID(workContext.getSessionId(), msg.getExecutionId());
      String txnID = null;
    TransactionContext tc = workItem.getTransactionContext();
    if (tc != null && tc.getTransactionType() != Scope.NONE) {
      txnID = tc.getTransactionId();
    }
      String appName = workContext.getAppName();
        // Log to request log
        CommandLogMessage message = null;
        if (status == Event.NEW) {
View Full Code Here

Examples of org.uengine.processmanager.TransactionContext

      RoleMapping theMapping = humanActivity.getRole().getMapping(instance);
     
      if(theMapping !=null){
        theMapping.beforeFirst();
        do{
          TransactionContext tc;
         
          if(DW_DSN!=null){
            tc = new SimpleTransactionContext(DW_DSN);
          }else{
            tc = instance.getProcessTransactionContext();
          }
         
          ResourceDimensionDAOType resourceDimensionDAOType = ResourceDimensionDAOType.getInstance(tc);
 
          if(resourceDimensionDAOType.existAnyResourceWhereRsrc_Id(theMapping.getEndpoint())) continue;
         
          if(theMapping.getGroupName()==null)
            theMapping.fill(instance);
 
          ResourceDimensionDAO resourceDimension = resourceDimensionDAOType.createDAOForInsert();{
            resourceDimension.setRsrc_Id(theMapping.getEndpoint());
            resourceDimension.setRsrc_Name(theMapping.getResourceName());
            resourceDimension.setGender(theMapping.isMale());
            resourceDimension.setDept_Name(theMapping.getGroupName());
            resourceDimension.setDept_Id(theMapping.getGroupId());
            if(theMapping.getBirthday()!=null)
              resourceDimension.setBirthDay(new Long(1900 + theMapping.getBirthday().getYear()));
          }
          resourceDimension.insert();
         
          if(tc instanceof SimpleTransactionContext)
            tc.releaseResources();
         
        }while(theMapping.next());
       
        theMapping.beforeFirst();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.