org.ow2.bonita.pvm.internal.svc
Class CommandExecutionService

java.lang.Object
  extended by org.ow2.bonita.pvm.internal.svc.CommandExecutionService
All Implemented Interfaces:
ExecutionService

public class CommandExecutionService
extends java.lang.Object
implements ExecutionService

Author:
Tom Baeyens

Field Summary
protected  CommandService commandService
           
 
Constructor Summary
CommandExecutionService()
           
 
Method Summary
 Execution findExecution(java.lang.String executionId)
          the execution that is uniquely defined by the process definition and the business key.
 Execution findExecution(java.lang.String processDefinitionName, java.lang.String key)
          the execution that is uniquely defined by the process definition and the business key.
 java.lang.Object getVariable(java.lang.String executionId, java.lang.String variableName)
          retrieves a variable
 java.util.Map<java.lang.String,java.lang.Object> getVariables(java.lang.String executionId, java.util.List<java.lang.String> variableNames)
          retrieves a map of variables
 Execution setVariable(java.lang.String executionId, java.lang.String name, java.lang.Object value)
          creates or overwrites a variable value on the referenced execution
 Execution setVariables(java.lang.String executionId, java.util.Map<java.lang.String,java.lang.Object> variables)
          creates or overwrites the variable values on the referenced execution
 Execution signalExecution(long executionDbid)
           
 Execution signalExecution(long executionDbid, java.util.Map<java.lang.String,java.lang.Object> parameters)
           
 Execution signalExecution(long executionDbid, java.lang.String signalName)
           
 Execution signalExecution(long executionDbid, java.lang.String signalName, java.util.Map<java.lang.String,java.lang.Object> parameters)
           
 Execution signalExecution(java.lang.String executionId)
          provides an external trigger to an execution.
 Execution signalExecution(java.lang.String executionId, java.util.Map<java.lang.String,java.lang.Object> parameters)
          provides a external trigger to an execution with parameters.
 Execution signalExecution(java.lang.String executionId, java.lang.String signalName)
          provides a named external trigger to an execution.
 Execution signalExecution(java.lang.String executionId, java.lang.String signalName, java.util.Map<java.lang.String,java.lang.Object> parameters)
          provides a named external trigger to an execution with parameters.
 Execution signalExecutionByKey(java.lang.String processDefinitionName, java.lang.String executionKey)
          provides a named external trigger to an execution.
 Execution signalExecutionByKey(java.lang.String processDefinitionName, java.lang.String executionKey, java.util.Map<java.lang.String,java.lang.Object> parameters)
          provides a named external trigger to an execution with parameters.
 Execution signalExecutionByKey(java.lang.String processDefinitionName, java.lang.String executionKey, java.lang.String signalName)
          provides a named external trigger to an execution.
 Execution signalExecutionByKey(java.lang.String processDefinitionName, java.lang.String executionKey, java.lang.String signalName, java.util.Map<java.lang.String,java.lang.Object> parameters)
          provides a named external trigger to an execution with parameters.
 Execution startExecution(java.lang.String processDefinitionId)
          starts a new execution for the ProcessDefinition with the given processDefinitionDbid.
 Execution startExecution(java.lang.String processDefinitionId, java.util.Map<java.lang.String,java.lang.Object> variables)
          starts a new execution for the ProcessDefinition with the given processDefinitionDbid.
 Execution startExecution(java.lang.String processDefinitionId, java.util.Map<java.lang.String,java.lang.Object> variables, java.lang.String executionKey)
          starts a new execution for the ProcessDefinition with the given processDefinitionDbid.
 Execution startExecution(java.lang.String processDefinitionId, java.lang.String executionKey)
          starts a new execution for the ProcessDefinition with the given processDefinitionDbid.
 Execution startExecutionInLatest(java.lang.String processDefinitionName)
          starts a new execution in the latest version of the given process definition.
 Execution startExecutionInLatest(java.lang.String processDefinitionName, java.util.Map<java.lang.String,java.lang.Object> variables)
          starts a new execution in the latest version of the given processDefinitionName.
 Execution startExecutionInLatest(java.lang.String processDefinitionName, java.util.Map<java.lang.String,java.lang.Object> variables, java.lang.String executionKey)
          starts a new execution in the latest version of the given processDefinitionName.
 Execution startExecutionInLatest(java.lang.String processDefinitionName, java.lang.String executionKey)
          starts a new execution in the latest version of the given processDefinitionName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandService

protected CommandService commandService
Constructor Detail

CommandExecutionService

public CommandExecutionService()
Method Detail

startExecution

public Execution startExecution(java.lang.String processDefinitionId)
Description copied from interface: ExecutionService
starts a new execution for the ProcessDefinition with the given processDefinitionDbid.

Specified by:
startExecution in interface ExecutionService
Parameters:
processDefinitionId - the unique id of the process definition.

startExecution

public Execution startExecution(java.lang.String processDefinitionId,
                                java.lang.String executionKey)
Description copied from interface: ExecutionService
starts a new execution for the ProcessDefinition with the given processDefinitionDbid.

Specified by:
startExecution in interface ExecutionService
Parameters:
processDefinitionId - the unique id of the process definition.
executionKey - is a user provided reference for the new execution that must be unique over all process versions with the same name.

startExecution

public Execution startExecution(java.lang.String processDefinitionId,
                                java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface: ExecutionService
starts a new execution for the ProcessDefinition with the given processDefinitionDbid.

Specified by:
startExecution in interface ExecutionService
Parameters:
processDefinitionId - the unique id of the process definition.
variables - are the initial values of the process variables that will be set before the execution starts.

startExecution

public Execution startExecution(java.lang.String processDefinitionId,
                                java.util.Map<java.lang.String,java.lang.Object> variables,
                                java.lang.String executionKey)
Description copied from interface: ExecutionService
starts a new execution for the ProcessDefinition with the given processDefinitionDbid.

Specified by:
startExecution in interface ExecutionService
Parameters:
processDefinitionId - the unique id of the process definition.
variables - are the initial values of the process variables that will be set before the execution starts.
executionKey - is a user provided reference for the new execution that must be unique over all process versions with the same name.

startExecutionInLatest

public Execution startExecutionInLatest(java.lang.String processDefinitionName)
Description copied from interface: ExecutionService
starts a new execution in the latest version of the given process definition.

Specified by:
startExecutionInLatest in interface ExecutionService
Parameters:
processDefinitionName - is the name of the process definition for which the latest version will be taken.

startExecutionInLatest

public Execution startExecutionInLatest(java.lang.String processDefinitionName,
                                        java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface: ExecutionService
starts a new execution in the latest version of the given processDefinitionName.

Specified by:
startExecutionInLatest in interface ExecutionService
Parameters:
processDefinitionName - is the name of the process definition for which the latest version will be taken.
variables - are the initial values of the process variables that will be set before the execution starts (read: before the initial node is executed).

startExecutionInLatest

public Execution startExecutionInLatest(java.lang.String processDefinitionName,
                                        java.lang.String executionKey)
Description copied from interface: ExecutionService
starts a new execution in the latest version of the given processDefinitionName.

Specified by:
startExecutionInLatest in interface ExecutionService
Parameters:
processDefinitionName - is the name of the process definition for which the latest version will be taken.
executionKey - is a user provided reference for the new execution that must be unique over all process versions with the same name.

startExecutionInLatest

public Execution startExecutionInLatest(java.lang.String processDefinitionName,
                                        java.util.Map<java.lang.String,java.lang.Object> variables,
                                        java.lang.String executionKey)
Description copied from interface: ExecutionService
starts a new execution in the latest version of the given processDefinitionName.

Specified by:
startExecutionInLatest in interface ExecutionService
Parameters:
processDefinitionName - is the name of the process definition for which the latest version will be taken.
variables - are the initial values of the process variables that will be set before the execution starts.
executionKey - is a user provided reference for the new execution that must be unique over all process versions with the same name.

signalExecution

public Execution signalExecution(java.lang.String executionId)
Description copied from interface: ExecutionService
provides an external trigger to an execution.

Specified by:
signalExecution in interface ExecutionService

signalExecution

public Execution signalExecution(java.lang.String executionId,
                                 java.lang.String signalName)
Description copied from interface: ExecutionService
provides a named external trigger to an execution.

Specified by:
signalExecution in interface ExecutionService

signalExecution

public Execution signalExecution(java.lang.String executionId,
                                 java.lang.String signalName,
                                 java.util.Map<java.lang.String,java.lang.Object> parameters)
Description copied from interface: ExecutionService
provides a named external trigger to an execution with parameters.

Specified by:
signalExecution in interface ExecutionService

signalExecution

public Execution signalExecution(java.lang.String executionId,
                                 java.util.Map<java.lang.String,java.lang.Object> parameters)
Description copied from interface: ExecutionService
provides a external trigger to an execution with parameters.

Specified by:
signalExecution in interface ExecutionService

signalExecution

public Execution signalExecution(long executionDbid)

signalExecution

public Execution signalExecution(long executionDbid,
                                 java.lang.String signalName)

signalExecution

public Execution signalExecution(long executionDbid,
                                 java.lang.String signalName,
                                 java.util.Map<java.lang.String,java.lang.Object> parameters)

signalExecution

public Execution signalExecution(long executionDbid,
                                 java.util.Map<java.lang.String,java.lang.Object> parameters)

signalExecutionByKey

public Execution signalExecutionByKey(java.lang.String processDefinitionName,
                                      java.lang.String executionKey)
Description copied from interface: ExecutionService
provides a named external trigger to an execution.

Specified by:
signalExecutionByKey in interface ExecutionService

signalExecutionByKey

public Execution signalExecutionByKey(java.lang.String processDefinitionName,
                                      java.lang.String executionKey,
                                      java.lang.String signalName)
Description copied from interface: ExecutionService
provides a named external trigger to an execution.

Specified by:
signalExecutionByKey in interface ExecutionService

signalExecutionByKey

public Execution signalExecutionByKey(java.lang.String processDefinitionName,
                                      java.lang.String executionKey,
                                      java.lang.String signalName,
                                      java.util.Map<java.lang.String,java.lang.Object> parameters)
Description copied from interface: ExecutionService
provides a named external trigger to an execution with parameters.

Specified by:
signalExecutionByKey in interface ExecutionService

signalExecutionByKey

public Execution signalExecutionByKey(java.lang.String processDefinitionName,
                                      java.lang.String executionKey,
                                      java.util.Map<java.lang.String,java.lang.Object> parameters)
Description copied from interface: ExecutionService
provides a named external trigger to an execution with parameters.

Specified by:
signalExecutionByKey in interface ExecutionService

findExecution

public Execution findExecution(java.lang.String processDefinitionName,
                               java.lang.String key)
Description copied from interface: ExecutionService
the execution that is uniquely defined by the process definition and the business key.

Specified by:
findExecution in interface ExecutionService

findExecution

public Execution findExecution(java.lang.String executionId)
Description copied from interface: ExecutionService
the execution that is uniquely defined by the process definition and the business key.

Specified by:
findExecution in interface ExecutionService

getVariable

public java.lang.Object getVariable(java.lang.String executionId,
                                    java.lang.String variableName)
Description copied from interface: ExecutionService
retrieves a variable

Specified by:
getVariable in interface ExecutionService

getVariables

public java.util.Map<java.lang.String,java.lang.Object> getVariables(java.lang.String executionId,
                                                                     java.util.List<java.lang.String> variableNames)
Description copied from interface: ExecutionService
retrieves a map of variables

Specified by:
getVariables in interface ExecutionService

setVariable

public Execution setVariable(java.lang.String executionId,
                             java.lang.String name,
                             java.lang.Object value)
Description copied from interface: ExecutionService
creates or overwrites a variable value on the referenced execution

Specified by:
setVariable in interface ExecutionService

setVariables

public Execution setVariables(java.lang.String executionId,
                              java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface: ExecutionService
creates or overwrites the variable values on the referenced execution

Specified by:
setVariables in interface ExecutionService


Copyright © 2009 OW2 Consortium. All Rights Reserved.