Examples of ClientExecution


Examples of org.jbpm.pvm.internal.client.ClientExecution

    }
    this.executionId = executionId;
  }

  public Void execute(Environment environment) throws Exception {
    ClientExecution execution = getExecution(environment, executionId);
    execution.setVariables(variables);
   
    return null;
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.client.ClientExecution

  public void complete(String outcome) {
    historyTaskComplete(outcome);
   
    if (isSignalling()) {
      ClientExecution execution = (ClientExecution) getExecution();
      execution.signal(outcome);
    }
   
    if (superTask != null) {
      superTask.subTaskComplete(this, outcome);
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.client.ClientExecution

    this.variables = variables;
  }

  protected ClientExecution getExecution(Environment environment, String executionId) {
    DbSession dbSession = environment.get(DbSession.class);
    ClientExecution execution = dbSession.findExecutionById(executionId);
    if (execution == null) {
      throw new JbpmException("execution " + executionId + " doesn't exist");
    }
    return execution;
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.client.ClientExecution

    this.signalName = signalName;
    this.parameters = parameters;
  }

  public ProcessInstance execute(Environment environment) throws Exception {
    ClientExecution execution = null;
   
    DbSession dbSession = environment.get(DbSession.class);
    execution = dbSession.findExecutionById(executionId);
    if (execution==null) {
      throw new JbpmException("execution "+executionId+" does not exist");
    }
   
    execution.signal(signalName, parameters);
   
    return execution.getProcessInstance();
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.client.ClientExecution

  public Map<String, Object> execute(Environment environment) throws Exception {
    Map<String, Object> variables = new HashMap<String, Object>();

    DbSession dbSession = environment.get(DbSession.class);
    ClientExecution execution = dbSession.findExecutionById(executionId);
    for (String variableName : variableNames) {
      Object value = execution.getVariable(variableName);
      variables.put(variableName, value);
    }

    return variables;
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.client.ClientExecution

    this.executionId = executionId;
  }

  public Set<String> execute(Environment environment) throws Exception {
    DbSession dbSession = environment.get(DbSession.class);
    ClientExecution execution = dbSession.findExecutionById(executionId);
    return execution.getVariableKeys();
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.client.ClientExecution

  public Map<String, Object> execute(Environment environment) throws Exception {
    Map<String, Object> variables = new HashMap<String, Object>();

    DbSession dbSession = environment.get(DbSession.class);
    ClientExecution execution = dbSession.findExecutionById(executionId);
    if (execution==null) {
      throw new JbpmException("execution "+executionId+" doesn't exist");
    }
    for (String variableName : variableNames) {
      Object value = execution.getVariable(variableName);
      variables.put(variableName, value);
    }

    return variables;
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.client.ClientExecution

    this.executionId = executionId;
  }

  public Set<String> execute(Environment environment) throws Exception {
    DbSession dbSession = environment.get(DbSession.class);
    ClientExecution execution = dbSession.findExecutionById(executionId);
    return execution.getVariableKeys();
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.client.ClientExecution

    }
    this.executionId = executionId;
  }

  public Void execute(Environment environment) throws Exception {
    ClientExecution execution = getExecution(environment, executionId);
    execution.setVariables(variables);
   
    return null;
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.client.ClientExecution

  public void complete(String outcome) {
    historyTaskComplete(outcome);
   
    if (isSignalling()) {
      ClientExecution execution = (ClientExecution) getExecution();
      execution.signal(outcome);
    }
   
    if (superTask != null) {
      superTask.subTaskComplete(this, outcome);
    }
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.