Examples of RuntimeService


Examples of com.bleujin.framework.db.constant.RuntimeService

        servant.setChannel(this.echannel) ;
    }
   
    private boolean initialized = false ;
    public void initSelf() throws SQLException{
      this.initSelf(new RuntimeService()) ;
    }
View Full Code Here

Examples of com.founder.fix.fixflow.core.RuntimeService

   
   
    Map<String,Object> resultMap = new HashMap<String,Object>();
    String userId = StringUtil.getString(filter.get("userId"));
    ProcessEngine engine = getProcessEngine(userId);
    RuntimeService runtimeService = engine.getRuntimeService();
    IdentityService identityService = engine.getIdentityService();
    FlowUtilServiceImpl flowUtil = new FlowUtilServiceImpl();
    String processDefinitionKey = StringUtil.getString(filter.get("processDefinitionKey"));
    String processInstanceId    = StringUtil.getString(filter.get("processInstanceId"));
    String title        = StringUtil.getString(filter.get("title"));
//    String subject        = StringUtil.getString(filter.get("subject"));
    String bizKey        = StringUtil.getString(filter.get("bizKey"));
    String initor        = StringUtil.getString(filter.get("initor"));
    String status        = StringUtil.getString(filter.get("status"));
    String processType       = StringUtil.getString(filter.get("processType"));
    ProcessInstanceType processInstanceStatus = FlowUtilServiceImpl.getInstanceStaus(status);
    try{
     
      String pageI = StringUtil.getString(filter.get("pageIndex"));
      String rowI = StringUtil.getString(filter.get("pageSize"));
      int pageIndex=1;
      int rowNum   =15;
      if(StringUtil.isNotEmpty(pageI)){
        pageIndex = Integer.valueOf(pageI);
      }
      if(StringUtil.isNotEmpty(rowI)){
        rowNum = Integer.valueOf(rowI);
      }
      ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
      if(StringUtil.isNotEmpty(processDefinitionKey))
        processInstanceQuery.processDefinitionKey(processDefinitionKey);
      if(StringUtil.isNotEmpty(processInstanceId))
        processInstanceQuery.processInstanceId(processInstanceId);
      if(StringUtil.isNotEmpty(title))
View Full Code Here

Examples of com.founder.fix.fixflow.core.RuntimeService

    //设置数据库连接
    externalContent.setConnection(connection);
    //将线程副本对象放置在引擎内
    processEngine.setExternalContent(externalContent);
    //获取运行时操作对象
    RuntimeService runtimeService = processEngine.getRuntimeService();
    //启动流程实例
    ProcessInstance processInstance=runtimeService.noneStartProcessInstance(startProcessInstanceCommand);


    System.out.println("定时任务启动成功");
   
    return processInstance;
View Full Code Here

Examples of com.founder.fix.fixflow.core.RuntimeService

    Map<String, Object> transientVariableMap = new HashMap<String, Object>();

    startProcessInstanceCommand.setTransientVariables(transientVariableMap);
   
    RuntimeService runtimeService = processEngine.getRuntimeService();
   
    runtimeService.timeStartProcessInstance(startProcessInstanceCommand);

  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.RuntimeService

    String tokenId=jobExecutionContext.getJobDetail().getJobDataMap().getString("tokenId");
    String transientVariableId=jobExecutionContext.getJobDetail().getJobDataMap().getString("transientVariableId");
    String processInstanceId=jobExecutionContext.getJobDetail().getJobDataMap().getString("processInstanceId");
    String nodeId=jobExecutionContext.getJobDetail().getJobDataMap().getString("nodeId");
   
    RuntimeService runtimeService = processEngine.getRuntimeService();
   
    Token token=runtimeService.createTokenQuery().tokenId(tokenId).singleResult();
   
    Object transientVariable=runtimeService.getProcessInstanceVariable(processInstanceId, transientVariableId);
    Map<String, Object> transientVariableMap=null;
    if(transientVariable!=null){
     
      transientVariableMap=(HashMap<String, Object>)transientVariable;
     
    }
   
    //删除变量
   
    /*
    VariableQueryEntity variableQueryEntity = new VariableQueryEntity();

    if (processInstanceId != null && !processInstanceId.equals("")) {
      VariableFlowTypeEntity variableFlowTypeEntity = new VariableFlowTypeEntity(VariableFlowType.PROCESSINSTANCE, processInstanceId);
      variableQueryEntity.addVariableFlowType(variableFlowTypeEntity);
    }
   
    variableQueryEntity.addVariableName(transientVariableId);
   
    Context.getCommandContext().getVariableManager().deleteVariable(variableQueryEntity);
        */
   
    //
   
    if(nodeId.equals(token.getNodeId())){

      runtimeService.tokenTimeOut(tokenId, transientVariableMap);

    }
    else{

      runtimeService.tokenTimeOut(tokenId,nodeId, transientVariableMap);
     
    }
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.RuntimeService

   */
  public Map<String,Object> getProcessInstances(Map<String,Object> params) throws SQLException{
    Map<String,Object> resultMap = new HashMap<String,Object>();
    String userId = StringUtil.getString(params.get("userId"));
    ProcessEngine engine = getProcessEngine(userId);
    RuntimeService runtimeService = engine.getRuntimeService();
    IdentityService identityService = engine.getIdentityService();
    FlowUtilServiceImpl flowUtil = new FlowUtilServiceImpl();
    String processName = StringUtil.getString(params.get("processName"));
    String processInstanceId    = StringUtil.getString(params.get("processInstanceId"));
    String subject        = StringUtil.getString(params.get("subject"));
    String bizKey        = StringUtil.getString(params.get("bizKey"));
    String initor        = StringUtil.getString(params.get("initor"));
    String status        = StringUtil.getString(params.get("status"));
    ProcessInstanceType processInstanceStatus = FlowUtilServiceImpl.getInstanceStaus(status);
    try{
     
      String pageI = StringUtil.getString(params.get("pageIndex"));
      String rowI = StringUtil.getString(params.get("pageSize"));
      int pageIndex=1;
      int rowNum   =15;
      if(StringUtil.isNotEmpty(pageI)){
        pageIndex = Integer.valueOf(pageI);
      }
      if(StringUtil.isNotEmpty(rowI)){
        rowNum = Integer.valueOf(rowI);
      }
      ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
      if(StringUtil.isNotEmpty(processName)){
//        QueryExpandTo queryExpandTo = new QueryExpandTo();
//        //增加扩展查询的left join语句
//        List<Object> paraObjs = new ArrayList<Object>();
//        paraObjs.add("%"+processName+"%");
View Full Code Here

Examples of com.founder.fix.fixflow.core.RuntimeService

  public Map<String,Object> getProcessTokens(Map<String,Object> params) throws SQLException{
    Map<String,Object> resultMap = new HashMap<String,Object>();
    String userId = StringUtil.getString(params.get("userId"));
    ProcessEngine engine =  getProcessEngine(userId);
    try{
      RuntimeService runtimeService = engine.getRuntimeService();
      TokenQuery tokenQuery = runtimeService.createTokenQuery();
     
      String processInstanceId = StringUtil.getString(params.get("processInstanceId"));
      if(StringUtil.isNotEmpty(processInstanceId))
        tokenQuery.processInstanceId(processInstanceId);
     
View Full Code Here

Examples of com.founder.fix.fixflow.core.RuntimeService

    Map<String,Object> resultMap = new HashMap<String,Object>();
    String userId = StringUtil.getString(params.get("userId"));
    String processInstanceId = StringUtil.getString(params.get("processInstanceId"));
    ProcessEngine engine = getProcessEngine(userId);
    try{
      RuntimeService runtimeService = engine.getRuntimeService();
      Map<String, Object> dataList = runtimeService.getProcessInstanceVariables(processInstanceId);
     
     
      resultMap.put("dataList", dataList);
    }finally{
      closeProcessEngine();
View Full Code Here

Examples of com.founder.fix.fixflow.core.RuntimeService

    String deleteIndex  = StringUtil.getString(params.get("deleteIndex"));
    String processInstanceId  = StringUtil.getString(params.get("processInstanceId"));
    Map<String, Object> infos  = (Map<String, Object>)params.get("insertAndUpdate");
    ProcessEngine engine = getTransactionProcessEngine(userId);
    try{
      RuntimeService runtimeService = engine.getRuntimeService();
      if(StringUtil.isNotEmpty(deleteIndex)){
        String[] keys  = deleteIndex.split(",");
        for(String tmp:keys){
          runtimeService.deleteProcessInstanceVariable(processInstanceId, tmp);
        }
      }
      if(infos!=null){
        runtimeService.setProcessInstanceVariables(processInstanceId, infos);
      }
    }finally{
      closeProcessEngine();
    }
   
View Full Code Here

Examples of com.founder.fix.fixflow.core.RuntimeService

    String userId = StringUtil.getString(params.get("userId"));
    String processInstanceId = StringUtil.getString(params.get("operProcessInstanceId"));
    String[] pids = processInstanceId.split(",");
    ProcessEngine engine = getTransactionProcessEngine(userId);
    try{
      RuntimeService runtimeService = engine.getRuntimeService();
      for(String tmp:pids){
        runtimeService.suspendProcessInstance(tmp);
      }
    }finally{
      closeProcessEngine();
    }
   
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.