org.activiti.engine.impl
类 RuntimeServiceImpl

java.lang.Object
  继承者 org.activiti.engine.impl.ServiceImpl
      继承者 org.activiti.engine.impl.RuntimeServiceImpl
所有已实现的接口:
RuntimeService

public class RuntimeServiceImpl
extends ServiceImpl
implements RuntimeService

作者:
Tom Baeyens, Daniel Meyer

字段摘要
 
从类 org.activiti.engine.impl.ServiceImpl 继承的字段
commandExecutor
 
构造方法摘要
RuntimeServiceImpl()
           
 
方法摘要
 void activateProcessInstanceById(String processInstanceId)
          Activates the process instance with the given id.
 void addUserIdentityLink(String processInstanceId, String userId, String identityLinkType)
          Involves a user with a process instance.
 ExecutionQuery createExecutionQuery()
          Creates a new ExecutionQuery instance, that can be used to query the executions and process instances.
 NativeExecutionQuery createNativeExecutionQuery()
          creates a new NativeExecutionQuery to query Executions by SQL directly
 NativeProcessInstanceQuery createNativeProcessInstanceQuery()
          creates a new NativeProcessInstanceQuery to query ProcessInstances by SQL directly
 ProcessInstanceQuery createProcessInstanceQuery()
          Creates a new ProcessInstanceQuery instance, that can be used to query process instances.
 void deleteProcessInstance(String processInstanceId, String deleteReason)
          Delete an existing runtime process instance.
 List<String> getActiveActivityIds(String executionId)
          Finds the activity ids for all executions that are waiting in activities.
 FormData getFormInstanceById(String processDefinitionId)
           
 List<IdentityLink> getIdentityLinksForProcessInstance(String processInstanceId)
          Retrieves the IdentityLinks associated with the given process instance.
 Object getVariable(String executionId, String variableName)
          The variable value.
 Object getVariableLocal(String executionId, String variableName)
          The variable value for an execution.
 Map<String,Object> getVariables(String executionId)
          All variables visible from the given execution scope (including parent scopes).
 Map<String,Object> getVariables(String executionId, Collection<String> variableNames)
          The variable values for all given variableNames, takes all variables into account which are visible from the given execution scope (including parent scopes).
 Map<String,Object> getVariablesLocal(String executionId)
          All variable values that are defined in the execution scope, without taking outer scopes into account.
 Map<String,Object> getVariablesLocal(String executionId, Collection<String> variableNames)
          The variable values for the given variableNames only taking the given execution scope into account, not looking in outer scopes.
 boolean hasVariable(String executionId, String variableName)
          Check whether or not this execution has variable set with the given name, Searching for the variable is done in all scopes that are visible to the given execution (including parent scopes).
 boolean hasVariableLocal(String executionId, String variableName)
          Check whether or not this execution has a local variable set with the given name.
 void messageEventReceived(String messageName, String executionId)
          Notifies the process engine that a message event with name 'messageName' has been received and has been correlated to an execution with id 'executionId'.
 void messageEventReceived(String messageName, String executionId, Map<String,Object> processVariables)
          Notifies the process engine that a message event with the name 'messageName' has been received and has been correlated to an execution with id 'executionId'.
 void messageEventReceivedAsync(String messageName, String executionId)
          Notifies the process engine that a message event with the name 'messageName' has been received and has been correlated to an execution with id 'executionId'.
 void removeVariable(String executionId, String variableName)
          Removes a variable for an execution.
 void removeVariableLocal(String executionId, String variableName)
          Removes a variable for an execution (not considering parent scopes).
 void removeVariables(String executionId, Collection<String> variableNames)
          Removes variables for an execution.
 void removeVariablesLocal(String executionId, Collection<String> variableNames)
          Remove variables for an execution (not considering parent scopes).
 void setVariable(String executionId, String variableName, Object value)
          Update or create a variable for an execution.
 void setVariableLocal(String executionId, String variableName, Object value)
          Update or create a variable for an execution (not considering parent scopes).
 void setVariables(String executionId, Map<String,? extends Object> variables)
          Update or create given variables for an execution (including parent scopes).
 void setVariablesLocal(String executionId, Map<String,? extends Object> variables)
          Update or create given variables for an execution (not considering parent scopes).
 void signal(String executionId)
          Sends an external trigger to an activity instance that is waiting inside the given execution.
 void signal(String executionId, Map<String,Object> processVariables)
          Sends an external trigger to an activity instance that is waiting inside the given execution.
 void signalEventReceived(String signalName)
          Notifies the process engine that a signal event of name 'signalName' has been received.
 void signalEventReceived(String signalName, Map<String,Object> processVariables)
          Notifies the process engine that a signal event of name 'signalName' has been received.
 void signalEventReceived(String signalName, String executionId)
          Notifies the process engine that a signal event of name 'signalName' has been received.
 void signalEventReceived(String signalName, String executionId, Map<String,Object> processVariables)
          Notifies the process engine that a signal event of name 'signalName' has been received.
 void signalEventReceivedAsync(String signalName)
          Notifies the process engine that a signal event of name 'signalName' has been received.
 void signalEventReceivedAsync(String signalName, String executionId)
          Notifies the process engine that a signal event of name 'signalName' has been received.
 ProcessInstance startProcessInstanceById(String processDefinitionId)
          Starts a new process instance in the exactly specified version of the process definition with the given id.
 ProcessInstance startProcessInstanceById(String processDefinitionId, Map<String,Object> variables)
          Starts a new process instance in the exactly specified version of the process definition with the given id.
 ProcessInstance startProcessInstanceById(String processDefinitionId, String businessKey)
          Starts a new process instance in the exactly specified version of the process definition with the given id.
 ProcessInstance startProcessInstanceById(String processDefinitionId, String businessKey, Map<String,Object> variables)
          Starts a new process instance in the exactly specified version of the process definition with the given id.
 ProcessInstance startProcessInstanceByKey(String processDefinitionKey)
          Starts a new process instance in the latest version of the process definition with the given key.
 ProcessInstance startProcessInstanceByKey(String processDefinitionKey, Map<String,Object> variables)
          Starts a new process instance in the latest version of the process definition with the given key
 ProcessInstance startProcessInstanceByKey(String processDefinitionKey, String businessKey)
          Starts a new process instance in the latest version of the process definition with the given key.
 ProcessInstance startProcessInstanceByKey(String processDefinitionKey, String businessKey, Map<String,Object> variables)
          Starts a new process instance in the latest version of the process definition with the given key.
 ProcessInstance startProcessInstanceByMessage(String messageName)
          Signals the process engine that a message is received and starts a new ProcessInstance.
 ProcessInstance startProcessInstanceByMessage(String messageName, Map<String,Object> processVariables)
          Signals the process engine that a message is received and starts a new ProcessInstance.
 ProcessInstance startProcessInstanceByMessage(String messageName, String businessKey)
          Signals the process engine that a message is received and starts a new ProcessInstance.
 ProcessInstance startProcessInstanceByMessage(String messageName, String businessKey, Map<String,Object> processVariables)
          Signals the process engine that a message is received and starts a new ProcessInstance.
 void suspendProcessInstanceById(String processInstanceId)
          Suspends the process instance with the given id.
 void updateBusinessKey(String processInstanceId, String businessKey)
          Updates the business key for the provided process instance
 
从类 org.activiti.engine.impl.ServiceImpl 继承的方法
getCommandExecutor, setCommandExecutor
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

RuntimeServiceImpl

public RuntimeServiceImpl()
方法详细信息

startProcessInstanceByKey

public ProcessInstance startProcessInstanceByKey(String processDefinitionKey)
从接口 RuntimeService 复制的描述
Starts a new process instance in the latest version of the process definition with the given key.

指定者:
接口 RuntimeService 中的 startProcessInstanceByKey
参数:
processDefinitionKey - key of process definition, cannot be null.

startProcessInstanceByKey

public ProcessInstance startProcessInstanceByKey(String processDefinitionKey,
                                                 String businessKey)
从接口 RuntimeService 复制的描述
Starts a new process instance in the latest version of the process definition with the given key. A business key can be provided to associate the process instance with a certain identifier that has a clear business meaning. For example in an order process, the business key could be an order id. This business key can then be used to easily look up that process instance , see ProcessInstanceQuery.processInstanceBusinessKey(String). Providing such a business key is definitely a best practice. Note that a business key MUST be unique for the given process definition. Process instance from different process definition are allowed to have the same business key. The combination of processdefinitionKey-businessKey must be unique.

指定者:
接口 RuntimeService 中的 startProcessInstanceByKey
参数:
processDefinitionKey - key of process definition, cannot be null.
businessKey - a key that uniquely identifies the process instance in the context or the given process definition.

startProcessInstanceByKey

public ProcessInstance startProcessInstanceByKey(String processDefinitionKey,
                                                 Map<String,Object> variables)
从接口 RuntimeService 复制的描述
Starts a new process instance in the latest version of the process definition with the given key

指定者:
接口 RuntimeService 中的 startProcessInstanceByKey
参数:
processDefinitionKey - key of process definition, cannot be null.
variables - the variables to pass, can be null.

startProcessInstanceByKey

public ProcessInstance startProcessInstanceByKey(String processDefinitionKey,
                                                 String businessKey,
                                                 Map<String,Object> variables)
从接口 RuntimeService 复制的描述
Starts a new process instance in the latest version of the process definition with the given key. A business key can be provided to associate the process instance with a certain identifier that has a clear business meaning. For example in an order process, the business key could be an order id. This business key can then be used to easily look up that process instance , see ProcessInstanceQuery.processInstanceBusinessKey(String). Providing such a business key is definitely a best practice. Note that a business key MUST be unique for the given process definition. Process instance from different process definition are allowed to have the same business key. The combination of processdefinitionKey-businessKey must be unique.

指定者:
接口 RuntimeService 中的 startProcessInstanceByKey
参数:
processDefinitionKey - key of process definition, cannot be null.
businessKey - a key that uniquely identifies the process instance in the context or the given process definition.
variables - the variables to pass, can be null.

startProcessInstanceById

public ProcessInstance startProcessInstanceById(String processDefinitionId)
从接口 RuntimeService 复制的描述
Starts a new process instance in the exactly specified version of the process definition with the given id.

指定者:
接口 RuntimeService 中的 startProcessInstanceById
参数:
processDefinitionId - the id of the process definition, cannot be null.

startProcessInstanceById

public ProcessInstance startProcessInstanceById(String processDefinitionId,
                                                String businessKey)
从接口 RuntimeService 复制的描述
Starts a new process instance in the exactly specified version of the process definition with the given id. A business key can be provided to associate the process instance with a certain identifier that has a clear business meaning. For example in an order process, the business key could be an order id. This business key can then be used to easily look up that process instance , see ProcessInstanceQuery.processInstanceBusinessKey(String). Providing such a business key is definitely a best practice. Note that a business key MUST be unique for the given process definition. Process instance from different process definition are allowed to have the same business key.

指定者:
接口 RuntimeService 中的 startProcessInstanceById
参数:
processDefinitionId - the id of the process definition, cannot be null.
businessKey - a key that uniquely identifies the process instance in the context or the given process definition.

startProcessInstanceById

public ProcessInstance startProcessInstanceById(String processDefinitionId,
                                                Map<String,Object> variables)
从接口 RuntimeService 复制的描述
Starts a new process instance in the exactly specified version of the process definition with the given id.

指定者:
接口 RuntimeService 中的 startProcessInstanceById
参数:
processDefinitionId - the id of the process definition, cannot be null.
variables - variables to be passed, can be null

startProcessInstanceById

public ProcessInstance startProcessInstanceById(String processDefinitionId,
                                                String businessKey,
                                                Map<String,Object> variables)
从接口 RuntimeService 复制的描述
Starts a new process instance in the exactly specified version of the process definition with the given id. A business key can be provided to associate the process instance with a certain identifier that has a clear business meaning. For example in an order process, the business key could be an order id. This business key can then be used to easily look up that process instance , see ProcessInstanceQuery.processInstanceBusinessKey(String). Providing such a business key is definitely a best practice. Note that a business key MUST be unique for the given process definition. Process instance from different process definition are allowed to have the same business key.

指定者:
接口 RuntimeService 中的 startProcessInstanceById
参数:
processDefinitionId - the id of the process definition, cannot be null.
variables - variables to be passed, can be null

deleteProcessInstance

public void deleteProcessInstance(String processInstanceId,
                                  String deleteReason)
从接口 RuntimeService 复制的描述
Delete an existing runtime process instance.

指定者:
接口 RuntimeService 中的 deleteProcessInstance
参数:
processInstanceId - id of process instance to delete, cannot be null.
deleteReason - reason for deleting, can be null.

createExecutionQuery

public ExecutionQuery createExecutionQuery()
从接口 RuntimeService 复制的描述
Creates a new ExecutionQuery instance, that can be used to query the executions and process instances.

指定者:
接口 RuntimeService 中的 createExecutionQuery

createNativeExecutionQuery

public NativeExecutionQuery createNativeExecutionQuery()
从接口 RuntimeService 复制的描述
creates a new NativeExecutionQuery to query Executions by SQL directly

指定者:
接口 RuntimeService 中的 createNativeExecutionQuery

createNativeProcessInstanceQuery

public NativeProcessInstanceQuery createNativeProcessInstanceQuery()
从接口 RuntimeService 复制的描述
creates a new NativeProcessInstanceQuery to query ProcessInstances by SQL directly

指定者:
接口 RuntimeService 中的 createNativeProcessInstanceQuery

updateBusinessKey

public void updateBusinessKey(String processInstanceId,
                              String businessKey)
从接口 RuntimeService 复制的描述
Updates the business key for the provided process instance

指定者:
接口 RuntimeService 中的 updateBusinessKey
参数:
processInstanceId - id of the process instance to set the business key, cannot be null
businessKey - new businessKey value

getVariables

public Map<String,Object> getVariables(String executionId)
从接口 RuntimeService 复制的描述
All variables visible from the given execution scope (including parent scopes).

指定者:
接口 RuntimeService 中的 getVariables
参数:
executionId - id of execution, cannot be null.
返回:
the variables or an empty map if no such variables are found.

getVariablesLocal

public Map<String,Object> getVariablesLocal(String executionId)
从接口 RuntimeService 复制的描述
All variable values that are defined in the execution scope, without taking outer scopes into account. If you have many task local variables and you only need a few, consider using RuntimeService.getVariablesLocal(String, Collection) for better performance.

指定者:
接口 RuntimeService 中的 getVariablesLocal
参数:
executionId - id of execution, cannot be null.
返回:
the variables or an empty map if no such variables are found.

getVariables

public Map<String,Object> getVariables(String executionId,
                                       Collection<String> variableNames)
从接口 RuntimeService 复制的描述
The variable values for all given variableNames, takes all variables into account which are visible from the given execution scope (including parent scopes).

指定者:
接口 RuntimeService 中的 getVariables
参数:
executionId - id of execution, cannot be null.
variableNames - the collection of variable names that should be retrieved.
返回:
the variables or an empty map if no such variables are found.

getVariablesLocal

public Map<String,Object> getVariablesLocal(String executionId,
                                            Collection<String> variableNames)
从接口 RuntimeService 复制的描述
The variable values for the given variableNames only taking the given execution scope into account, not looking in outer scopes.

指定者:
接口 RuntimeService 中的 getVariablesLocal
参数:
executionId - id of execution, cannot be null.
variableNames - the collection of variable names that should be retrieved.
返回:
the variables or an empty map if no such variables are found.

getVariable

public Object getVariable(String executionId,
                          String variableName)
从接口 RuntimeService 复制的描述
The variable value. Searching for the variable is done in all scopes that are visible to the given execution (including parent scopes). Returns null when no variable value is found with the given name or when the value is set to null.

指定者:
接口 RuntimeService 中的 getVariable
参数:
executionId - id of execution, cannot be null.
variableName - name of variable, cannot be null.
返回:
the variable value or null if the variable is undefined or the value of the variable is null.

hasVariable

public boolean hasVariable(String executionId,
                           String variableName)
从接口 RuntimeService 复制的描述
Check whether or not this execution has variable set with the given name, Searching for the variable is done in all scopes that are visible to the given execution (including parent scopes).

指定者:
接口 RuntimeService 中的 hasVariable

getVariableLocal

public Object getVariableLocal(String executionId,
                               String variableName)
从接口 RuntimeService 复制的描述
The variable value for an execution. Returns the value when the variable is set for the execution (and not searching parent scopes). Returns null when no variable value is found with the given name or when the value is set to null.

指定者:
接口 RuntimeService 中的 getVariableLocal

hasVariableLocal

public boolean hasVariableLocal(String executionId,
                                String variableName)
从接口 RuntimeService 复制的描述
Check whether or not this execution has a local variable set with the given name.

指定者:
接口 RuntimeService 中的 hasVariableLocal

setVariable

public void setVariable(String executionId,
                        String variableName,
                        Object value)
从接口 RuntimeService 复制的描述
Update or create a variable for an execution. If the variable is not already existing somewhere in the execution hierarchy, it will be created in the process instance (which is the root execution).

指定者:
接口 RuntimeService 中的 setVariable
参数:
executionId - id of execution to set variable in, cannot be null.
variableName - name of variable to set, cannot be null.
value - value to set. When null is passed, the variable is not removed, only it's value will be set to null.

setVariableLocal

public void setVariableLocal(String executionId,
                             String variableName,
                             Object value)
从接口 RuntimeService 复制的描述
Update or create a variable for an execution (not considering parent scopes). If the variable is not already existing, it will be created in the given execution.

指定者:
接口 RuntimeService 中的 setVariableLocal
参数:
executionId - id of execution to set variable in, cannot be null.
variableName - name of variable to set, cannot be null.
value - value to set. When null is passed, the variable is not removed, only it's value will be set to null.

setVariables

public void setVariables(String executionId,
                         Map<String,? extends Object> variables)
从接口 RuntimeService 复制的描述
Update or create given variables for an execution (including parent scopes). If the variables are not already existing, they will be created in the process instance (which is the root execution).

指定者:
接口 RuntimeService 中的 setVariables
参数:
executionId - id of the execution, cannot be null.
variables - map containing name (key) and value of variables, can be null.

setVariablesLocal

public void setVariablesLocal(String executionId,
                              Map<String,? extends Object> variables)
从接口 RuntimeService 复制的描述
Update or create given variables for an execution (not considering parent scopes). If the variables are not already existing, it will be created in the given execution.

指定者:
接口 RuntimeService 中的 setVariablesLocal
参数:
executionId - id of the execution, cannot be null.
variables - map containing name (key) and value of variables, can be null.

removeVariable

public void removeVariable(String executionId,
                           String variableName)
从接口 RuntimeService 复制的描述
Removes a variable for an execution.

指定者:
接口 RuntimeService 中的 removeVariable
参数:
executionId - id of execution to remove variable in.
variableName - name of variable to remove.

removeVariableLocal

public void removeVariableLocal(String executionId,
                                String variableName)
从接口 RuntimeService 复制的描述
Removes a variable for an execution (not considering parent scopes).

指定者:
接口 RuntimeService 中的 removeVariableLocal
参数:
executionId - id of execution to remove variable in.
variableName - name of variable to remove.

removeVariables

public void removeVariables(String executionId,
                            Collection<String> variableNames)
从接口 RuntimeService 复制的描述
Removes variables for an execution.

指定者:
接口 RuntimeService 中的 removeVariables
参数:
executionId - id of execution to remove variable in.
variableNames - collection containing name of variables to remove.

removeVariablesLocal

public void removeVariablesLocal(String executionId,
                                 Collection<String> variableNames)
从接口 RuntimeService 复制的描述
Remove variables for an execution (not considering parent scopes).

指定者:
接口 RuntimeService 中的 removeVariablesLocal
参数:
executionId - id of execution to remove variable in.
variableNames - collection containing name of variables to remove.

signal

public void signal(String executionId)
从接口 RuntimeService 复制的描述
Sends an external trigger to an activity instance that is waiting inside the given execution.

指定者:
接口 RuntimeService 中的 signal
参数:
executionId - id of execution to signal, cannot be null.

signal

public void signal(String executionId,
                   Map<String,Object> processVariables)
从接口 RuntimeService 复制的描述
Sends an external trigger to an activity instance that is waiting inside the given execution.

指定者:
接口 RuntimeService 中的 signal
参数:
executionId - id of execution to signal, cannot be null.
processVariables - a map of process variables

addUserIdentityLink

public void addUserIdentityLink(String processInstanceId,
                                String userId,
                                String identityLinkType)
从接口 RuntimeService 复制的描述
Involves a user with a process instance. The type of identity link is defined by the given identityLinkType.

指定者:
接口 RuntimeService 中的 addUserIdentityLink
参数:
processInstanceId - id of the process instance, cannot be null.
userId - id of the user involve, cannot be null.
identityLinkType - type of identityLink, cannot be null (@see IdentityLinkType).

getIdentityLinksForProcessInstance

public List<IdentityLink> getIdentityLinksForProcessInstance(String processInstanceId)
从接口 RuntimeService 复制的描述
Retrieves the IdentityLinks associated with the given process instance. Such an IdentityLink informs how a certain user is involved with a process instance.

指定者:
接口 RuntimeService 中的 getIdentityLinksForProcessInstance

createProcessInstanceQuery

public ProcessInstanceQuery createProcessInstanceQuery()
从接口 RuntimeService 复制的描述
Creates a new ProcessInstanceQuery instance, that can be used to query process instances.

指定者:
接口 RuntimeService 中的 createProcessInstanceQuery

getActiveActivityIds

public List<String> getActiveActivityIds(String executionId)
从接口 RuntimeService 复制的描述
Finds the activity ids for all executions that are waiting in activities. This is a list because a single activity can be active multiple times.

指定者:
接口 RuntimeService 中的 getActiveActivityIds
参数:
executionId - id of the execution, cannot be null.

getFormInstanceById

public FormData getFormInstanceById(String processDefinitionId)

suspendProcessInstanceById

public void suspendProcessInstanceById(String processInstanceId)
从接口 RuntimeService 复制的描述
Suspends the process instance with the given id. If a process instance is in state suspended, activiti will not execute jobs (timers, messages) associated with this instance. If you have a process instance hierarchy, suspending one process instance form the hierarchy will not suspend other process instances form that hierarchy.

指定者:
接口 RuntimeService 中的 suspendProcessInstanceById

activateProcessInstanceById

public void activateProcessInstanceById(String processInstanceId)
从接口 RuntimeService 复制的描述
Activates the process instance with the given id. If you have a process instance hierarchy, suspending one process instance form the hierarchy will not suspend other process instances form that hierarchy.

指定者:
接口 RuntimeService 中的 activateProcessInstanceById

startProcessInstanceByMessage

public ProcessInstance startProcessInstanceByMessage(String messageName)
从接口 RuntimeService 复制的描述

Signals the process engine that a message is received and starts a new ProcessInstance.

Calling this method can have two different outcomes:

指定者:
接口 RuntimeService 中的 startProcessInstanceByMessage
参数:
messageName - the 'name' of the message as specified as an attribute on the bpmn20 <message name="messageName" /> element.
返回:
the ProcessInstance object representing the started process instance

startProcessInstanceByMessage

public ProcessInstance startProcessInstanceByMessage(String messageName,
                                                     String businessKey)
从接口 RuntimeService 复制的描述

Signals the process engine that a message is received and starts a new ProcessInstance.

See RuntimeService.startProcessInstanceByMessage(String, Map). This method allows specifying a business key.

指定者:
接口 RuntimeService 中的 startProcessInstanceByMessage
参数:
messageName - the 'name' of the message as specified as an attribute on the bpmn20 <message name="messageName" /> element.
businessKey - the business key which is added to the started process instance

startProcessInstanceByMessage

public ProcessInstance startProcessInstanceByMessage(String messageName,
                                                     Map<String,Object> processVariables)
从接口 RuntimeService 复制的描述

Signals the process engine that a message is received and starts a new ProcessInstance.

See RuntimeService.startProcessInstanceByMessage(String). In addition, this method allows specifying a the payload of the message as a map of process variables.

指定者:
接口 RuntimeService 中的 startProcessInstanceByMessage
参数:
messageName - the 'name' of the message as specified as an attribute on the bpmn20 <message name="messageName" /> element.
processVariables - the 'payload' of the message. The variables are added as processes variables to the started process instance.
返回:
the ProcessInstance object representing the started process instance

startProcessInstanceByMessage

public ProcessInstance startProcessInstanceByMessage(String messageName,
                                                     String businessKey,
                                                     Map<String,Object> processVariables)
从接口 RuntimeService 复制的描述

Signals the process engine that a message is received and starts a new ProcessInstance.

See RuntimeService.startProcessInstanceByMessage(String, Map). In addition, this method allows specifying a business key.

指定者:
接口 RuntimeService 中的 startProcessInstanceByMessage
参数:
messageName - the 'name' of the message as specified as an attribute on the bpmn20 <message name="messageName" /> element.
businessKey - the business key which is added to the started process instance
processVariables - the 'payload' of the message. The variables are added as processes variables to the started process instance.
返回:
the ProcessInstance object representing the started process instance

signalEventReceived

public void signalEventReceived(String signalName)
从接口 RuntimeService 复制的描述
Notifies the process engine that a signal event of name 'signalName' has been received. This method delivers the signal to all executions waiting on the signal.

NOTE: The waiting executions are notified synchronously.

指定者:
接口 RuntimeService 中的 signalEventReceived
参数:
signalName - the name of the signal event

signalEventReceivedAsync

public void signalEventReceivedAsync(String signalName)
从接口 RuntimeService 复制的描述
Notifies the process engine that a signal event of name 'signalName' has been received. This method delivers the signal to all executions waiting on the signal.

指定者:
接口 RuntimeService 中的 signalEventReceivedAsync
参数:
signalName - the name of the signal event

signalEventReceived

public void signalEventReceived(String signalName,
                                Map<String,Object> processVariables)
从接口 RuntimeService 复制的描述
Notifies the process engine that a signal event of name 'signalName' has been received. This method delivers the signal to all executions waiting on the signal.

NOTE: The waiting executions are notified synchronously.

指定者:
接口 RuntimeService 中的 signalEventReceived
参数:
signalName - the name of the signal event
processVariables - a map of variables added to the execution(s)

signalEventReceived

public void signalEventReceived(String signalName,
                                String executionId)
从接口 RuntimeService 复制的描述
Notifies the process engine that a signal event of name 'signalName' has been received. This method delivers the signal to a single execution, being the execution referenced by 'executionId'. The waiting execution is notified synchronously.

指定者:
接口 RuntimeService 中的 signalEventReceived
参数:
signalName - the name of the signal event
executionId - the id of the execution to deliver the signal to

signalEventReceived

public void signalEventReceived(String signalName,
                                String executionId,
                                Map<String,Object> processVariables)
从接口 RuntimeService 复制的描述
Notifies the process engine that a signal event of name 'signalName' has been received. This method delivers the signal to a single execution, being the execution referenced by 'executionId'. The waiting execution is notified synchronously.

指定者:
接口 RuntimeService 中的 signalEventReceived
参数:
signalName - the name of the signal event
executionId - the id of the execution to deliver the signal to
processVariables - a map of variables added to the execution(s)

signalEventReceivedAsync

public void signalEventReceivedAsync(String signalName,
                                     String executionId)
从接口 RuntimeService 复制的描述
Notifies the process engine that a signal event of name 'signalName' has been received. This method delivers the signal to a single execution, being the execution referenced by 'executionId'. The waiting execution is notified asynchronously.

指定者:
接口 RuntimeService 中的 signalEventReceivedAsync
参数:
signalName - the name of the signal event
executionId - the id of the execution to deliver the signal to

messageEventReceived

public void messageEventReceived(String messageName,
                                 String executionId)
从接口 RuntimeService 复制的描述
Notifies the process engine that a message event with name 'messageName' has been received and has been correlated to an execution with id 'executionId'. The waiting execution is notified synchronously.

指定者:
接口 RuntimeService 中的 messageEventReceived
参数:
messageName - the name of the message event
executionId - the id of the execution to deliver the message to

messageEventReceived

public void messageEventReceived(String messageName,
                                 String executionId,
                                 Map<String,Object> processVariables)
从接口 RuntimeService 复制的描述
Notifies the process engine that a message event with the name 'messageName' has been received and has been correlated to an execution with id 'executionId'. The waiting execution is notified synchronously.

指定者:
接口 RuntimeService 中的 messageEventReceived
参数:
messageName - the name of the message event
executionId - the id of the execution to deliver the message to
processVariables - a map of variables added to the execution

messageEventReceivedAsync

public void messageEventReceivedAsync(String messageName,
                                      String executionId)
从接口 RuntimeService 复制的描述
Notifies the process engine that a message event with the name 'messageName' has been received and has been correlated to an execution with id 'executionId'. The waiting execution is notified asynchronously.

指定者:
接口 RuntimeService 中的 messageEventReceivedAsync
参数:
messageName - the name of the message event
executionId - the id of the execution to deliver the message to


Copyright © 2013 Alfresco. All rights reserved.