|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.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 static Logger |
log
|
static String |
PROCESS_ENDED
|
protected org.jbpm.api.ProcessEngine |
processEngine
|
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
Jbpm()
Creates the Mule wrapper for jBPM |
|
Jbpm(org.jbpm.api.ProcessEngine processEngine)
Creates the Mule wrapper for jBPM |
|
Jbpm(String configurationResource,
Properties processDefinitions)
Creates the Mule wrapper for jBPM |
|
| Method Summary | |
|---|---|
void |
abortProcess(Object processInstanceId)
Delete a process instance. |
Object |
advanceProcess(Object executionId)
Advance a process instance one step. |
Object |
advanceProcess(Object executionId,
Object signalName,
Map variables)
Advance a process instance one step. |
void |
completeTask(org.jbpm.api.task.Task task)
|
void |
completeTask(org.jbpm.api.task.Task task,
String outcome,
Map variables)
|
void |
deployProcess(String processDefinitionFile)
|
void |
deployProcessFromStream(String resourceName,
InputStream processDefinition)
|
void |
dispose()
A lifecycle method where implementor should free up any resources. |
String |
getConfigurationResource()
|
Object |
getId(Object process)
|
Properties |
getProcessDefinitions()
|
org.jbpm.api.ProcessEngine |
getProcessEngine()
|
Object |
getState(Object process)
|
boolean |
hasEnded(Object process)
|
void |
initialise()
Method used to perform any initialisation work. |
boolean |
isProcess(Object obj)
|
Object |
lookupProcess(Object processId)
Look up an already-running process instance. |
void |
setConfigurationResource(String configurationResource)
|
void |
setMessageService(MessageService msgService)
MessageService contains a callback method used to generate Mule messages from your process. |
void |
setProcessDefinitions(Properties processDefinitions)
|
void |
setProcessEngine(org.jbpm.api.ProcessEngine processEngine)
|
Object |
startProcess(Object processDefinitionKey)
Start a new process. |
Object |
startProcess(Object processDefinitionKey,
Object signalName,
Map variables)
Start a new process. |
Object |
updateProcess(Object executionId,
Map variables)
Update the variables for an execution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger log
public static final String PROCESS_ENDED
protected org.jbpm.api.ProcessEngine processEngine
protected boolean containerManaged
| Constructor Detail |
|---|
public Jbpm()
public Jbpm(String configurationResource,
Properties processDefinitions)
configurationResource - - The configuration file for jBPM, default is "jbpm.cfg.xml" if not specified.processDefinitions - - A list of process definitions to load into jBPM upon initialization.public Jbpm(org.jbpm.api.ProcessEngine processEngine)
The - already-initialized jBPM ProcessEngine. This is useful if you use Spring to configure your jBPM instance.| Method Detail |
|---|
public void initialise()
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
initialise in interface Initialisablepublic void dispose()
Disposable
dispose in interface Disposablepublic void setMessageService(MessageService msgService)
BPMSMessageService contains a callback method used to generate Mule messages from your process.
This method is REQUIRED.
setMessageService in interface BPMSmsgService - An interface within Mule which the BPMS may call to generate
Mule messages.
public Object startProcess(Object processDefinitionKey)
throws Exception
Exception
public Object startProcess(Object processDefinitionKey,
Object signalName,
Map variables)
throws Exception
startProcess in interface BPMSprocessDefinitionKey - - the type of process to startvariables - - optional process variables/parameters to set
Exception
public Object advanceProcess(Object executionId)
throws Exception
Exception
public Object advanceProcess(Object executionId,
Object signalName,
Map variables)
throws Exception
advanceProcess in interface BPMSprocessId - - if no transition value is provided, this is assumed to be
execution idtransition - - the state of the execution we're looking forprocessVariables - - optional process variables/parameters to set
Exception
public Object updateProcess(Object executionId,
Map variables)
throws Exception
updateProcess in interface BPMSexecutionId - - an ID which identifies the running processvariables - - process variables/parameters to set
Exception
public void abortProcess(Object processInstanceId)
throws Exception
abortProcess in interface BPMSprocessInstanceId - - an ID which identifies the running process
Exception
public boolean isProcess(Object obj)
throws Exception
isProcess in interface BPMSException
public Object getId(Object process)
throws Exception
getId in interface BPMSException
public Object getState(Object process)
throws Exception
getState in interface BPMSException
public boolean hasEnded(Object process)
throws Exception
hasEnded in interface BPMSException
public Object lookupProcess(Object processId)
throws Exception
lookupProcess in interface BPMSException
public void deployProcess(String processDefinitionFile)
throws IOException
IOException
public void deployProcessFromStream(String resourceName,
InputStream processDefinition)
throws IOException
IOExceptionpublic void completeTask(org.jbpm.api.task.Task task)
public void completeTask(org.jbpm.api.task.Task task,
String outcome,
Map variables)
public org.jbpm.api.ProcessEngine getProcessEngine()
public void setProcessEngine(org.jbpm.api.ProcessEngine processEngine)
public String getConfigurationResource()
public void setConfigurationResource(String configurationResource)
public Properties getProcessDefinitions()
public void setProcessDefinitions(Properties processDefinitions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||