|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WorkflowService provides client invokable methods to workflow services.
These methods are executed on the server side.
Supported API: false
Extendable: false
Method Summary | |
void |
acceptAssignment(WorkItem workItem,
WTUser user)
Supported API: false |
void |
checkoutTo(WTObject object,
WTPrincipalReference pRef,
Role role,
ActorRole actorRole,
ObjectReference activityRef)
checkout a business object to a principal. |
void |
createOverdueWorkItem(WfExecutionObject exec_obj)
Creates a work item corresponding to the actions to be taken on an overdue execution object. |
WTTableModel |
createTableModel(String loadAction)
This method is used to construct a worklist on the server and return it to the client. |
WTTableModel |
createTableModel(String loadAction,
Vector groupBy,
Vector sortBy)
This method is used to construct a worklist on the server and return it to the client. |
WTTableModel |
createTableModel(String loadAction,
Vector groupBy,
Vector sortBy,
WTObject contextObject)
This method is used to construct a worklist on the server and return it to the client. |
WfWorkListModel |
createWorkListModel(String loadAction)
This method is used to construct a worklist on the server and return it to the client. |
WfWorkListModel |
createWorkListModel(String loadAction,
Vector groupBy,
Vector sortBy)
This method is used to construct a worklist on the server and return it to the client. |
void |
delegate(WorkItem workItem,
WTPrincipal principal)
Delegate a work item to a new owner Supported API: false |
void |
doDynamicUpdate(TeamReference team)
Causes the workflow process instances using this team to re-resolve their actors and roles. |
void |
doDynamicUpdate(WfProcess process)
Causes the workflow process instance passed in to re-resolve actors and roles from its associated Team. |
Vector |
getAssignees(WfAssignedActivity activity)
Answer a vector of principals assigned to the activity Supported API: false |
QueryResult |
getUncompletedWorkItems()
Answer an enumeration of all pending work items for all users Supported API: false |
QueryResult |
getUncompletedWorkItems(Integer query_limit,
String sort_by_str)
Answer an enumeration of all pending work items for all users, sorted and only the first nnn number of workitems returned. |
QueryResult |
getUncompletedWorkItems(Persistable object,
Role role)
Get pending work by object & role Supported API: false |
QueryResult |
getUncompletedWorkItems(Persistable object,
String task)
Get incomplete work items by object & task Supported API: false |
QueryResult |
getUncompletedWorkItems(Project2 context)
Deprecated. use instead getUncompletedWorkItems (WTContainerRef.newWTContainerRef (project)) |
QueryResult |
getUncompletedWorkItems(WTContainerRef context_ref)
Answer an enumeration of incomplete work items for a project Supported API: false |
QueryResult |
getUncompletedWorkItems(WTPrincipal principal)
Answer an enumeration of incomplete work items for a principal Supported API: false |
QueryResult |
getUncompletedWorkItems(WTPrincipal principal,
Integer query_limit,
String sort_by_str)
Answer an enumeration of incomplete work items for a principal, sorted and only the first nnn number of workitems returned. |
QueryResult |
getUncompletedWorkItems(WTPrincipal principal,
Project2 context)
Deprecated. use instead getUncompletedWorkItems (WTUser, WTContainerRef.newWTContainerRef (project)) |
QueryResult |
getUncompletedWorkItems(WTPrincipal principal,
WTContainerRef context_ref)
Answer an enumeration of incomplete work items for a principal within a project Supported API: false |
QueryResult |
getUncompletedWorkItems(WTPrincipal principal,
WTContainerRef context_ref,
Integer query_limit,
String sort_by_str)
Answer an enumeration of incomplete work items for a principal within a WTContainer, sorted and only the first nnn number of workitems returned. |
QueryResult |
getWorkItems()
Answer an enumeration of all pending work items for all users Supported API: false |
QueryResult |
getWorkItems(Persistable object)
Answer an enumeration of work items for an object Supported API: false |
QueryResult |
getWorkItems(Persistable object,
Role role)
Get work by object & role Supported API: false |
QueryResult |
getWorkItems(Persistable object,
String source)
Answer an enumeration of work items for an object & source Supported API: false |
QueryResult |
getWorkItems(Persistable object,
WTPrincipal principal)
Get work by object & principa Supported API: false |
QueryResult |
getWorkItems(Persistable object,
WTPrincipal principal,
Role role)
Get work by object & principal & role Supported API: false |
QueryResult |
getWorkItems(Persistable object,
WTPrincipal principal,
String task)
Get work by object & principal & task Supported API: false |
QueryResult |
getWorkItems(String source)
Answer an enumeration of work items created by a specific source Supported API: false |
QueryResult |
getWorkItems(WTPrincipal principal)
Answer an enumeration of work items for a principal Supported API: false |
QueryResult |
getWorkItems(WTPrincipal principal,
Role role)
Answer an enumeration of work items for a principal for a specific role Supported API: false |
boolean |
isOffered(WorkItem workItem)
This is the method that indicates whether a WorkItem is offered and capable of being Accepted. |
void |
markWorkItemComplete(Persistable object,
WTPrincipal completedBy,
Role role)
Mark the work item defined by user, object & role as complete. |
void |
markWorkItemComplete(Persistable object,
WTPrincipal completedBy,
String task)
Mark the work item defined by user, object & task as complete. |
void |
markWorkItemComplete(WorkItem workItem,
WTPrincipalReference completedBy)
Deprecated. Since R2 Mark the work item complete. |
void |
markWorkItemIncomplete(Persistable object,
WTPrincipal completedBy,
Role role)
Mark the work item defined by user, object & role as NOT complete. |
void |
reassignActivity(WfAssignedActivity activity)
Reassigns activity to principal referred to by special activity variable. |
void |
reassignActivity(WfAssignedActivity activity,
WTPrincipal principal)
Reassigns activity to principal referred to principal passed as parameter. |
String |
replaceVariables(String txt,
ProcessData variables)
Utility method that replaces values for variables whenever they occur. |
void |
sendNotification(String subject,
String msgBody,
Vector recipients,
Vector roles,
Vector actorRoles,
Vector projects,
Vector variables,
ObjectReference activityReference)
sendNotification resolves the principals and sends notification
to them. |
void |
sendNotification(String msgBody,
Vector recipients,
Vector roles,
Vector actorRoles,
ObjectReference activityReference)
send email to a recipient list Supported API: false |
boolean |
tally(WfAssignedActivity self,
WfTallyType policy,
String operator,
int value,
String event)
This is the tally method that is called from the Custom Routing Event/...Event Firing Expression. |
void |
workComplete(ObjectReference workItemRef,
WTPrincipalReference principalRef,
Vector eventList)
Declare a workItem complete and transmit the event(s) to trigger. |
void |
workComplete(WorkItem workItem,
WTPrincipalReference principalRef,
Vector eventList)
Declare a workItem complete and transmit the event(s) to trigger. |
Method Detail |
public QueryResult getWorkItems(WTPrincipal principal) throws WTException, WfException
principal
- the assigned-to WTPrincipal used as search criteria
WTException
WfException
public QueryResult getUncompletedWorkItems(WTPrincipal principal) throws WTException, WfException
principal
- the assigned-to WTPrincipal used as search criteria
WTException
WfException
public QueryResult getWorkItems(WTPrincipal principal, Role role) throws WTException, WfException
principal
- the assigned-to WTPrincipal used as search criteriarole
- the Role object used as search criteria
WTException
WfException
public QueryResult getWorkItems(String source) throws WTException, WfException
source
- the name of the process (theLifeCycleTemplate) that created the WorkItem used as a search criteria
WTException
WfException
public QueryResult getWorkItems(Persistable object) throws WTException, WfException
object
- the persistable lifecyclemanaged object that is used as the search criteria
WTException
WfException
public QueryResult getWorkItems(Persistable object, String source) throws WTException, WfException
object
- the persistable lifecyclemanaged object that is used as the search criteriasource
- the name of the process (the LifeCycleTemplate name) that caused the work item to be created used as search criteria
WTException
WfException
public QueryResult getWorkItems(Persistable object, WTPrincipal principal, Role role) throws WTException, WfException
object
- the persistable lifecyclemanaged object that is used as search criteriaprincipal
- the assigned-to WTPrincipal that is used as search critieriarole
- the role object that is used as search criteria
WTException
WfException
public QueryResult getWorkItems(Persistable object, WTPrincipal principal, String task) throws WTException, WfException
object
- the persistable lifecyclemanaged object that is used as search criteriaprincipal
- the assigned-to WTPrincipal that is used as search critieriatask
- the task that is used as search criteria
WTException
WfException
public QueryResult getWorkItems(Persistable object, WTPrincipal principal) throws WTException, WfException
object
- the persistable lifecyclemanaged object that is used as search criteriaprincipal
- the assigned-to WTPrincipal that is used as search critieria
WTException
WfException
public QueryResult getWorkItems(Persistable object, Role role) throws WTException, WfException
object
- the persistable lifecyclemanaged object that is used as search criteriarole
- the role object that is used as search criteria
WTException
WfException
public QueryResult getUncompletedWorkItems(Persistable object, Role role) throws WTException, WfException
object
- the persistable lifecyclemanaged object that is used as search criteriarole
- the role object that is used as search criteria
WTException
WfException
public QueryResult getWorkItems() throws WTException, WfException
WTException
WfException
public QueryResult getUncompletedWorkItems() throws WTException, WfException
WTException
WfException
public QueryResult getUncompletedWorkItems(Persistable object, String task) throws WTException, WfException
object
- the persistable lifecyclemanaged object that is used as search criteriatask
- the task that is used as search criteria
WTException
WfException
public Vector getAssignees(WfAssignedActivity activity) throws WTException, WfException
activity
-
WTException
WfException
public void workComplete(WorkItem workItem, WTPrincipalReference principalRef, Vector eventList) throws WTException, WfException
workItem
- principalRef
- eventList
-
WTException
WfException
public void workComplete(ObjectReference workItemRef, WTPrincipalReference principalRef, Vector eventList) throws WTException, WfException
workItemRef
- principalRef
- eventList
-
WTException
WfException
public void markWorkItemComplete(WorkItem workItem, WTPrincipalReference completedBy) throws WTException, WfException
workItem
- completedBy
- the performer of the work
WTException
WfException
public void markWorkItemComplete(Persistable object, WTPrincipal completedBy, Role role) throws WTException, WfException
object
- the life cycle managed object associated with the work itemcompletedBy
- the performer of the workrole
- the role played by the actor
WTException
WfException
public void markWorkItemComplete(Persistable object, WTPrincipal completedBy, String task) throws WTException, WfException
object
- the life cycle managed object associated with the work itemcompletedBy
- the performer of the worktask
- the role played by the actor
WTException
WfException
public void markWorkItemIncomplete(Persistable object, WTPrincipal completedBy, Role role) throws WTException, WfException
object
- the life cycle managed object associated with the work itemcompletedBy
- the performer of the workrole
- the role played by the completedBy principal
WTException
WfException
public void acceptAssignment(WorkItem workItem, WTUser user) throws WTException, WfException
workItem
- user
-
WTException
WfException
public void delegate(WorkItem workItem, WTPrincipal principal) throws WTException, WfException
workItem
- principal
-
WTException
WfException
public void sendNotification(String msgBody, Vector recipients, Vector roles, Vector actorRoles, ObjectReference activityReference) throws WTException
msgBody
- recipients
- roles
- actorRoles
- activityReference
-
WTException
public void sendNotification(String subject, String msgBody, Vector recipients, Vector roles, Vector actorRoles, Vector projects, Vector variables, ObjectReference activityReference) throws WTException
sendNotification
resolves the principals and sends notification
to them.
subject
- msgBody
- recipients
- roles
- actorRoles
- projects
- variables
- activityReference
-
WTException
public void checkoutTo(WTObject object, WTPrincipalReference pRef, Role role, ActorRole actorRole, ObjectReference activityRef) throws WTException
object
- pRef
- role
- actorRole
- activityRef
-
WTException
public WfWorkListModel createWorkListModel(String loadAction) throws WTException
loadAction
- The type of load action to be performed on the work list. Valid values are 'worklist-load-user' to load work items for the current user, or 'worklist-load-admin' to load work items for all users.
WTException
public WfWorkListModel createWorkListModel(String loadAction, Vector groupBy, Vector sortBy) throws WTException
loadAction
- The type of load action to be performed on the work list. Valid values are 'worklist-load-user' to load work items for the current user, or 'worklist-load-admin' to load work items for all users.groupBy
- The ordered list of columns to be grouped for the work list. If no grouping is required then this parameter may be set to 'null' or an empty Vector may be sent in. Otherwise, this parameter takes a vector (of Strings) of column names to be grouped. The first column listed in the vector will be the first column grouped.sortBy
- The ordered list of columns to be sorted for the work list. If no sorting is required then this parameter may be set to 'null' or an empty Vector may be sent in. Otherwise, this parameter takes a vector (of Strings) of column names to be sorted. The first column listed in the vector will be the first column sorted.
WTException
public void createOverdueWorkItem(WfExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public void reassignActivity(WfAssignedActivity activity) throws WTException
activity
-
WTException
public void reassignActivity(WfAssignedActivity activity, WTPrincipal principal) throws WTException
activity
- principal
-
WTException
public WTTableModel createTableModel(String loadAction) throws WTException
loadAction
- The type of load action to be performed on the work list. Valid values are 'worklist-load-user' to load work items for the current user, or 'worklist-load-admin' to load work items for all users.
WTException
public WTTableModel createTableModel(String loadAction, Vector groupBy, Vector sortBy) throws WTException
loadAction
- The type of load action to be performed on the work list. Valid values are 'worklist-load-user' to load work items for the current user, or 'worklist-load-admin' to load work items for all users.groupBy
- The ordered list of columns to be grouped for the work list. If no grouping is required then this parameter may be set to 'null' or an empty Vector may be sent in. Otherwise, this parameter takes a vector (of Strings) of column names to be grouped. The first column listed in the vector will be the first column grouped.sortBy
- The ordered list of columns to be sorted for the work list. If no sorting is required then this parameter may be set to 'null' or an empty Vector may be sent in. Otherwise, this parameter takes a vector (of Strings) of column names to be sorted. The first column listed in the vector will be the first column sorted.
WTException
public WTTableModel createTableModel(String loadAction, Vector groupBy, Vector sortBy, WTObject contextObject) throws WTException
loadAction
- The type of load action to be performed on the work list. Valid values are 'worklist-load-user' to load work items for the current user, or 'worklist-load-admin' to load work items for all users.groupBy
- The ordered list of columns to be grouped for the work list. If no grouping is required then this parameter may be set to 'null' or an empty Vector may be sent in. Otherwise, this parameter takes a vector (of Strings) of column names to be grouped. The first column listed in the vector will be the first column grouped.sortBy
- The ordered list of columns to be sorted for the work list. If no sorting is required then this parameter may be set to 'null' or an empty Vector may be sent in. Otherwise, this parameter takes a vector (of Strings) of column names to be sorted. The first column listed in the vector will be the first column sorted.contextObject
-
WTException
public boolean tally(WfAssignedActivity self, WfTallyType policy, String operator, int value, String event) throws WTException
self
- policy
- operator
- value
- event
-
WTException
public String replaceVariables(String txt, ProcessData variables) throws WTException
The delimiter characters can be defined in wt.properties. The
default are open and close curly braces ('{' and '}').
Supported API: false
txt
- variables
-
WTException
public QueryResult getUncompletedWorkItems(WTContainerRef context_ref) throws WTException, WfException
context_ref
-
WTException
WfException
public QueryResult getUncompletedWorkItems(Project2 context) throws WTException
context
-
WTException
public QueryResult getUncompletedWorkItems(WTPrincipal principal, WTContainerRef context_ref) throws WTException, WfException
principal
- the assigned-to WTPrincipal used as search criteriacontext_ref
-
WTException
WfException
public QueryResult getUncompletedWorkItems(WTPrincipal principal, Project2 context) throws WTException
principal
- context
-
WTException
public void doDynamicUpdate(TeamReference team) throws WTException
team
-
WTException
public void doDynamicUpdate(WfProcess process) throws WTException
process
-
WTException
public boolean isOffered(WorkItem workItem) throws WTException
workItem
-
WTException
public QueryResult getUncompletedWorkItems(WTPrincipal principal, WTContainerRef context_ref, Integer query_limit, String sort_by_str) throws WTException, WfException
principal
- the assigned-to WTPrincipal used as search criteriacontext_ref
- query_limit
- sort_by_str
-
WTException
WfException
public QueryResult getUncompletedWorkItems(WTPrincipal principal, Integer query_limit, String sort_by_str) throws WTException, WfException
principal
- the assigned-to WTPrincipal used as search criteriaquery_limit
- sort_by_str
-
WTException
WfException
public QueryResult getUncompletedWorkItems(Integer query_limit, String sort_by_str) throws WTException, WfException
query_limit
- sort_by_str
-
WTException
WfException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |