org.mule.transport.bpm
Class ProcessConnector
java.lang.Object
org.mule.transport.AbstractConnector
org.mule.transport.bpm.ProcessConnector
- All Implemented Interfaces:
- ExceptionListener, EventListener, javax.resource.spi.work.WorkListener, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NamedObject, Connectable, Connector, MessageService
public class ProcessConnector
- extends AbstractConnector
- implements MessageService
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.
| 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 |
| 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 |
bpms
protected BPMS bpms
- The underlying BPMS
processIdField
protected String processIdField
- This field will be used to correlate messages with processes.
allowGlobalReceiver
protected boolean allowGlobalReceiver
- The global receiver allows an endpoint of type "bpm://*" to receive any
incoming message to the BPMS, regardless of the process. If this is false, the
process name must be specified for each endpoint, e.g. "bpm://MyProcess" will
only receive messages for the process "MyProcess".
allowGlobalDispatcher
protected boolean allowGlobalDispatcher
- If false, any message generated by the process is routed from the service on
which it is received. If true, a process can send messages to any endpoint
on any service.
PROPERTY_ENDPOINT
public static final String PROPERTY_ENDPOINT
- See Also:
- Constant Field Values
PROPERTY_PROCESS_TYPE
public static final String PROPERTY_PROCESS_TYPE
- See Also:
- Constant Field Values
PROPERTY_PROCESS_ID
public static final String PROPERTY_PROCESS_ID
- See Also:
- Constant Field Values
PROPERTY_ACTION
public static final String PROPERTY_ACTION
- See Also:
- Constant Field Values
PROPERTY_TRANSITION
public static final String PROPERTY_TRANSITION
- See Also:
- Constant Field Values
PROPERTY_PROCESS_STARTED
public static final String PROPERTY_PROCESS_STARTED
- See Also:
- Constant Field Values
ACTION_START
public static final String ACTION_START
- See Also:
- Constant Field Values
ACTION_ADVANCE
public static final String ACTION_ADVANCE
- See Also:
- Constant Field Values
ACTION_UPDATE
public static final String ACTION_UPDATE
- See Also:
- Constant Field Values
ACTION_ABORT
public static final String ACTION_ABORT
- See Also:
- Constant Field Values
PROCESS_VARIABLE_INCOMING
public static final String PROCESS_VARIABLE_INCOMING
- See Also:
- Constant Field Values
PROCESS_VARIABLE_INCOMING_SOURCE
public static final String PROCESS_VARIABLE_INCOMING_SOURCE
- See Also:
- Constant Field Values
PROCESS_VARIABLE_DATA
public static final String PROCESS_VARIABLE_DATA
- See Also:
- Constant Field Values
BPM
public static final String BPM
- See Also:
- Constant Field Values
GLOBAL_RECEIVER
public static final String GLOBAL_RECEIVER
- See Also:
- Constant Field Values
ProcessConnector
public ProcessConnector()
getProtocol
public String getProtocol()
- Specified by:
getProtocol in interface Connector
doInitialise
protected void doInitialise()
throws InitialisationException
- Specified by:
doInitialise in class AbstractConnector
- Throws:
InitialisationException
doDispose
protected void doDispose()
- Specified by:
doDispose in class AbstractConnector
doConnect
protected void doConnect()
throws Exception
- Specified by:
doConnect in class AbstractConnector
- Throws:
Exception
doDisconnect
protected void doDisconnect()
throws Exception
- Specified by:
doDisconnect in class AbstractConnector
- Throws:
Exception
doStart
protected void doStart()
throws MuleException
- Specified by:
doStart in class AbstractConnector
- Throws:
MuleException
doStop
protected void doStop()
throws MuleException
- Specified by:
doStop in class AbstractConnector
- Throws:
MuleException
lookupReceiver
public ProcessMessageReceiver lookupReceiver(String processName,
Object processId)
- This method looks for a receiver based on the process name and ID. It searches
iteratively from the narrowest scope (match process name and ID) to the widest
scope (match neither - global receiver) possible.
- Returns:
- ProcessMessageReceiver or null if no match is found
toUrl
public 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.
generateMessage
public MuleMessage generateMessage(String endpoint,
Object payloadObject,
Map messageProperties,
boolean synchronous)
throws Exception
- Specified by:
generateMessage in interface MessageService
- Throws:
Exception
getBpms
public BPMS getBpms()
setBpms
public void setBpms(BPMS bpms)
getMuleClient
public MuleClient getMuleClient()
isAllowGlobalDispatcher
public boolean isAllowGlobalDispatcher()
setAllowGlobalDispatcher
public void setAllowGlobalDispatcher(boolean allowGlobalDispatcher)
isAllowGlobalReceiver
public boolean isAllowGlobalReceiver()
setAllowGlobalReceiver
public void setAllowGlobalReceiver(boolean allowGlobalReceiver)
getProcessIdField
public String getProcessIdField()
setProcessIdField
public void setProcessIdField(String processIdField)
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.