|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessEnvironment
Provides environment context and services to the processes involved in a workflow enaction.
It also provides control and monitoring operations for the enaction user.
Method Summary | |
---|---|
void |
addListenersFor(java.net.URI id,
POMListener... listeners)
Adds one or more listeners to a given process. |
void |
clearListeners()
Clears all listeners registered in this environment instance. |
void |
clearListenersFor(java.net.URI id)
Clears all listeners registered for a given Process in this environment instance. |
java.io.Serializable |
getAttribute(java.lang.String name)
Gets an environment attribute value. |
java.util.Map<java.lang.String,java.io.Serializable> |
getAttributes()
Gets a map containing all attributes. |
ProcessDiscoverer |
getDiscovererFor(java.net.URI id)
Gets a discoverer for the specified process id. |
java.util.List<ProcessDiscoverer> |
getDiscoverers()
Gets the discoverer instances registered in this environment. |
java.util.Collection<POMListener> |
getListenersFor(java.net.URI id)
Gets a collection of listeners to be attached to the given Process id. |
Prioritiser |
getPrioritiserFor(java.net.URI id)
Gets a prioritiser for the specified process id. |
java.util.List<Prioritiser> |
getPrioritisers()
Gets the prioritiser instances. |
ProcessSelector |
getSelectorFor(java.net.URI id)
Gets a selector for the specified process id. |
java.util.List<ProcessSelector> |
getSelectors()
Gets the selector instances registered in this environment. |
STSModule |
getSTSModule()
Gets the security module. |
void |
removeListenersFrom(java.net.URI id,
POMListener... listeners)
Removes one or more listeners from the attachment map. |
void |
setAttribute(java.lang.String name,
java.io.Serializable value)
Sets an environment attribute value. |
void |
setComponentFor(java.net.URI id,
java.lang.Object obj)
Registers an arbitrary object in any collection it fits in. |
void |
setDefaultDiscoverer(ProcessDiscoverer discoverer)
Sets the discoverer instance associated to all processes without an explicit one. |
void |
setDefaultPrioritiser(Prioritiser prioritiser)
Sets the prioritiser instance associated to all processes without an explicit one. |
void |
setDefaultSelector(ProcessSelector selector)
Sets the selector instance associated to all processes without an explicit one. |
void |
setDiscovererFor(java.net.URI id,
ProcessDiscoverer discoverer)
Sets the discoverer associated to a given URI. |
void |
setPrioritiser(java.net.URI id,
Prioritiser prioritiser)
Sets the prioritiser associated to a given URI. |
void |
setSelectorFor(java.net.URI id,
ProcessSelector selector)
Sets the selector associated to a given URI. |
void |
setSTSModule(STSModule stsmod)
Sets the security module implementation. |
Method Detail |
---|
java.util.List<ProcessDiscoverer> getDiscoverers()
ProcessDiscoverer getDiscovererFor(java.net.URI id) throws DiscoveryException
The selection of the appropriate instance is up to the implementation.
id
- A process id
DiscoveryException
- If an error occurs selecting a discoverervoid setDiscovererFor(java.net.URI id, ProcessDiscoverer discoverer)
id
- A process iddiscoverer
- A discoverer instancevoid setDefaultDiscoverer(ProcessDiscoverer discoverer)
discoverer
- A discoverer instancejava.util.List<Prioritiser> getPrioritisers()
Prioritiser getPrioritiserFor(java.net.URI id)
The selection of the appropriate instance is up to the implementation.
id
- A process id
void setPrioritiser(java.net.URI id, Prioritiser prioritiser)
id
- A process idprioritiser
- A prioritiser instancevoid setDefaultPrioritiser(Prioritiser prioritiser)
prioritiser
- A prioritiser instancejava.util.List<ProcessSelector> getSelectors()
ProcessSelector getSelectorFor(java.net.URI id)
The selection of the appropriate instance is up to the implementation.
id
- A process id
void setSelectorFor(java.net.URI id, ProcessSelector selector)
id
- A process idselector
- A selector instancevoid setDefaultSelector(ProcessSelector selector)
selector
- A selector instanceSTSModule getSTSModule()
The security token service client module implementation.
void setSTSModule(STSModule stsmod)
stsmod
- A STS module instancevoid addListenersFor(java.net.URI id, POMListener... listeners)
id
- The id of the Process to attach these listeners tolisteners
- The listeners to attachjava.util.Collection<POMListener> getListenersFor(java.net.URI id)
id
- The id of the Process
void removeListenersFrom(java.net.URI id, POMListener... listeners)
id
- The id of the Process to detach these listeners fromlisteners
- The listeners to detachvoid clearListeners()
void clearListenersFor(java.net.URI id)
id
- The id of the Processvoid setComponentFor(java.net.URI id, java.lang.Object obj)
If the object does not implement any relevant interface, nothing should be done. In particular, exceptions should never be thrown.
id
- The Process URI to associate the component toobj
- Componentjava.io.Serializable getAttribute(java.lang.String name)
name
- Attribute name
void setAttribute(java.lang.String name, java.io.Serializable value)
name
- Attribute namevalue
- Attribute valuejava.util.Map<java.lang.String,java.io.Serializable> getAttributes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |