public interface ProcessFluent<T,U>
ProcessRuntime
Modifier and Type | Method and Description |
---|---|
T |
abortProcessInstance(long processInstanceId)
Aborts the process instance with the given id.
|
T |
createProcessInstance(String processId,
Map<String,Object> parameters)
Creates a new process instance (but does not yet start it).
|
WorkItemManagerFluent<WorkItemManagerFluent,T,U> |
getWorkItemManager()
Returns the
WorkItemManager related to this session. |
T |
signalEvent(String type,
Object event)
Signals the engine that an event has occurred.
|
T |
signalEvent(String type,
Object event,
long processInstanceId)
Signals the process instance that an event has occurred.
|
T |
startProcess(String processId)
Start a new process instance.
|
T |
startProcess(String processId,
Map<String,Object> parameters)
Start a new process instance.
|
T |
startProcessInstance(long processInstanceId)
Starts the given process instance (which was created by using createProcesInstance
but not yet started).
|
T startProcess(String processId)
processId
- The id of the process that should be startedProcessInstance
that represents the instance of the process that was startedT startProcess(String processId, Map<String,Object> parameters)
processId
- the id of the process that should be startedparameters
- the process variables that should be set when starting the process instanceProcessInstance
that represents the instance of the process that was startedT createProcessInstance(String processId, Map<String,Object> parameters)
processId
- the id of the process that should be startedparameters
- the process variables that should be set when creating the process instanceProcessInstance
that represents the instance of the process that was created (but not yet started)T startProcessInstance(long processInstanceId)
processInstanceId
- the id of the process instance that needs to be startedProcessInstance
that represents the instance of the process that was startedT signalEvent(String type, Object event)
type
- the type of eventevent
- the data associated with this eventT signalEvent(String type, Object event, long processInstanceId)
type
- the type of eventevent
- the data associated with this eventprocessInstanceId
- the id of the process instance that should be signaledT abortProcessInstance(long processInstanceId)
IllegalArgumentException
.processInstanceId
- the id of the process instanceWorkItemManagerFluent<WorkItemManagerFluent,T,U> getWorkItemManager()
WorkItemManager
related to this session. This can be used to
register new WorkItemHandler
s or to complete (or abort) WorkItem
s.WorkItemManager
related to this sessionCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.