|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.workflow.work.StandardWorkflowService
Standard implementation of the workflow service interfaces
Use the newStandardWorkflowService
static factory method(s),
not the StandardWorkflowService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
DEFAULT_NOTIFICATION_SENDER
|
private static String |
DEFAULT_ROLE
|
private static boolean |
DO_DYNAMIC_UPDATE
|
private static char |
END_VARIABLE
|
private static char |
ESCAPE_CHARACTER
|
private static String |
OVERDUE_TASK_NAME
|
private static String |
REASSIGN_PRINCIPAL_VARIABLE_NAME
|
private static String |
RESOURCE
|
private static String |
ROBOT_NOTIFICATION_TEMPLATE
|
private static String |
SERVICE_NAME
|
private static char |
START_VARIABLE
|
private static String |
URL_PROCESSOR_METHOD
|
private static boolean |
VERBOSE
|
private static String |
WORK_NOTIFICATION_TEMPLATE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardWorkflowService()
|
Method Summary | |
void |
acceptAssignment(WorkItem workItem,
WTUser user)
Supported API: true |
private void |
addElementNoDup(Vector v,
Object obj)
|
private void |
addElementsNoDup(Vector v,
Enumeration e)
|
private void |
addTeamPrincipals(TeamTemplate teamT,
Vector recipients,
WfProcess process)
Add principals to recipients that are resolved from team template. |
private void |
addTeamPrincipals(Team team,
Vector recipients)
Add principals to recipients that are resolved from team. |
private void |
addTeamPrincipals(Vector teams,
Vector recipients,
WfProcess process)
Add principals to recipients that are resolved from teams. |
private void |
addVariablePrincipals(Vector variables,
Vector recipients,
Vector roles,
Vector actor_roles,
ObjectReference act_ref)
Add principals to recipients that are resolved from teams. |
private WTDistributionList |
buildDistributionList(WfProcess p,
Vector recipients,
Vector roles,
Vector actorRoles)
|
private QuerySpec |
buildOwnerQuery(WTPrincipal p)
This is a new buildOwnerQuery implementing a WHERE IN clause. |
void |
checkoutTo(WTObject object,
WTPrincipalReference pRef,
Role role,
ActorRole actorRole,
ObjectReference activityRef)
checkout a business object to a principal. |
private TemplateNotification |
createNotification(WTDistributionList aDL,
String subject,
String msgBody,
WfProcess p,
ObjectReference activityReference)
|
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: true |
void |
delegate(WorkItem workItem,
WTPrincipal principal,
boolean bypassAccess)
|
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. |
private Enumeration |
getAssignedActivities(WfProcess process,
WfState state)
|
Vector |
getAssignees(WfAssignedActivity activity)
Answer a vector of principals assigned to the activity Supported API: true |
private WTPrincipal |
getCheckoutUser(WTPrincipalReference pRef,
Role role,
ActorRole actor,
ObjectReference activityRef)
Checkout robot support |
String |
getConceptualClassname()
Deprecated. |
private static ObjectIdentifier |
getOid(Object obj)
|
private WfProcess |
getParentProcess(ObjectReference activityReference)
Utilities * |
private String |
getStringRepresentation(Object value)
Constructs a String representation of the object passed as parameter. |
QueryResult |
getUncompletedWorkItems()
Answer an enumeration of all pending work items for all users Supported API: true |
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: true |
QueryResult |
getUncompletedWorkItems(Persistable object,
String task)
Get incomplete work items by object & task Supported API: true |
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: true |
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. |
private String |
getValue(ProcessData vars,
String var_name)
|
private ProcessData |
getVariables(ObjectReference exec_obj_ref)
Returns variables associated to execution object referenced by argument. |
private WorkItem |
getWorkItem(Persistable object,
WTPrincipal owner,
Role role)
|
QueryResult |
getWorkItems()
Answer an enumeration of all pending work items for all users Supported API: true |
QueryResult |
getWorkItems(Persistable object)
Answer an enumeration of work items for an object Supported API: true |
QueryResult |
getWorkItems(Persistable object,
Role role)
Get work by object & role Supported API: true |
QueryResult |
getWorkItems(Persistable object,
String source)
Answer an enumeration of work items for an object & source Supported API: true |
QueryResult |
getWorkItems(Persistable object,
WTPrincipal principal)
Get work by object & principa Supported API: true |
QueryResult |
getWorkItems(Persistable object,
WTPrincipal principal,
Role role)
Get work by object & principal & role Supported API: true |
QueryResult |
getWorkItems(Persistable object,
WTPrincipal principal,
String task)
Get work by object & principal & task Supported API: true |
QueryResult |
getWorkItems(String source)
Answer an enumeration of work items created by a specific source Supported API: true |
QueryResult |
getWorkItems(WTPrincipal principal)
Answer an enumeration of work items for a principal Supported API: true |
QueryResult |
getWorkItems(WTPrincipal principal,
Role role)
Answer an enumeration of work items for a principal for a specific role Supported API: true |
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. |
static StandardWorkflowService |
newStandardWorkflowService()
Default factory for the class. |
private SearchCondition |
onIncomplete()
|
private SearchCondition |
onObject(Persistable object)
|
private SearchCondition |
onOwner(WTPrincipal p)
|
private SearchCondition |
onProject2Dom(AdministrativeDomain object)
|
private SearchCondition |
onRole(Role role)
|
private SearchCondition |
onSource(String source)
|
private SearchCondition |
onTask(String task)
|
private SearchCondition |
onWAA(WfAssignedActivity object)
|
protected void |
performStartupProcess()
Override the method from StandardManager to provide WorkflowService with custom startup for event subscription. |
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. |
private void |
reassignWorkItems(WTContainerRef context_ref,
WTUser replacedUser,
WTUser newUser)
|
protected void |
registerAsListener()
Register as a listener for dispatched events. |
String |
replaceVariables(String txt,
ProcessData variables)
Utility method that replaces values for variables whenever they occur. |
private WTPrincipal |
resolveActor(ActorRole actor,
WfProcess parent)
|
private void |
resolveActors(Vector actorRoles,
WfProcess parent,
WTDistributionList aDL)
|
private WTPrincipal |
resolveSingletonRole(Role role,
WfProcess parentProcess)
Role resolution methods * |
void |
revokeTaskBasedRights(WorkItem wi)
Revoke rights that were granted for the execution of a task for each variable in the activity. |
private void |
revokeTaskBasedRights(WTObject wt_obj,
WTPrincipal user,
Vector set,
long oid)
|
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: true |
void |
setTaskBasedRights(WorkItem wi,
WTPrincipalReference p_ref)
Add rights to assignee that are defined in activity variables the reference persistable objects. |
private boolean |
setTaskBasedRights(WorkItem wi,
WTPrincipalReference p_ref,
WfVariable var)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String DEFAULT_ROLE
private static final String OVERDUE_TASK_NAME
private static final String REASSIGN_PRINCIPAL_VARIABLE_NAME
private static final String URL_PROCESSOR_METHOD
private static final String WORK_NOTIFICATION_TEMPLATE
private static final String ROBOT_NOTIFICATION_TEMPLATE
private static final char START_VARIABLE
private static final char END_VARIABLE
private static final char ESCAPE_CHARACTER
private static final boolean VERBOSE
private static final String DEFAULT_NOTIFICATION_SENDER
private static final String SERVICE_NAME
private static final boolean DO_DYNAMIC_UPDATE
Constructor Detail |
public StandardWorkflowService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardWorkflowService newStandardWorkflowService() throws WTException
WTException
public QueryResult getWorkItems(WTPrincipal principal) throws WTException, WfException
getWorkItems
in interface WorkflowService
principal
- the assigned-to WTPrincipal used as search criteria
WTException
WfException
public QueryResult getUncompletedWorkItems(WTPrincipal principal) throws WTException, WfException
getUncompletedWorkItems
in interface WorkflowService
principal
- the assigned-to WTPrincipal used as search criteria
WTException
WfException
public QueryResult getWorkItems(WTPrincipal principal, Role role) throws WTException, WfException
getWorkItems
in interface WorkflowService
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
getWorkItems
in interface WorkflowService
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
getWorkItems
in interface WorkflowService
object
- the persistable lifecyclemanaged object that is used as the search criteria
WTException
WfException
public QueryResult getWorkItems(Persistable object, String source) throws WTException, WfException
getWorkItems
in interface WorkflowService
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
getWorkItems
in interface WorkflowService
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
getWorkItems
in interface WorkflowService
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
getWorkItems
in interface WorkflowService
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
getWorkItems
in interface WorkflowService
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
getUncompletedWorkItems
in interface WorkflowService
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
getWorkItems
in interface WorkflowService
WTException
WfException
public QueryResult getUncompletedWorkItems() throws WTException, WfException
getUncompletedWorkItems
in interface WorkflowService
WTException
WfException
public QueryResult getUncompletedWorkItems(Persistable object, String task) throws WTException, WfException
getUncompletedWorkItems
in interface WorkflowService
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
getAssignees
in interface WorkflowService
activity
-
WTException
WfException
public void workComplete(WorkItem workItem, WTPrincipalReference principalRef, Vector eventList) throws WTException, WfException
workComplete
in interface WorkflowService
workItem
- principalRef
- eventList
-
WTException
WfException
public void workComplete(ObjectReference workItemRef, WTPrincipalReference principalRef, Vector eventList) throws WTException, WfException
workComplete
in interface WorkflowService
workItemRef
- principalRef
- eventList
-
WTException
WfException
public void markWorkItemComplete(WorkItem workItem, WTPrincipalReference completedBy) throws WTException, WfException
markWorkItemComplete
in interface WorkflowService
workItem
- completedBy
- the performer of the work
WTException
WfException
public void markWorkItemComplete(Persistable object, WTPrincipal completedBy, Role role) throws WTException, WfException
markWorkItemComplete
in interface WorkflowService
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
markWorkItemComplete
in interface WorkflowService
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
markWorkItemIncomplete
in interface WorkflowService
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
acceptAssignment
in interface WorkflowService
workItem
- user
-
WTException
WfException
public void delegate(WorkItem workItem, WTPrincipal principal) throws WTException, WfException
delegate
in interface WorkflowService
workItem
- principal
-
WTException
WfException
public void sendNotification(String msgBody, Vector recipients, Vector roles, Vector actorRoles, ObjectReference activityReference) throws WTException
sendNotification
in interface WorkflowService
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.
sendNotification
in interface WorkflowService
subject
- msgBody
- recipients
- roles
- actorRoles
- projects
- variables
- activityReference
-
WTException
public void checkoutTo(WTObject object, WTPrincipalReference pRef, Role role, ActorRole actorRole, ObjectReference activityRef) throws WTException
checkoutTo
in interface WorkflowService
object
- pRef
- role
- actorRole
- activityRef
-
WTException
public WfWorkListModel createWorkListModel(String loadAction) throws WTException
createWorkListModel
in interface WorkflowService
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
createWorkListModel
in interface WorkflowService
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
createOverdueWorkItem
in interface WorkflowService
exec_obj
-
WTException
public void reassignActivity(WfAssignedActivity activity) throws WTException
reassignActivity
in interface WorkflowService
activity
-
WTException
public void reassignActivity(WfAssignedActivity activity, WTPrincipal principal) throws WTException
reassignActivity
in interface WorkflowService
activity
- principal
-
WTException
public WTTableModel createTableModel(String loadAction) throws WTException
createTableModel
in interface WorkflowService
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
createTableModel
in interface WorkflowService
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
createTableModel
in interface WorkflowService
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
tally
in interface WorkflowService
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: true
replaceVariables
in interface WorkflowService
txt
- variables
-
WTException
public QueryResult getUncompletedWorkItems(WTContainerRef context_ref) throws WTException, WfException
getUncompletedWorkItems
in interface WorkflowService
context_ref
-
WTException
WfException
public QueryResult getUncompletedWorkItems(Project2 context) throws WTException
getUncompletedWorkItems
in interface WorkflowService
context
-
WTException
public QueryResult getUncompletedWorkItems(WTPrincipal principal, WTContainerRef context_ref) throws WTException, WfException
getUncompletedWorkItems
in interface WorkflowService
principal
- the assigned-to WTPrincipal used as search criteriacontext_ref
-
WTException
WfException
public QueryResult getUncompletedWorkItems(WTPrincipal principal, Project2 context) throws WTException
getUncompletedWorkItems
in interface WorkflowService
principal
- context
-
WTException
public void doDynamicUpdate(TeamReference team) throws WTException
doDynamicUpdate
in interface WorkflowService
team
-
WTException
public void doDynamicUpdate(WfProcess process) throws WTException
doDynamicUpdate
in interface WorkflowService
process
-
WTException
public boolean isOffered(WorkItem workItem) throws WTException
isOffered
in interface WorkflowService
workItem
-
WTException
public QueryResult getUncompletedWorkItems(WTPrincipal principal, WTContainerRef context_ref, Integer query_limit, String sort_by_str) throws WTException, WfException
getUncompletedWorkItems
in interface WorkflowService
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
getUncompletedWorkItems
in interface WorkflowService
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
getUncompletedWorkItems
in interface WorkflowService
query_limit
- sort_by_str
-
WTException
WfException
public void setTaskBasedRights(WorkItem wi, WTPrincipalReference p_ref) throws WTException
The privileges are added by changing the ad hoc ACL of the object.
This means that this method only works if the object is ad hoc controlled.
Supported API: true
setTaskBasedRights
in interface WorkflowServiceSvr
wi
- p_ref
-
WTException
public void revokeTaskBasedRights(WorkItem wi) throws WTException
revokeTaskBasedRights
in interface WorkflowServiceSvr
wi
-
WTException
private void addVariablePrincipals(Vector variables, Vector recipients, Vector roles, Vector actor_roles, ObjectReference act_ref) throws WTException
variables
- - vector of WfVariableInfo objectsrecipients
- - vector of WTPrincipal objectsroles
- - vector of Role objects
WTException
private ProcessData getVariables(ObjectReference exec_obj_ref) throws WTException
WTException
private void addTeamPrincipals(Team team, Vector recipients) throws WTException
WTException
private void addTeamPrincipals(TeamTemplate teamT, Vector recipients, WfProcess process) throws WTException
WTException
private void addTeamPrincipals(Vector teams, Vector recipients, WfProcess process) throws WTException
WTException
private String getStringRepresentation(Object value)
If the value is not a WTObject, calls 'toString () '; otherwise produces the object's identity.
value
- object passed as parameter
private WTPrincipal getCheckoutUser(WTPrincipalReference pRef, Role role, ActorRole actor, ObjectReference activityRef) throws WTException
WTException
private WTPrincipal resolveSingletonRole(Role role, WfProcess parentProcess) throws WTException
WTException
private WTPrincipal resolveActor(ActorRole actor, WfProcess parent) throws WTException
WTException
private void resolveActors(Vector actorRoles, WfProcess parent, WTDistributionList aDL) throws WTException
WTException
private WfProcess getParentProcess(ObjectReference activityReference) throws WTException
WTException
private WorkItem getWorkItem(Persistable object, WTPrincipal owner, Role role) throws WTException
WTException
private Enumeration getAssignedActivities(WfProcess process, WfState state) throws WTException
WTException
private QuerySpec buildOwnerQuery(WTPrincipal p) throws WTException
WTException
private SearchCondition onObject(Persistable object) throws WTException
WTException
private SearchCondition onOwner(WTPrincipal p) throws WTException
WTException
private SearchCondition onRole(Role role) throws WTException
WTException
private SearchCondition onSource(String source) throws WTException
WTException
private SearchCondition onTask(String task) throws WTException
WTException
private SearchCondition onIncomplete() throws WTException
WTException
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
protected void registerAsListener() throws ManagerException
1. Team.RETEAM
ManagerException
private WTDistributionList buildDistributionList(WfProcess p, Vector recipients, Vector roles, Vector actorRoles) throws WTException
WTException
private TemplateNotification createNotification(WTDistributionList aDL, String subject, String msgBody, WfProcess p, ObjectReference activityReference) throws WTException
WTException
private void addElementsNoDup(Vector v, Enumeration e)
private void addElementNoDup(Vector v, Object obj)
private boolean setTaskBasedRights(WorkItem wi, WTPrincipalReference p_ref, WfVariable var) throws WTException
WTException
private void revokeTaskBasedRights(WTObject wt_obj, WTPrincipal user, Vector set, long oid) throws WTException
WTException
private SearchCondition onProject2Dom(AdministrativeDomain object) throws WTException
WTException
private SearchCondition onWAA(WfAssignedActivity object) throws WTException
WTException
private void reassignWorkItems(WTContainerRef context_ref, WTUser replacedUser, WTUser newUser) throws WTException
WTException
public void delegate(WorkItem workItem, WTPrincipal principal, boolean bypassAccess) throws WTException, WfException
WTException
WfException
private static ObjectIdentifier getOid(Object obj)
private String getValue(ProcessData vars, String var_name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |