|
Novell exteNd Director 5.0 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The delegate interface needed for access to the work queue
Field Summary | |
static int |
QUEUE_STATUS_RUNNING
Constant to be used when setting queue status to running. |
static int |
QUEUE_STATUS_SHUTDOWN
Constant to be used when setting queue status to shudown. |
static int |
QUEUE_STATUS_SUSPENDED
Constant to be used when setting queue status to suspended. |
Fields inherited from interface com.sssw.fw.api.EbiDelegate |
SERVICE_LOCAL,
SERVICE_REMOTE |
Method Summary | |
void |
forward(EbiWorkitemDelegate delegate)
Forwards a workitem to the next activity. |
void |
forward(EbiWorkitemDelegate delegate,
EbiContext context)
Forwards a workitem to the next activity. |
void |
forward(String workitemId)
Forwards a workitem to the next activity. |
EbiWorkitemDelegate |
getNextWorkitem(EbiContext context)
Gets the next workitem. |
EbiWorkitemDelegate |
getNextWorkitem(String activity)
Deprecated. This method is applicable only for Director 4.x java activities migrated to 5.0. Use getNextWorkitem( Ebicontext ) as the alternative for all newly created java activities starting in 5.0 and later. |
int |
getQueueStatus()
Gets the queue status |
EbiWorkitemDelegate |
getWorkitem(String workitemId)
Gets a workitem by workitem id. |
EbiWorkitemDelegate |
getWorkitem(String workitemId,
EbiContext context)
Gets a workitem by workitem id. |
org.w3c.dom.Document |
getWorklist(EbiContext context)
Gets a queued workitem list for a 'non-automatic' activity. |
org.w3c.dom.Document |
getWorklist(EbiContext context,
boolean excludeClaimedWorkitems,
boolean excludedUnclaimedWorkitems)
Gets a queued workitem list for the user or role in the context, optionally excluding all the claimed workitems or unclaimed workitems. |
org.w3c.dom.Document |
getWorklist(String activity)
Deprecated. This method is not applicable for automatic activities that implement EbiJavaActivity. |
org.w3c.dom.Document |
getWorklist(String[] addressee,
String name,
Integer priority,
boolean ignoreSuspendedActivities)
Gets a worklist based on customized parameters. |
void |
reassignWorkitem(String workitemId,
String newAddressee,
EbiContext context)
Reassign a workitem to a new user. |
void |
removeWorkitem(String workitemId,
boolean terminateActivity)
Removes a workitem from the queue. |
void |
setQueueStatus(int status)
Deprecated. This is no longer the way to perform operations on the Queue's status. Individual functions are now provided for the user to perform the disired operation. Use startQueue() , or
shutdownQueue() , or
suspendQueue() when appropriate. |
void |
shutdownQueue()
Shutdown the queue. |
void |
startQueue()
Start the queue. |
void |
suspendQueue()
Suspend the queue. |
Methods implemented from interface com.sssw.fw.api.EbiDelegate |
getName |
Field Detail |
public static final int QUEUE_STATUS_RUNNING
setQueueStatus()
public static final int QUEUE_STATUS_SUSPENDED
setQueueStatus()
public static final int QUEUE_STATUS_SHUTDOWN
setQueueStatus()
Method Detail |
public EbiWorkitemDelegate getWorkitem(String workitemId) throws EboWorkitemException
workitemId
- The id of the workitem desired.EbiWorkitemDelegate
public EbiWorkitemDelegate getWorkitem(String workitemId, EbiContext context) throws EboWorkitemException, EboQueueException
workitemId
- The id of the workitem desired.context
- The context for the current activity/user.EbiWorkitemDelegate
,
EbiContext
public EbiWorkitemDelegate getNextWorkitem(EbiContext context)
context
- The context of the current user/activity.EbiWorkitemDelegate
public EbiWorkitemDelegate getNextWorkitem(String activity)
activity
- The current activity class name. To get the class name
of the activity, call this.getClass().getName().EbiWorkitemDelegate
public void forward(String workitemId) throws EboWorkitemException
workitemId
- The id of the workitem to forward.public void forward(EbiWorkitemDelegate delegate)
delegate
- The workitem to forward.EbiWorkitemDelegate
public void forward(EbiWorkitemDelegate delegate, EbiContext context)
delegate
- The workitem to forward.context
- The requestor's context.EbiWorkitemDelegate
public org.w3c.dom.Document getWorklist(String activity) throws EboWorkitemException
activity
- classname of the user implementation of EbiActivity.public org.w3c.dom.Document getWorklist(EbiContext context) throws EboWorkitemException
context
- The context for the current user/activity.public org.w3c.dom.Document getWorklist(EbiContext context, boolean excludeClaimedWorkitems, boolean excludedUnclaimedWorkitems) throws EboWorkitemException
context
- The context for the current user/activity.excludeClaimedWorkitems
- If true, will get only unclaimed workitems.excludeUnclaimedWorkitems
- If true, will get only claimed workitems.public org.w3c.dom.Document getWorklist(String[] addressee, String name, Integer priority, boolean ignoreSuspendedActivities) throws EboWorkitemException
addressee
- An array of addressees to lookup. Optionalname
- The name of the workitem. Optionalpriority
- The priority of the workitem to lookup. OptionalignoreSuspendedActivities
- Whether or not to include suspended activities in the result set.public void setQueueStatus(int status) throws EboQueueException
startQueue()
, or
shutdownQueue()
, or
suspendQueue()
when appropriate.
status
- The status to set the queue to.public void startQueue() throws EboQueueException
public void suspendQueue() throws EboQueueException
public void shutdownQueue() throws EboQueueException
public int getQueueStatus() throws EboQueueException
public void removeWorkitem(String workitemId, boolean terminateActivity) throws EboQueueException
workitemId
- The workitem id to be removed.terminateActivity
- If the activity is 'automatic', the terminate method will be fired.public void reassignWorkitem(String workitemId, String newAddressee, EbiContext context) throws EboQueueException
workitemId
- The workitem id to be removed.newAddressee
- The new addresse who the worktiem will be assigned to.EbiContext
- The context for the current queue.
|
Novell exteNd Director 5.0 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |