public class Process extends Object implements Initialisable, Disposable, MessageService
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_ABORT |
static String |
ACTION_ADVANCE |
static String |
ACTION_START |
static String |
ACTION_UPDATE |
static String |
BPM_PROPERTY_PREFIX |
protected static Log |
logger |
protected MuleContext |
muleContext |
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 |
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
Process(BPMS bpms,
String name,
String resource,
FlowConstruct flowConstruct,
MuleContext muleContext) |
Process(BPMS bpms,
String name,
String resource,
String processIdField,
FlowConstruct flowConstruct,
MuleContext muleContext) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
MuleMessage |
generateMessage(String endpoint,
Object payload,
Map messageProperties,
MessageExchangePattern exchangePattern) |
BPMS |
getBpms() |
String |
getName() |
String |
getProcessIdField() |
String |
getResource() |
protected Object |
handleEvent(MuleEvent event) |
void |
initialise()
Method used to perform any initialisation work.
|
protected void |
populateProcessVariables(MuleEvent event,
Map processVariables,
PropertyScope propertyScope) |
protected final String processIdField
protected MuleContext muleContext
public static final String BPM_PROPERTY_PREFIX
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
protected static final Log logger
public Process(BPMS bpms, String name, String resource, FlowConstruct flowConstruct, MuleContext muleContext)
public Process(BPMS bpms, String name, String resource, String processIdField, FlowConstruct flowConstruct, MuleContext muleContext)
public void initialise() throws InitialisationException
Initialisable
InitialisationException
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 Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void dispose()
Disposable
dispose
in interface Disposable
protected void populateProcessVariables(MuleEvent event, Map processVariables, PropertyScope propertyScope)
public MuleMessage generateMessage(String endpoint, Object payload, Map messageProperties, MessageExchangePattern exchangePattern) throws MuleException
generateMessage
in interface MessageService
MuleException
public String getProcessIdField()
public BPMS getBpms()
public String getResource()
public String getName()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.