Method Summary |
|
public Activity | activityByKey(String key) Returns the
Activity Activity with the given key.
The OMG interface only defines a
WfProcess.steps method for listing all the activities associated with the process.
While, of course, one could select the activity with a certain key
from that list, this would be rather insufficient.
Parameters: key - the de.danet.an.workflow.omgcore.WfActivity.key key of the process. |
public ActivityLocal | activityByKeyLocal(String key) Returns the
Activity ActivityLocal with the given
key. |
protected WfAuditEvent | activityRequesterInfo(WfRequester req) Retrieve the base event information about a requesting activity.
Parameters: req - the requester. |
public WfAuditEvent | auditEventBase() Returns an audit event object with process relevant information
initialized. |
protected void | closeChannels() Closes all channels. |
public void | copyProcessDefinition(String procDefXpdl) Copy the process definition in xpdl string in this process. |
protected de.danet.an.workflow.localcoreapi.WfActivityLocal | createActivity(String blockActId, Priority priority, String name, String description, StartFinishMode startMode, StartFinishMode finishMode, JoinAndSplitMode joinMode, JoinAndSplitMode splitMode, Implementation[] implementation, String performer, List deadlines, boolean deferChoiceOnSplit, int auditEventSelection, boolean storeAuditEvents) Factory method that create new persistent objects of type
WfActivity . |
protected Long | createActivityKey() Provide a new unique activity key. |
public boolean | deliverChannelMessage(String channel, Map message) Deliver a message on the given channel to a receiver tool
listening on that channel. |
protected TransitionLocal | doCreateTransition(String id, String group, int order, ActivityLocal fromAct, ActivityLocal toAct, int condType, String condition) Create a new transition with given id, from-activity,
to-activity. |
public void | ejbActivate() The activate method is called when the instance is activated from its
"passive" state. |
public Long | ejbCreate(de.danet.an.workflow.api.ProcessDefinition procDef, WfRequester req) Create an process and save it into database. |
public Collection | ejbFindAll() This method looks up all processes. |
public Long | ejbFindByActivityKey(String key) This method looks up a process by the key
de.danet.an.workflow.omgcore.WfActivity.key key of one of its
activities.
Parameters: key - the activity key. |
public Long | ejbFindByPrimaryKey(Long primaryKey) This method looks up a process EJB by its primary key (dbid).
Parameters: primaryKey - the process primary key. |
public Long | ejbFindByProcessKey(String key) This method looks up a process by its
de.danet.an.workflow.omgcore.WfProcess.key key .
Parameters: key - the process key. |
public Collection | ejbFindByProcessMgrName(String processMgrName) This method looks up all the process by its process type.
Parameters: processMgrName - the process type. |
public Collection | ejbFindByProcessTypeAndDataItem(String processMgr, String itemName, String itemValue) Look up all processes of a given type that have a given value
in a particular process data item. |
public Collection | ejbFindByRequesterHash(int hash) This method looks up all processes that have a requester with
the given hash value.
Parameters: hash - the hash value. |
public Collection | ejbFindWithoutDefinitionByProcessMgrName(String processMgrName) This method looks up all processes without a local copy of the
process definition by their process type.
Parameters: processMgrName - the process type. |
public void | ejbLoad() A container invokes this method to synchronize the state of an
enterprise bean instance with the entity object's state in the database. |
public void | ejbPassivate() The passivate method is called before the instance enters the
"passive" state. |
public void | ejbPostCreate(ProcessDefinition procDef, WfRequester req) Create an process and save it into database. |
public void | ejbRemove() A container invokes this method before it ends the life of the session
object. |
public void | ejbStore() A container invokes this method to synchronize the state of the
entity object in the database with the state of the enterprise bean
instancee. |
public void | ejbTimeout(Timer timer) Handle the timeout of a timer. |
public boolean | equals(Object obj) Indicates if some other object is equal to this one. |
protected void | fireAuditEvent(WfAuditEvent evt) Process newly generated event. |
public void | forwardAbandon(Activity activity, ExceptionResult result) Forward the state change to the given activity. |
public void | forwardAbort(Activity activity) Forward the state change to the given activity. |
public Activity.Info | forwardActivityInfo(Activity activity) Forward the request for the activity info to the given
activity. |
public boolean | forwardChoose(Activity activity) Choose the given activity for further processing in deferred choice. |
public void | forwardComplete(Activity activity) Forward the state change to the given activity. |
public void | forwardResult(Activity activity, ProcessData result) Forward the result to the given activity. |
public void | forwardStateChange(Activity activity, State state) Forward the state change to the given activity calling
changeState . |
public void | forwardTerminate(Activity activity) Forward the state change to the given activity. |
protected int | getPaAuditEventSelection() The getter method implementation for the persistent
attribute auditEventSelection . |
protected Map | getPaBlockDeadlines() The getter method implementation for the persistent
attribute blockDeadlines . |
protected Date | getPaCreateTime() The getter method implementation for the persistent
attribute createTime . |
protected boolean | getPaDebug() The getter method implementation for the persistent
attribute debug . |
protected String | getPaDescription() The getter method implementation for the persistent
attribute description . |
protected String | getPaId() The getter method implementation for the persistent
attribute id . |
protected String | getPaKey() The getter method implementation for the persistent
attribute key . |
protected Date | getPaLastStateTime() The getter method implementation for the persistent
attribute lastStateTime . |
protected String | getPaName() The getter method implementation for the persistent
attribute name . |
protected Priority | getPaPriority() The getter method implementation for the persistent
attribute priority . |
protected ProcessData | getPaProcessData() The getter method implementation for the persistent
attribute processData . |
protected ProcessDefinition | getPaProcessDef() The getter method implementation for the persistent attribute
processDef . |
protected String | getPaProcessMgrName() The getter method implementation for the persistent
attribute processMgrName . |
protected String | getPaProcessMgrVersion() The getter method implementation for the persistent
attribute processMgrVersion . |
protected WfRequester | getPaRequester() The getter method implementation for the persistent
attribute requester . |
protected boolean | getPaStoreAuditEvents() The getter method implementation for the persistent
attribute storeAuditEvents . |
protected State | getPaTypedState() The getter method implementation for the persistent
attribute typedState . |
public int | hashCode() |
public Collection | history() Returns a collection of WfAuditEvent s associated with
this process describing its history. |
static List | loadDeadlines(DataSource ds, Long pk) Load the deadlines for the activity with the given primary key
from the given datasource.
This is provided as a static package visible method as it is
used by WfActivityEJB as well. |
public Map | lookForMessage(String channel) Looks for a message on the given channel and if found returns it. |
protected ExtActivityLocal | lookupActivityLocal(String key) Return an arbitrary activity with the given key. |
public WfProcessMgr | manager() Returns the process manager which created this process. |
public Principal | processCreator() Return the Principal that created this process. |
public ProcessDefinitionDirectoryLocal | processDefinitionDirectoryLocal() Return the process definition directory. |
protected void | removeThis() Remove this process. |
public void | setEntityContext(EntityContext context) Set the associated session context. |
public void | setName(String newValue) Set a new name of the process. |
protected void | setPaAuditEventSelection(int newValue) The setter method implementation for the persistent
attribute auditEventSelection . |
protected void | setPaDebug(boolean newDebug) The setter method implementation for the persistent
attribute debug . |
protected void | setPaDescription(String newDescription) The setter method implementation for the persistent
attribute description . |
protected void | setPaId(String newId) The setter method implementation for the persistent
attribute id . |
protected void | setPaLastStateTime(Date newLastStateTime) The setter method implementation for the persistent
attribute lastStateTime . |
protected void | setPaName(String newName) The setter method implementation for the persistent
attribute name . |
protected void | setPaPriority(Priority newPriority) The setter method implementation for the persistent
attribute priority . |
protected void | setPaProcessDef(ProcessDefinition newProcessDef) The setter method implementation for the persistent
attribute processDef . |
protected void | setPaProcessMgrName(String newProcessMgrName) The setter method implementation for the persistent
attribute processMgrName . |
protected void | setPaProcessMgrVersion(String newProcessMgrVersion) The setter method implementation for the persistent
attribute processMgrVersion . |
protected void | setPaStoreAuditEvents(boolean newValue) The setter method implementation for the persistent
attribute storeAuditEvents . |
protected void | setPaTypedState(State newTypedState) The setter method implementation for the persistent
attribute typedState . |
public void | start() Starts a process. |
public void | startTimer(Date due, Serializable info) Start a timer that will call handleTimeout at the
given date with the given info. |
public Collection | steps() Returns a collection of activities of the process. |
public Collection | stepsLocal() Returns a collection of activities of the process. |
public void | stopTimers() Stop all timers that this object has created. |
public void | submitChannelMessage(String channel, Map message) Deliver a message on the given channel to a receiver tool
listening on that channel. |
public Process | toProcess() Return the remote version of this object. |
public ExtProcessLocal | toProcessLocal() |
public void | transitionUpdated(ExtTransitionLocal transition) Notify about the change of a transition. |
public List | transitions() Gets a list of transitions for this process. |
public List | transitionsLocal() Gets a list of transitions for this process. |
public void | unsetEntityContext() Unset the associated session context. |
public static void | updateDeadlines(DataSource ds, Connection con, Long pk, Long ak, List dls, boolean doDelete) Updates the deadlines for the activity with the given primary key
using the given connection.
This is provided as a static package visible method as it is
used by WfActivityEJB as well. |