| java.lang.Object de.danet.an.workflow.ejbs.admin.ActivityFinder
Method Summary | |
public boolean | equals(Object obj) Two ActivityFinder s are equal if the installation ids
are identical.
Parameters: obj - the object to compare with. | public WfActivity | find(String actId) Return the activity that is associated with the given id.
As activity ids in this implementation are unique not only
with respect to the containing process but within the complete
workflow engine, the implementation is rather simple.
Parameters: actId - the activity id (unique in the scope of thisActivityFinder . | public int | hashCode() The hash code is the hash code of the installation id. | public String | toString() For debugging purposes only. |
serialVersionUID | final static long serialVersionUID(Code) | | Serial version UID.
|
ActivityFinder | public ActivityFinder(String confHome)(Code) | | Construct a new ActivityFinder . This
implementation of ActivityFinder relies on the
de.danet.an.workflow.api.Configuration configuration EJB . It stores this entity EJB's handle as attribute
and uses the
de.danet.an.workflow.ejbs.admin.Configuration.findActivityfindActivity method to restore an activity in
ActivityFinder.find find . We "abuse" the configuration EJB
for this purpose as it provides an ever lasting object.
Parameters: confHome - the JNDI name (usuallyjava:comp/env/ejb/Configuration ) used to lookup theconfiguration EJB. Passing the name as parameter is not so muchmotivated by the desire for flexibility, it will rarely be anythingbut java:comp/env/ejb/Configuration . It should, however,remind the user of this constructor that an appropriate entryhas to be made in the ejb-jar.xml . |
equals | public boolean equals(Object obj)(Code) | | Two ActivityFinder s are equal if the installation ids
are identical.
Parameters: obj - the object to compare with. true if the objects are equal. |
find | public WfActivity find(String actId) throws NoSuchActivityException, RemoteException(Code) | | Return the activity that is associated with the given id.
As activity ids in this implementation are unique not only
with respect to the containing process but within the complete
workflow engine, the implementation is rather simple.
Parameters: actId - the activity id (unique in the scope of thisActivityFinder . the WfActivity found. throws: NoSuchActivityException - if no activity with the givenactId can be found. throws: RemoteException - if a system-level error occurs. |
hashCode | public int hashCode()(Code) | | The hash code is the hash code of the installation id.
the hash code. |
toString | public String toString()(Code) | | For debugging purposes only.
a string representation |
|
|