Examples of QueryVariablesCommand


Examples of com.founder.fix.fixflow.core.impl.command.QueryVariablesCommand

   * @param cascade
   */
  public void deleteTaskById(String taskInstanceId, boolean cascade) {
    if (cascade) {
      getCommandContext().getIdentityLinkManager().deleteIdentityLinksByTaskId(taskInstanceId);
      QueryVariablesCommand queryVariablesCommand=new QueryVariablesCommand();
      queryVariablesCommand.setTaskInstanceId(taskInstanceId);
      getCommandContext().getVariableManager().deleteVariable(queryVariablesCommand);
     
    }
    getMappingSqlSession().delete("deleteTaskById", taskInstanceId);
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.command.QueryVariablesCommand

    String processInstanceId=dataVariableEntity.getProcessInstanceId();
 
    List<String> keyList=new ArrayList<String>();   
    keyList.add(variableKey);
   
    QueryVariablesCommand queryVariablesCommand=new QueryVariablesCommand();
    queryVariablesCommand.setVariableNames(keyList);
    queryVariablesCommand.setNodeId(nodeId);
    queryVariablesCommand.setTaskInstanceId(taskInstanceId);
    queryVariablesCommand.setTokenId(tokenId);
    queryVariablesCommand.setProcessInstanceId(processInstanceId);
   
    // 执行查询流程是Sql语句,判断流程实例是否存在于数据库中.
    //List<DataVariableEntity> dataVariableEntities=selectVariableByQuery(queryVariablesCommand);
   
    if(dataVariableEntity.isAdd()){
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.command.QueryVariablesCommand

  public void deleteVariable(QueryVariablesCommand queryVariablesCommand){
    getMappingSqlSession().delete("deleteVariable", queryVariablesCommand);
  }
 
  public void deleteVariableByProcessInstanceId(String processInstanceId){
    QueryVariablesCommand queryVariablesCommand=new QueryVariablesCommand();
    queryVariablesCommand.setProcessInstanceId(processInstanceId);
    deleteVariable(queryVariablesCommand);
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.command.QueryVariablesCommand

    saveVariablesCommand.setVariables(variables);
    commandExecutor.execute(new SaveVariablesCmd(saveVariablesCommand));
  }
 
  public void deleteProcessInstanceVariable(String processInstanceId, String variableName) {
    QueryVariablesCommand queryVariablesCommand = new QueryVariablesCommand();
    queryVariablesCommand.setProcessInstanceId(processInstanceId);
    List<String> variableNames = new ArrayList<String>();
    variableNames.add(variableName);
    queryVariablesCommand.setVariableNames(variableNames);
    commandExecutor.execute(new DeleteProcessInstanceVaribalesCmd(queryVariablesCommand));
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.command.QueryVariablesCommand

    queryVariablesCommand.setVariableNames(variableNames);
    commandExecutor.execute(new DeleteProcessInstanceVaribalesCmd(queryVariablesCommand));
  }
 
  public void deleteProcessInstanceVariables(String processInstanceId, List<String> variableNames) {
    QueryVariablesCommand queryVariablesCommand = new QueryVariablesCommand();
    queryVariablesCommand.setProcessInstanceId(processInstanceId);
    queryVariablesCommand.setVariableNames(variableNames);
    commandExecutor.execute(new DeleteProcessInstanceVaribalesCmd(queryVariablesCommand));
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.command.QueryVariablesCommand

    queryVariablesCommand.setVariableNames(variableNames);
    commandExecutor.execute(new DeleteProcessInstanceVaribalesCmd(queryVariablesCommand));
  }
 
  public void deleteProcessInstanceVariables(String processInstanceId) {
    QueryVariablesCommand queryVariablesCommand = new QueryVariablesCommand();
    queryVariablesCommand.setProcessInstanceId(processInstanceId);
    commandExecutor.execute(new DeleteProcessInstanceVaribalesCmd(queryVariablesCommand));
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.command.QueryVariablesCommand

    queryVariablesCommand.setProcessInstanceId(processInstanceId);
    commandExecutor.execute(new DeleteProcessInstanceVaribalesCmd(queryVariablesCommand));
  }

  public Object getProcessInstanceVariable(String processInstanceId, String variableName) {
    QueryVariablesCommand queryVariablesCommand = new QueryVariablesCommand();
    queryVariablesCommand.setProcessInstanceId(processInstanceId);
    List<String> variableNames = new ArrayList<String>();
    variableNames.add(variableName);
    queryVariablesCommand.setVariableNames(variableNames);
    Map<String, Object> map = commandExecutor.execute(new QueryVariablesCmd<Map<String, Object>>(queryVariablesCommand));
    return map.get(variableName);
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.command.QueryVariablesCommand

    Map<String, Object> map = commandExecutor.execute(new QueryVariablesCmd<Map<String, Object>>(queryVariablesCommand));
    return map.get(variableName);
  }

  public Map<String, Object> getProcessInstanceVariables(String processInstanceId) {
    QueryVariablesCommand queryVariablesCommand = new QueryVariablesCommand();
    queryVariablesCommand.setProcessInstanceId(processInstanceId);
    Map<String, Object> map = commandExecutor.execute(new QueryVariablesCmd<Map<String, Object>>(queryVariablesCommand));
    return map;
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.command.QueryVariablesCommand

    Map<String, Object> map = commandExecutor.execute(new QueryVariablesCmd<Map<String, Object>>(queryVariablesCommand));
    return map;
  }

  public Map<String, Object> getProcessInstanceVariables(String processInstanceId, List<String> variableNames) {
    QueryVariablesCommand queryVariablesCommand = new QueryVariablesCommand();
    queryVariablesCommand.setProcessInstanceId(processInstanceId);
    queryVariablesCommand.setVariableNames(variableNames);
    Map<String, Object> map = commandExecutor.execute(new QueryVariablesCmd<Map<String, Object>>(queryVariablesCommand));
    return map;
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.command.QueryVariablesCommand

    saveVariablesCommand.setVariables(variables);
    commandExecutor.execute(new SaveVariablesCmd(saveVariablesCommand));
  }

  public Object getTokenVariable(String tokenId, String variableName) {
    QueryVariablesCommand queryVariablesCommand = new QueryVariablesCommand();
    queryVariablesCommand.setTokenId(tokenId);
    List<String> variableNames = new ArrayList<String>();
    variableNames.add(variableName);
    queryVariablesCommand.setVariableNames(variableNames);
    Map<String, Object> map = commandExecutor.execute(new QueryVariablesCmd<Map<String, Object>>(queryVariablesCommand));
    return map.get(variableName);
  }
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.