org.jbpm.client.impl
Class PvmServiceImpl

java.lang.Object
  extended by org.jbpm.client.impl.PvmServiceImpl
All Implemented Interfaces:
PvmService

public class PvmServiceImpl
extends java.lang.Object
implements PvmService

Author:
Tom Baeyens

Constructor Summary
PvmServiceImpl()
           
 
Method Summary
 ProcessDefinition deploy(Deployment deployment)
          deploy a new process definition into the process repository.
 Execution findExecution(long executionDbid)
          the execution with the given database primary 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.
 ProcessDefinition findLatestProcessDefinition(java.lang.String processDefinitionName)
          latest version of the processDefinition with the given name.
 ProcessDefinition findProcessDefinition(long processDefinitionDbid)
          specific processDefinition by database primary key.
 ProcessDefinition findProcessDefinition(java.lang.String processDefinitionName, int version)
          specific version of a named processDefinition.
 java.util.List<java.lang.String> findProcessDefinitionNames()
          all deployed process names.
 java.util.List<ProcessDefinition> findProcessDefinitions(java.lang.String processDefinitionName)
          all versions of the given process.
 CommandService getCommandService()
           
 java.util.List<Job<?>> getJobs()
          fetches all jobs ordered in ascending dueDate.
 java.lang.Object getVariable(long executionDbid, java.lang.String variableName)
          retrieves a variable
 java.util.Map<java.lang.String,java.lang.Object> getVariables(long executionDbid, java.util.List<java.lang.String> variableNames)
          retrieves a map of variables
 void setCommandService(CommandService commandService)
           
 Execution setVariable(long executionDbid, java.lang.String name, java.lang.Object value)
          creates or overwrites a variable value on the referenced execution
 Execution setVariables(long executionDbid, java.util.Map<java.lang.String,java.lang.Object> variables)
          creates or overwrites the variable values on the referenced execution
 Execution signal(long executionDbid)
          provides an external trigger to an execution.
 Execution signal(long executionDbid, java.lang.String signalName)
          provides a named external trigger to an execution.
 Execution signal(long executionDbid, 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(long processDefinitionDbid)
          starts a new execution in the exact version indicated by processDefinitionDbid.
 Execution startExecution(long processDefinitionDbid, java.util.Map<java.lang.String,java.lang.Object> executionVariables)
          starts a new execution in the exact version indicated by processDefinitionDbid.
 Execution startExecution(long processDefinitionDbid, java.util.Map<java.lang.String,java.lang.Object> executionVariables, java.lang.String executionKey)
          starts a new execution in the exact version indicated by processDefinitionDbid.
 Execution startExecution(java.lang.String processDefinitionName)
          starts a new execution in the latest version of the given process definition.
 Execution startExecution(java.lang.String processDefinitionName, java.util.Map<java.lang.String,java.lang.Object> executionVariables)
          starts a new execution in the latest version of the given process definition.
 Execution startExecution(java.lang.String processDefinitionName, java.util.Map<java.lang.String,java.lang.Object> executionVariables, java.lang.String executionKey)
          starts a new execution in the latest version of the given process definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PvmServiceImpl

public PvmServiceImpl()
Method Detail

deploy

public ProcessDefinition deploy(Deployment deployment)
Description copied from interface: PvmService
deploy a new process definition into the process repository.

Specified by:
deploy in interface PvmService

findLatestProcessDefinition

public ProcessDefinition findLatestProcessDefinition(java.lang.String processDefinitionName)
Description copied from interface: PvmService
latest version of the processDefinition with the given name.

Specified by:
findLatestProcessDefinition in interface PvmService

findProcessDefinition

public ProcessDefinition findProcessDefinition(java.lang.String processDefinitionName,
                                               int version)
Description copied from interface: PvmService
specific version of a named processDefinition.

Specified by:
findProcessDefinition in interface PvmService

findProcessDefinitionNames

public java.util.List<java.lang.String> findProcessDefinitionNames()
Description copied from interface: PvmService
all deployed process names.

Specified by:
findProcessDefinitionNames in interface PvmService

findProcessDefinitions

public java.util.List<ProcessDefinition> findProcessDefinitions(java.lang.String processDefinitionName)
Description copied from interface: PvmService
all versions of the given process.

Specified by:
findProcessDefinitions in interface PvmService

findProcessDefinition

public ProcessDefinition findProcessDefinition(long processDefinitionDbid)
Description copied from interface: PvmService
specific processDefinition by database primary key.

Specified by:
findProcessDefinition in interface PvmService

startExecution

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

Specified by:
startExecution in interface PvmService

startExecution

public Execution startExecution(long processDefinitionDbid)
Description copied from interface: PvmService
starts a new execution in the exact version indicated by processDefinitionDbid.

Specified by:
startExecution in interface PvmService

startExecution

public Execution startExecution(java.lang.String processDefinitionName,
                                java.util.Map<java.lang.String,java.lang.Object> executionVariables)
Description copied from interface: PvmService
starts a new execution in the latest version of the given process definition.

Specified by:
startExecution in interface PvmService

startExecution

public Execution startExecution(long processDefinitionDbid,
                                java.util.Map<java.lang.String,java.lang.Object> executionVariables)
Description copied from interface: PvmService
starts a new execution in the exact version indicated by processDefinitionDbid.

Specified by:
startExecution in interface PvmService

startExecution

public Execution startExecution(java.lang.String processDefinitionName,
                                java.util.Map<java.lang.String,java.lang.Object> executionVariables,
                                java.lang.String executionKey)
Description copied from interface: PvmService
starts a new execution in the latest version of the given process definition.

Specified by:
startExecution in interface PvmService

startExecution

public Execution startExecution(long processDefinitionDbid,
                                java.util.Map<java.lang.String,java.lang.Object> executionVariables,
                                java.lang.String executionKey)
Description copied from interface: PvmService
starts a new execution in the exact version indicated by processDefinitionDbid.

Specified by:
startExecution in interface PvmService

signal

public Execution signal(long executionDbid)
Description copied from interface: PvmService
provides an external trigger to an execution.

Specified by:
signal in interface PvmService

signal

public Execution signal(long executionDbid,
                        java.lang.String signalName)
Description copied from interface: PvmService
provides a named external trigger to an execution.

Specified by:
signal in interface PvmService

signal

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

Specified by:
signal in interface PvmService

findExecution

public Execution findExecution(long executionDbid)
Description copied from interface: PvmService
the execution with the given database primary key

Specified by:
findExecution in interface PvmService

findExecution

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

Specified by:
findExecution in interface PvmService

getVariable

public java.lang.Object getVariable(long executionDbid,
                                    java.lang.String variableName)
Description copied from interface: PvmService
retrieves a variable

Specified by:
getVariable in interface PvmService

getVariables

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

Specified by:
getVariables in interface PvmService

setVariable

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

Specified by:
setVariable in interface PvmService

setVariables

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

Specified by:
setVariables in interface PvmService

getJobs

public java.util.List<Job<?>> getJobs()
Description copied from interface: PvmService
fetches all jobs ordered in ascending dueDate.

Specified by:
getJobs in interface PvmService

getCommandService

public CommandService getCommandService()

setCommandService

public void setCommandService(CommandService commandService)