|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.transport.bpm.jbpm.Jbpm
public class Jbpm
jBPM's implementation of Mule's generic BPMS interface.
This class should be set as the "bpms" property of the BPM Connector:
Field Summary | |
---|---|
protected boolean |
containerManaged
Indicates whether jBPM has been instantiated by the connector (false) or was passed in from somewhere else (true). |
protected org.jbpm.JbpmConfiguration |
jbpmConfiguration
|
protected static Log |
logger
|
Constructor Summary | |
---|---|
Jbpm()
Creates the Mule wrapper for jBPM using a default configuration. |
|
Jbpm(org.jbpm.JbpmConfiguration jbpmConfiguration)
Creates the Mule BPM wrapper based on an already-initialized jBPM instance |
Method Summary | |
---|---|
void |
abortProcess(Object processId)
Delete a process instance. |
Object |
advanceProcess(Object processId)
Advance a process instance one step. |
Object |
advanceProcess(Object processId,
Object transition,
Map processVariables)
Advance a process instance one step. |
void |
completeTask(org.jbpm.taskmgmt.exe.TaskInstance task)
|
void |
completeTask(org.jbpm.taskmgmt.exe.TaskInstance task,
String transition)
|
void |
deployProcess(String processDefinitionFile)
Deploy a new process definition. |
void |
deployProcessFromStream(InputStream processDefinition)
|
void |
destroy()
|
Object |
getId(Object process)
|
org.jbpm.JbpmConfiguration |
getJbpmConfiguration()
|
Object |
getState(Object process)
|
boolean |
hasEnded(Object process)
|
boolean |
isProcess(Object obj)
|
List |
loadTasks(org.jbpm.graph.exe.ProcessInstance process)
|
Object |
lookupProcess(Object processId)
Look up an already-running process instance. |
void |
setJbpmConfiguration(org.jbpm.JbpmConfiguration jbpmConfiguration)
|
void |
setMessageService(MessageService msgService)
MessageService contains a callback method used to generate Mule messages from your process. |
Object |
startProcess(Object processType)
Start a new process. |
Object |
startProcess(Object processType,
Object transition,
Map processVariables)
Start a new process. |
Object |
updateProcess(Object processId,
Map processVariables)
Update the variables for a process instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Log logger
protected org.jbpm.JbpmConfiguration jbpmConfiguration
protected boolean containerManaged
Constructor Detail |
---|
public Jbpm()
public Jbpm(org.jbpm.JbpmConfiguration jbpmConfiguration)
jbpmConfiguration
- - the already-initialized jBPM instanceMethod Detail |
---|
public void destroy()
public void setMessageService(MessageService msgService)
BPMS
MessageService
contains a callback method used to generate Mule messages from your process.
This method is REQUIRED.
setMessageService
in interface BPMS
msgService
- An interface within Mule which the BPMS may call to generate
Mule messages.public Object startProcess(Object processType) throws Exception
Exception
public Object startProcess(Object processType, Object transition, Map processVariables) throws Exception
startProcess
in interface BPMS
processType
- - the type of process to startprocessVariables
- - optional process variables/parameters to set
Exception
public Object advanceProcess(Object processId) throws Exception
Exception
public Object advanceProcess(Object processId, Object transition, Map processVariables) throws Exception
advanceProcess
in interface BPMS
processId
- - an ID which identifies the running processtransition
- - optionally specify which transition to take from the
current stateprocessVariables
- - optional process variables/parameters to set
Exception
public Object updateProcess(Object processId, Map processVariables) throws Exception
updateProcess
in interface BPMS
processId
- - an ID which identifies the running processprocessVariables
- - process variables/parameters to set
Exception
public void abortProcess(Object processId) throws Exception
abortProcess
in interface BPMS
processId
- - an ID which identifies the running process
Exception
public boolean isProcess(Object obj) throws Exception
isProcess
in interface BPMS
Exception
public Object getId(Object process) throws Exception
getId
in interface BPMS
Exception
public Object getState(Object process) throws Exception
getState
in interface BPMS
Exception
public boolean hasEnded(Object process) throws Exception
hasEnded
in interface BPMS
Exception
public Object lookupProcess(Object processId) throws Exception
lookupProcess
in interface BPMS
Exception
public void deployProcess(String processDefinitionFile) throws IOException
IOException
public void deployProcessFromStream(InputStream processDefinition) throws IOException
IOException
public List loadTasks(org.jbpm.graph.exe.ProcessInstance process)
public void completeTask(org.jbpm.taskmgmt.exe.TaskInstance task)
public void completeTask(org.jbpm.taskmgmt.exe.TaskInstance task, String transition)
public org.jbpm.JbpmConfiguration getJbpmConfiguration()
public void setJbpmConfiguration(org.jbpm.JbpmConfiguration jbpmConfiguration)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |