|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.AbstractConnector
org.mule.transport.bpm.ProcessConnector
public class ProcessConnector
The BPM provider allows Mule events to initiate and/or advance processes in an external or embedded Business Process Management System (BPMS). It also allows executing processes to generate Mule events.
| Field Summary | |
|---|---|
static String |
ACTION_ABORT
|
static String |
ACTION_ADVANCE
|
static String |
ACTION_START
|
static String |
ACTION_UPDATE
|
protected boolean |
allowGlobalDispatcher
If false, any message generated by the process is routed from the service on which it is received. |
protected boolean |
allowGlobalReceiver
The global receiver allows an endpoint of type "bpm://*" to receive any incoming message to the BPMS, regardless of the process. |
static String |
BPM
|
protected BPMS |
bpms
The underlying BPMS |
static String |
GLOBAL_RECEIVER
|
static String |
PROCESS_VARIABLE_DATA
|
static String |
PROCESS_VARIABLE_INCOMING
|
static String |
PROCESS_VARIABLE_INCOMING_SOURCE
|
protected String |
processIdField
This field will be used to correlate messages with processes. |
static String |
PROPERTY_ACTION
|
static String |
PROPERTY_ENDPOINT
|
static String |
PROPERTY_PROCESS_ID
|
static String |
PROPERTY_PROCESS_STARTED
|
static String |
PROPERTY_PROCESS_TYPE
|
static String |
PROPERTY_TRANSITION
|
| Fields inherited from class org.mule.transport.AbstractConnector |
|---|
connected, connecting, connectionStrategy, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, muleContext, name, numberOfConcurrentTransactedReceivers, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect |
| Fields inherited from interface org.mule.api.transport.Connector |
|---|
INT_VALUE_NOT_SET |
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Startable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Stoppable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
ProcessConnector()
|
|
| Method Summary | |
|---|---|
protected void |
doConnect()
|
protected void |
doDisconnect()
|
protected void |
doDispose()
|
protected void |
doInitialise()
|
protected void |
doStart()
|
protected void |
doStop()
|
org.mule.api.MuleMessage |
generateMessage(String endpoint,
Object payloadObject,
Map messageProperties,
boolean synchronous)
|
BPMS |
getBpms()
|
org.mule.extras.client.MuleClient |
getMuleClient()
|
String |
getProcessIdField()
|
String |
getProtocol()
|
boolean |
isAllowGlobalDispatcher()
|
boolean |
isAllowGlobalReceiver()
|
ProcessMessageReceiver |
lookupReceiver(String processName,
Object processId)
This method looks for a receiver based on the process name and ID. |
void |
setAllowGlobalDispatcher(boolean allowGlobalDispatcher)
|
void |
setAllowGlobalReceiver(boolean allowGlobalReceiver)
|
void |
setBpms(BPMS bpms)
|
void |
setProcessIdField(String processIdField)
|
String |
toUrl(String processName,
Object processId)
Generate a URL based on the process name and ID such as "bpm://myProcess/2342" If the parameters are missing, and allowGlobalReceiver is true,
the GLOBAL_RECEIVER is returned. |
| Methods inherited from class org.mule.transport.AbstractConnector |
|---|
checkDisposed, connect, createReceiver, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeRequesters, disposeWorkManagers, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMaxRequestersActive, getMessageAdapter, getMuleContext, getName, getNumberOfConcurrentTransactedReceivers, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isRemoteSyncEnabled, isStarted, isSyncEnabled, lookupReceiver, registerListener, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, send, setConnectionStrategy, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherThreadingProfile, setDynamicNotification, setExceptionListener, setMaxDispatchersActive, setMaxRequestersActive, setMuleContext, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterThreadingProfile, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, start, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, workAccepted, workCompleted, workRejected, workStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected BPMS bpms
protected String processIdField
protected boolean allowGlobalReceiver
protected boolean allowGlobalDispatcher
public static final String PROPERTY_ENDPOINT
public static final String PROPERTY_PROCESS_TYPE
public static final String PROPERTY_PROCESS_ID
public static final String PROPERTY_ACTION
public static final String PROPERTY_TRANSITION
public static final String PROPERTY_PROCESS_STARTED
public static final String ACTION_START
public static final String ACTION_ADVANCE
public static final String ACTION_UPDATE
public static final String ACTION_ABORT
public static final String PROCESS_VARIABLE_INCOMING
public static final String PROCESS_VARIABLE_INCOMING_SOURCE
public static final String PROCESS_VARIABLE_DATA
public static final String BPM
public static final String GLOBAL_RECEIVER
| Constructor Detail |
|---|
public ProcessConnector()
| Method Detail |
|---|
public String getProtocol()
getProtocol in interface org.mule.api.transport.Connector
protected void doInitialise()
throws org.mule.api.lifecycle.InitialisationException
doInitialise in class org.mule.transport.AbstractConnectororg.mule.api.lifecycle.InitialisationExceptionprotected void doDispose()
doDispose in class org.mule.transport.AbstractConnector
protected void doConnect()
throws Exception
doConnect in class org.mule.transport.AbstractConnectorException
protected void doDisconnect()
throws Exception
doDisconnect in class org.mule.transport.AbstractConnectorException
protected void doStart()
throws org.mule.api.MuleException
doStart in class org.mule.transport.AbstractConnectororg.mule.api.MuleException
protected void doStop()
throws org.mule.api.MuleException
doStop in class org.mule.transport.AbstractConnectororg.mule.api.MuleException
public ProcessMessageReceiver lookupReceiver(String processName,
Object processId)
public String toUrl(String processName,
Object processId)
allowGlobalReceiver is true,
the GLOBAL_RECEIVER is returned.
public org.mule.api.MuleMessage generateMessage(String endpoint,
Object payloadObject,
Map messageProperties,
boolean synchronous)
throws Exception
generateMessage in interface MessageServiceExceptionpublic BPMS getBpms()
public void setBpms(BPMS bpms)
public org.mule.extras.client.MuleClient getMuleClient()
public boolean isAllowGlobalDispatcher()
public void setAllowGlobalDispatcher(boolean allowGlobalDispatcher)
public boolean isAllowGlobalReceiver()
public void setAllowGlobalReceiver(boolean allowGlobalReceiver)
public String getProcessIdField()
public void setProcessIdField(String processIdField)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||