|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Context
Context interface defines all the methods that process runtime needs to interact with process flow context.
Method Summary | |
---|---|
void |
addToExecutionPath(java.lang.Object obj)
Adds an object to current transaction execution path |
void |
clear()
Removes all mappings from context map |
boolean |
containsKey(java.lang.Object key)
Method to check mapping for the specified key in context map |
boolean |
containsValue(java.lang.Object value)
Returns true if context map maps one or more keys to the specified value |
void |
createSignal(java.lang.String signal)
Method to create signal for asynchronous activity with signal name as param |
java.util.Set |
entrySet()
Method to return a set view of the mappings contained in this context map |
java.lang.Object |
get(java.lang.Object key)
Returns the value to which context map maps the specified key |
java.lang.Object |
getActivityParameter(java.lang.String activityName,
java.lang.String parameterName)
Get an activity parameter from the context. |
java.util.ArrayList |
getExecutionPath()
Sets execution path for current transaction |
java.util.Map |
getMap()
Returns context map |
com.adeptia.indigo.system.ObjectAddress |
getObjectAddress()
Method to get object address of current transaction context in format serverName://objectName |
com.adeptia.indigo.system.ObjectAddress |
getParentContextAddress()
Gets object address for parent transaction context |
com.adeptia.indigo.system.ObjectAddress |
getServiceAddress(java.lang.String name)
Gets object address of service used in the transaction. |
java.util.Map |
getServiceAddressMap()
Reurns service address map for current transaction |
boolean |
isEmpty()
Returns true if context map contains no key-value mappings. |
java.util.Set |
keySet()
Method to return a set view of the keys contained in this map |
java.util.Map |
obtainSignals()
Returns a map view for all signals present in current transaction context |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key in context map |
void |
putAll(java.util.Map t)
Copies all of the mappings from the specified map to context map |
void |
raiseSignal(java.lang.String signal)
Method to raise signal for asynchronous activity with signal name as param |
java.lang.Object |
remove(java.lang.Object key)
Removes the mapping for this key from context map if it is present |
void |
setActivityParameter(java.lang.String activityName,
java.lang.String parameterName,
java.lang.Object parameterValue)
Set a activity parameter in activity params map |
void |
setExecutionPath(java.util.ArrayList executionPath)
Sets execution path for current transaction |
void |
setObjectAddress(com.adeptia.indigo.system.ObjectAddress address)
Method to set object address of current transaction context in format serverName://objectName |
void |
setParentContextAddress(com.adeptia.indigo.system.ObjectAddress objectAddress)
Sets object address for parent transaction context |
void |
setServiceAddress(java.lang.String name,
com.adeptia.indigo.system.ObjectAddress objAddress)
Sets object address of service used in transaction. |
void |
setServiceAddressMap(java.util.Map serviceAddress)
Sets service address map for current transaction |
int |
size()
Returns the number of key-value mappings in context map |
boolean |
syncCompleted(java.lang.String signal)
Returns true if given signal has been raised |
java.util.Collection |
values()
Returns a collection view of the values contained in context map. |
Method Detail |
---|
com.adeptia.indigo.system.ObjectAddress getObjectAddress()
void setObjectAddress(com.adeptia.indigo.system.ObjectAddress address)
address
- object address in format serverName://objectNameboolean containsKey(java.lang.Object key)
key
- key whose presence in context map is to be tested.
boolean containsValue(java.lang.Object value)
value
- value whose presence in context map is to be tested.
java.util.Set entrySet()
boolean isEmpty()
java.util.Set keySet()
void putAll(java.util.Map t)
t
- Mappings to be stored in context map.java.lang.Object remove(java.lang.Object key)
key
- key whose mapping is to be removed from the map
int size()
java.util.Collection values()
void clear()
java.lang.Object get(java.lang.Object key)
key
- key whose associated value is to be returned.
java.lang.Object put(java.lang.Object key, java.lang.Object value)
key
- key with which the specified value is to be associatedvalue
- value to be associated with the specified key
void setActivityParameter(java.lang.String activityName, java.lang.String parameterName, java.lang.Object parameterValue)
activityName
- parameterName
- parameterValue
- java.lang.Object getActivityParameter(java.lang.String activityName, java.lang.String parameterName)
activityName
- parameterName
-
void createSignal(java.lang.String signal)
void raiseSignal(java.lang.String signal) throws com.adeptia.indigo.utils.IndigoException
com.adeptia.indigo.utils.IndigoException
boolean syncCompleted(java.lang.String signal) throws com.adeptia.indigo.utils.IndigoException
signal
- signal to be check
com.adeptia.indigo.utils.IndigoException
java.util.Map obtainSignals()
void setParentContextAddress(com.adeptia.indigo.system.ObjectAddress objectAddress)
object
- address in format serverName://objectNamecom.adeptia.indigo.system.ObjectAddress getParentContextAddress()
java.util.Map getMap()
java.util.ArrayList getExecutionPath()
void addToExecutionPath(java.lang.Object obj)
obj
- object to be added to execution pathvoid setExecutionPath(java.util.ArrayList executionPath)
executionPath
- executionPath to be setcom.adeptia.indigo.system.ObjectAddress getServiceAddress(java.lang.String name)
void setServiceAddress(java.lang.String name, com.adeptia.indigo.system.ObjectAddress objAddress)
name
- service name used in transactionobjAddress
- object address of service used in transactionjava.util.Map getServiceAddressMap()
void setServiceAddressMap(java.util.Map serviceAddress)
serviceAddress
- service address map to be set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |