|
Oracle Fusion Middleware Workflow Services Java API Reference for Oracle SOA Suite 11g Release 1 (11.1.1) E10660-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IUserMetadataService
The UserMetadataService provides methods for querying and updating workflow metadata specific to users or groups. It is used for dealing with workflow assignment rules, user views, user preferences and vacation information.
An instance of IUserMetadataService can be created by calling IWorkflowServiceClient.getUserMetadataService(). An instance of IWorkflowServiceClient can be created using the WorkflowServiceClientFactory.
All the UserMetadataService methods take IWorkflowContext as their first parameter. The IWorkflowContext object allows the UserMetdataService to validate that the method is being called by an authenticated user, and that the user has the necessary authority to perform the action being requested. The IWorkflowContext object also contains information on the user's timezone and locale. An IWorkflowContext object can be obtained by calling ITaskQueryService.authenticate(java.lang.String, java.lang.String, java.lang.String, java.lang.String) or ITaskQueryService.createContext(HttpServletRequest).
For most methods, users can only query and update their own metadata - they are not permitted to access metadata belonging to other users. In the case of metadata for groups (specifically for workflow rules), only users who are registered as the owner of that group can access the metadata. However, users with administrator privileges can usually access any user or group's metadata.
Many of the parameters and return types of the methods are JAXB model objects from the packages oracle.bpel.services.workflow.user.model, oracle.bpel.services.workflow.query.model, and oracle.bpel.services.workflow.common.model. These objects do not have public constructors. To create new instances of these objects you should use the appropriate methods on oracle.bpel.services.workflow.user.model.ObjectFactory, oracle.bpel.services.workflow.query.model.ObjectFactory or oracle.bpel.services.workflow.common.model.ObjectFactory
Many of the methods in this API use Participant objects to specify a user or group. A Participant object contains parameters that specify the user or group name, the realm (identity context) of the user, and whether the Participant is a user or group.
| Nested Class Summary | |
|---|---|
static class |
IUserMetadataService.UserTaskViewGrantTypeEnumeration specifying the different grant types that can be used when granting another user access to a UserTaskView. |
static class |
IUserMetadataService.UserTaskViewTypeEnumeration specifying the different types of view that can be defined. |
| Field Summary | |
|---|---|
static java.lang.String |
RULE_ACTION_DELEGATERule action: Delegate task to specified user or group |
static java.lang.String |
RULE_ACTION_DYN_REASSIGNRule action: Dynamically reasign task using dynamic assignment funtion to select user |
static java.lang.String |
RULE_ACTION_NOOPRule action: No operation |
static java.lang.String |
RULE_ACTION_REASSIGNRule action: Reassign task to specified user or group |
static java.lang.String |
RULE_ACTION_SET_OUTCOMERule action: Set task outcome to specified value |
static java.lang.String |
RULE_OP_AFTERRule condition operator: Date occured after |
static java.lang.String |
RULE_OP_BEFORERule condition operator: Date occured before |
static java.lang.String |
RULE_OP_BEGINSRule condition operator: String begins with value |
static java.lang.String |
RULE_OP_CONTAINSRule condition operator: String contains value |
static java.lang.String |
RULE_OP_ENDSRule condition operator: String ends with value |
static java.lang.String |
RULE_OP_EQRule condition operator: equal to "==" |
static java.lang.String |
RULE_OP_GTRule condition operator: greater than ">" |
static java.lang.String |
RULE_OP_GTERule condition operator: greater than or equal to ">=" |
static java.lang.String |
RULE_OP_LTRule condition operator: less than "<" |
static java.lang.String |
RULE_OP_LTERule condition operator: less than or equal to "<=" |
static java.lang.String |
RULE_OP_NEQRule condition operator: not equal to "!=" |
static java.lang.String |
RULE_OP_NOT_BEGINSRule condition operator: String does not begin with value |
static java.lang.String |
RULE_OP_NOT_CONTAINSRule condition operator: String does not contain value |
static java.lang.String |
RULE_OP_NOT_ENDSRule condition operator: String does not end with value |
static java.lang.String[] |
VALID_DATE_RULE_OPSArray of valid operators for rule conditions on Date values |
static java.lang.String[] |
VALID_NUMBER_RULE_OPSArray of valid operators for rule conditions on number values |
static java.lang.String[] |
VALID_STRING_RULE_OPSArray of valid operators for rule conditions on String values |
| Method Summary | |
|---|---|
RuleDetail |
createRule(IWorkflowContext ctx, RuleDetail rule)Creates a new rule from a RuleDetail object. |
UserViewDetail |
createUserTaskView(IWorkflowContext ctx, UserViewDetail view)Creates a new view from the specified UserViewDetail object. |
void |
decreaseRulePriority(IWorkflowContext ctx, java.lang.String ruleId)Decreases the priority of the specified rule by 1. |
void |
deleteRule(IWorkflowContext ctx, java.lang.String ruleId)Deletes an existing workflow rule, based on its ruleId. |
void |
deleteUserTaskView(IWorkflowContext ctx, java.lang.String viewId)Deletes an existing view identifies by its viewId. |
GrantedViewList |
getGrantedTaskViewList(IWorkflowContext ctx, Participant user)Gets the list of views that have been granted to the specified user by other users. |
UserPreferences |
getPublicPreferences(IWorkflowContext ctx, Participant user)Gets 'public' preferences for specified user. |
RuleDetail |
getRuleDetail(IWorkflowContext ctx, java.lang.String ruleId)Returns the full details for a particular rule, identified by its ruleId. |
RuleList |
getRuleList(IWorkflowContext ctx, Participant user)Returns a list of rules for the specified user or group, as a RuleList object. |
RulesetInfo |
getRuleSetInfo(IWorkflowContext ctx, Participant user)Deprecated. Rules persistence is no longer configurable, and rules are now persisted internally in the workflow database schema, so this method is now of limited use. |
UserViewDetail |
getStandardTaskViewDetails(IWorkflowContext ctx, java.lang.String viewId)Gets the full details for a particular standard view, identified by its viewId. |
UserViewList |
getStandardTaskViewList(IWorkflowContext ctx)Gets the list of standard views which ship with the product, and are available to all users. |
UserViewDetail |
getUserInboxView(IWorkflowContext ctx, Participant user)Deprecated. |
UserPreferences |
getUserPreferences(IWorkflowContext ctx, Participant user)Gets the user preferences for the specified user as a UserPreferences object. |
UserViewDetail |
getUserTaskViewDetails(IWorkflowContext ctx, java.lang.String viewId)Gets the full details for a particular user view, identified by its viewId. |
UserViewList |
getUserTaskViewList(IWorkflowContext ctx, Participant user)Gets the list of views belonging to the specified user. |
VacationInfo |
getVacationInfo(IWorkflowContext ctx, Participant user)Gets the current vacation information for the specified user in the form of a VacationInfo object. |
void |
increaseRulePriority(IWorkflowContext ctx, java.lang.String ruleId)Increases the priority of the specified rule by 1. |
UserPreferences |
setPublicPreferences(IWorkflowContext ctx, UserPreferences prefs)Sets 'public' preferences for specified user. |
UserPreferences |
setUserPreferences(IWorkflowContext ctx, UserPreferences prefs)Sets the user preferences for the specified from a UserPreferences object. |
VacationInfo |
setVacationInfo(IWorkflowContext ctx, VacationInfo vacationInfo)Updates the vacation information for a user using the supplied VacationInfo object. |
ViewGrant |
updateGrantedTaskView(IWorkflowContext ctx, ViewGrant grant)Allows a grantee to update certain information on a view that has been granted to them. |
RuleDetail |
updateRule(IWorkflowContext ctx, RuleDetail rule)Updates an existing workflow rule to the definition specified in a RuleDetail object. |
UserViewDetail |
updateUserTaskView(IWorkflowContext ctx, UserViewDetail view)Updates an existing view to the defintion specified in a UserViewDetail object. |
| Field Detail |
|---|
static final java.lang.String RULE_ACTION_NOOP
static final java.lang.String RULE_ACTION_REASSIGN
static final java.lang.String RULE_ACTION_DYN_REASSIGN
static final java.lang.String RULE_ACTION_DELEGATE
static final java.lang.String RULE_ACTION_SET_OUTCOME
static final java.lang.String RULE_OP_LTE
static final java.lang.String RULE_OP_GTE
static final java.lang.String RULE_OP_EQ
static final java.lang.String RULE_OP_NEQ
static final java.lang.String RULE_OP_LT
static final java.lang.String RULE_OP_GT
static final java.lang.String RULE_OP_CONTAINS
static final java.lang.String RULE_OP_NOT_CONTAINS
static final java.lang.String RULE_OP_BEGINS
static final java.lang.String RULE_OP_NOT_BEGINS
static final java.lang.String RULE_OP_ENDS
static final java.lang.String RULE_OP_NOT_ENDS
static final java.lang.String RULE_OP_BEFORE
static final java.lang.String RULE_OP_AFTER
static final java.lang.String[] VALID_STRING_RULE_OPS
static final java.lang.String[] VALID_DATE_RULE_OPS
static final java.lang.String[] VALID_NUMBER_RULE_OPS
| Method Detail |
|---|
VacationInfo getVacationInfo(IWorkflowContext ctx,
Participant user)
throws WorkflowException
VacationInfo object. Vacation information specifies two dates between which the user is unavailable for assignment of tasks. Dynamic Assignment functions will not assign tasks to users who are currently on vacation. If the user has defined any rules that are flagged as being vacation rules, then the start and end dates for the vacation rules will match the vacation start and end dates.
If no vacation information has been set for the user, an empty VactionInfo object is returned.
VacationInfo has the following properties:
boolean true if current date is between vacation start and end date, otherwise false.PrincipleRefType The user this vacation information is for.Calendar start date for vacation period. A null startDate and null endDate indicates that there are no vacation dates currently set for the user.Calendar end date for vacation period. A null startDate and null endDate indicates that there are no vacation dates currently set for the user.ctx - authenticated IWorkflowContext for useruser - Participant user to query information forVacationInfo object if no vacation information has been set for user, otherwise a VacationInfo object populated with vacation information.WorkflowException - if non-admin user attempts to query information for another user, or some other error condition occursVacationInfo setVacationInfo(IWorkflowContext ctx, VacationInfo vacationInfo) throws WorkflowException
VacationInfo object. Vacation information specifies two dates between which the user is unavailable for assignment of tasks. Dynamic Assignment functions will not assign tasks to users who are currently on vacation. In addition the start and end dates of any rules for the user which are marked as being 'vacation rules' will automatically be updated so that the rule start and end dates match the vacation startand end dates.
The method validates that both a start and end date have been specified, and that the end date occurs after the start date.
VacationInfo has the following properties:
boolean Not used on update, is set by API when querying vacation info.PrincipleRefType The user this vacation information is for.Calendar start date for vacation period. Setting a null startDate and null endDate will clear existing vacation dates for the user.Calendar start date for vacation period. Setting a null startDate and null endDate will clear existing vacation dates for the user.ctx - authenticated IWorkflowContext for uservacationInfo - VacationInfo the vacation information to setVacationInfo vacation informationWorkflowException - if non-admin user attempts to update information for another user, or some other error condition occursRulesetInfo getRuleSetInfo(IWorkflowContext ctx, Participant user) throws WorkflowException
RulesetInfo object. This is useful if a client wants to make use of the rules SDK directly for manipulating rules, rather than using the user metadata service. A ruleset is created for each user or group that has workflow assignment rules defined.ctx - authenticated IWorkflowContext for user.user - Participant user or group to get ruleset information for.RulesetInfo object containing the ruleset informationWorkflowExceptionRuleList getRuleList(IWorkflowContext ctx, Participant user) throws WorkflowException
RuleList object. The RuleList object contains a List of RuleInfoType objects. Each RuleInfoType object provides summary information about a rule. In order to retreive the full details for a particular rule, the method getRuleDetail(IWorkflowContext, String) should be used.
The RuleInfoType object has the following properties:
String "USER" or "GROUP". Maintained by API.String unique identifier for rule. Populated by API on rule creation. ruleId is derived from rule name, and will change if the rule name is changed.String the name of rule.int rule priority. Larger numerical value indicates higher priority. API maintains rule priorities to ensure that there is a continuous numerical sequence.PrincipleRefType The owner (user or group) of this rule.String a rule may optionally be restricted to be triggered only for tasks of a certain type by setting this property to the appropriate TaskDefintionId.Calendar a rule may optioanlly be restricted to only be triggered for tasks assigned after a certain date.Calendar a rule may optioanlly be restricted to only be triggered for tasks assigned before a certain date.boolean if a rule is marked as a vacation rule, then the UserMetdataService will automatically synchonize the rule's start and end dates with the vacation start and end date's for the view's owner.String an optional description of the rule.Calendar the date on which the rule was created. Populated automatically by the API on rule creation.Calendar the date on which the rule was last updated. Populated automatically by the API on rule creation and update.ctx - authenticated IWorkflowContext for useruser - Participant user or group to get RuleList for.RuleList object containing list of summary information for each ruleWorkflowException - if non-admin user attempts to retrieve information for another user, or for a group that they to not own, or some other error condition occursRuleDetail getRuleDetail(IWorkflowContext ctx, java.lang.String ruleId) throws WorkflowException
RuleDetail object. See createRule(oracle.bpel.services.workflow.verification.IWorkflowContext, oracle.bpel.services.workflow.user.model.RuleDetail) for a description of the RuleDetail object.ctx - authenticated IWorkflowContext for userruleId - String a unique identitier for the ruleRuleDetail object.WorkflowException - if non-admin user attempts to retrieve information for a rule belonging to another user or a group that they to not own or have not been granted, or some other error condition occurs.RuleDetail createRule(IWorkflowContext ctx, RuleDetail rule) throws WorkflowException
Creates a new rule from a RuleDetail object. A user may create rules for themselves, and for any groups that they own. Rules are evaluated when a task is assigned to that user or group - if the task meets the conditions specified in a rule, the rule is triggered, and will attempt to perform an action on the task, as specified in the RuleDetail.
Rules are evaluated in order of their priority from highest (largest numerical value) to lowest. Only the first rule whose conditions are met will be triggered. Rules of lower priority will be ignored, even if the task also meets their conditions.
Rules will only be evaluated if the current date is between the rule start and end date. If no rule start and end date is specfied, the rule will always be evaluated.
If the IsVacationRule flag is set for a rule, then its start and end dates will be automatically synchronized with the user's vacation start and end dates (as configured via the setVacationInfo method in this interface). If no vacation period is currently defined for the user, then the vacation rule's start and end date's will automatically be set in the past, to ensure the rule does not get triggered
.RuleDetail has the following parameters:
RuleInfoType describes general information about the rule. This is the same information that is returned by the getRuleList(oracle.bpel.services.workflow.verification.IWorkflowContext, oracle.bpel.services.workflow.common.model.Participant) method. RuleInfoType has the following parameters:
String "USER" or "GROUP". Maintained by API.String unique identifier for rule. Populated by API on rule creation. ruleId is derived from rule name, and will change if the rule name is changed.String the name of rule. Mandatory.int rule priority. Larger numerical value indicates higher priority. API maintains rule priorities to ensure that there is a continuous numerical sequence. If a rule already exists with this priority, this rule will be created with the specified priority, and other rules with the same or higher priority will have their priorities incrementented by 1 to accomodate the new rule. A rule cannot have a priority higher than the total number of rules. If a higer priority is specified, the API will reset the priority for this rule to be the same as the total number of rules.PrincipleRefType The owner (user or group) of this rule. Mandatory.String a rule may optionally be restricted to be triggered only for tasks of a certain type by setting this property to the appropriate TaskDefintionId. Note that TaskDefinitonId changes on each redeployment of a Task definition, so the rule will be restricted to Tasks created for a specific deployment of a Task definition. To have a rule apply to all deployments of a task definition, use taskNamespace instead.String a rule may optionally be restricted to be triggered only for tasks of a certain type by setting this property to the appropriate task definition namespace. Note that task namespace is unique to a task definition type, but does not change between versions or redeployments of the Task definition, so the rule will be triggered by tasks for all versions of the Task definition. If you need to restrict the rule to a specific task definition deployment, use workflowId instead.Calendar a rule may optioanlly be restricted to only be triggered for tasks assigned after a certain date.Calendar a rule may optioanlly be restricted to only be triggered for tasks assigned before a certain date.boolean if a rule is marked as a vacation rule, then the UserMetdataService will automatically synchonize the rule's start and end dates with the vacation start and end date's for the view's owner.String an optional description of the rule.Calendar the date on which the rule was created. Populated automatically by the API on rule creation.Calendar the date on which the rule was last updated. Populated automatically by the API on rule creation and update.RuleTestListType A rule may optionally specify a number of test conditions that must be satisified for the rule to be triggered. The RuleTestListType object should be populated with RuleTestType objects. Each RuleTestType defines a test against a single attribute of a Task, and can be added to the RuleTestListType by calling the method RuleTestListType.getTest().add(RuleTestType test). The properties of RuleTestType are:
String used to specify which Task attribute the test is for, using dot-separators to specify the path to attributes. For example, "title", "systemAttributes.createdDate", or "systemMessageAttributes.textAttribute1". The attribute paths for a Task can be determined using the methods ITaskMetadataService.getTaskAttributes(oracle.bpel.services.workflow.verification.IWorkflowContext) or ITaskMetadataService.getTaskAttributesForTaskDefinition(oracle.bpel.services.workflow.verification.IWorkflowContext, java.lang.String).String used to specify the operator for the test. The operator should be one of the RULE_OP constants specified in this interface. Note that certain operators are only valid for certain attribute types. The String array constants VALID_DATE_RULE_OPS, VALID_NUMBER_RULE_OPS and VALID_STRING_RULE_OPS list which operators are valid for different attribute types.String used to specify the value for the test for all attribute types other than dates.Calendar used to specify the value for the test for date attribute types.IRuntimeConfigService can be used to create a PayloadMapping between the payload attribute and a Task flexfield. It is then possible to specify taskTests against the mapped flexfield.RuleActionType Species the action to be taken if the rule is triggered. An action must be set on the rule. The properties of RuleActionType are:
String The actionType must be set to one of the following values:
RuleAssignmentType object. Only the assignee field of the RuleAssignmentType object should be set.RuleAssignmentType object. The assignee field of the RuleAssignmentType object should be set to a group, and the dynamicAssignmentFunction field should be set to the name of the Dynamic Assignment Function to use.RuleAssignmentType object. The assignee field of the RuleAssignmentType object should be set to the user or group being delegated to.RuleAssignmentType Must be set for REASSIGN and DYN_REASSIGN rule actions. The properties of RuleAssignmentType are:
PrincipleRefType The target assignee.String For DYN_REASSIGN rule action, this must be set to the Dynamic Assignment Function to be used to select a user from the group specified in the assignee property. A list of suitable Dynamic Assignment Functions can be determined from the method IRuntimeConfigService.getUserDynamicAssignmentFunctions(oracle.bpel.services.workflow.verification.IWorkflowContext).RuleAssignmentType Must be set for DELEGATE rule action. The properties of RuleAssignmentType are:
PrincipleRefType The user or group to delegate the task to.String Not used for DELEGATE rule action.String Must be set for SET_OUTCOME action. The outcome that the Task will be set to.ctx - authenticated IWorkflowContext for user.rule - RuleDetail object defining the rule.RuleDetail. The ruleId will be populated on the returned object.WorkflowException - if non-admin user attempts to create a rule for another user or for a group that they to not own, or some other error condition occurs.RuleDetail updateRule(IWorkflowContext ctx, RuleDetail rule) throws WorkflowException
Updates an existing workflow rule to the definition specified in a RuleDetail object. See createRule(oracle.bpel.services.workflow.verification.IWorkflowContext, oracle.bpel.services.workflow.user.model.RuleDetail) for a description of how to use the RuleDetail object.
Note that the name of a rule is used to generate its ruleId. Updating a rule name will result in its ruleId changing. The RuleDetail object returned by this method will contain the updated ruleId.
ctx - authenticated IWorkflowContext for user.rule - RuleDetail object defining the rule.RuleDetail. The correct ruleId will be populated on the returned object.WorkflowException - if non-admin user attempts to update information for a rule belonging to another user or a group that they to not own, or some other error condition occurs.void deleteRule(IWorkflowContext ctx, java.lang.String ruleId) throws WorkflowException
ctx - authenticated IWorkflowContext for user.ruleId - String unique identifier for rule.WorkflowException - if non-admin user attempts to delete a a rule belonging to another user or a group that they to not own, or some other error condition occurs.void increaseRulePriority(IWorkflowContext ctx, java.lang.String ruleId) throws WorkflowException
ctx - authenticated IWorkflowContext for user.ruleId - String unique identifier for rule.WorkflowException - if non-admin user attempts to update information for a rule belonging to another user or a group that they to not own, or some other error condition occurs.void decreaseRulePriority(IWorkflowContext ctx, java.lang.String ruleId) throws WorkflowException
ctx - authenticated IWorkflowContext for user.ruleId - String unique identifier for rule.WorkflowException - if non-admin user attempts to update information for a rule belonging to another user or a group that they to not own, or some other error condition occurs.UserViewList getStandardTaskViewList(IWorkflowContext ctx) throws WorkflowException
UserViewList object. The UserViewList object contains a List of ViewSummaryType objects, accessed by calling the UserViewListType.getView() method. Each ViewSummaryType object provides summary information about a view. In order to retreive the full details for a particular rule, the method getStandardTaskViewDetails(oracle.bpel.services.workflow.verification.IWorkflowContext, java.lang.String) should be used.
ViewSummaryType has the following properties:
String unique identifier for view, automatically populated by API on view creation.String the name of the view. If the WorkflowLabels.proprties resource bundle contains an entry for this standard view name, then the label from the apppropriate resource bundle for the context user will be used instead.PrincipleRefType The owner of the view- this is set to a dummy value for standard views.boolean value. Can be used by UI to determine how to display the view. In the sample worklist application, views marked as "hidden" are not displayed in the list of views in the user's task listing page.String internal use only, will be set to IWorkflowConstants.USER_VIEW_TYPE_VIEW.String optional description of view.ctx - authenticated IWorkflowContext for user.UserViewList list of ViewSummaryType objects.WorkflowException - if an error occurs retrieving the standard views.UserViewList getUserTaskViewList(IWorkflowContext ctx, Participant user) throws WorkflowException
UserViewList object. The UserViewList object contains a List of ViewSummaryType objects, accessed by calling the UserViewListType.getView() method. Each ViewSummaryType object provides summary information about a view. In order to retreive the full details for a particular rule, the method getUserTaskViewDetails(oracle.bpel.services.workflow.verification.IWorkflowContext, java.lang.String) should be used.
ViewSummaryType has the following properties:
String unique identifier for view, automatically populated by API on view creation.String the name of the view.PrincipleRefType The owner of the view.boolean value. Can be used by UI to determine how to display the view. In the sample worklist application, views marked as "hidden" are not displayed in the list of views in the user's task listing page.String internal use only, will be set to IWorkflowConstants.USER_VIEW_TYPE_VIEW.String optional description of view.ctx - authenticated IWorkflowContext for user.user - Participant user to get the views for.UserViewList list of ViewSummaryType objects.WorkflowException - if non-admin user attempts to retrieve the list of views for another user, or some other error condition occurs.UserViewDetail getUserInboxView(IWorkflowContext ctx, Participant user) throws WorkflowException
WorkflowExceptionGrantedViewList getGrantedTaskViewList(IWorkflowContext ctx, Participant user) throws WorkflowException
Granted views are returned as a GrantedViewList object. The GrantedViewList object contains a List of ViewGrantType objects, accessed by calling the GrantedViewListType.getViewGrant() method. ViewGrantType has the following properties:
String currently unused. Could be utilized by a task list UI to diferentiate between different sorts of grant in order to implement custom behavior.String unique identifier for the granted view.PrincipleRefType The user to whom the view has been grantedString The grantee may choose to use a different name for the view to the one chosen by the view's owner.String The grantee may choose to use a different description for the view to the one chosen by the view's owner.boolean Can be used by UI to determine how to display the view. In the sample worklist application, granted views marked as "hidden" are not displayed in the list of views in the user's task listing page.PrincipleRefType The owner of the view.String The name of the view chosen by the owner.String The description for the view chosen by the owner.ctx - authenticated IWorkflowContext for user.user - Participant user to get the granted views for.GrantedViewList list of ViewGrantType objects.WorkflowException - if non-admin user attempts to retrieve the list of granted views for another user, or some other error condition occurs.UserViewDetail getStandardTaskViewDetails(IWorkflowContext ctx, java.lang.String viewId) throws WorkflowException
UserViewDetail object. See createUserTaskView(oracle.bpel.services.workflow.verification.IWorkflowContext, oracle.bpel.services.workflow.user.model.UserViewDetail) for a description of the UserViewDetail properties.ctx - authenticated IWorkflowContext for user.viewId - String unique identifier for view.UserViewDetail describing standard view.WorkflowException - if error occurs retrieving view details.UserViewDetail getUserTaskViewDetails(IWorkflowContext ctx, java.lang.String viewId) throws WorkflowException
UserViewDetail object. See createUserTaskView(oracle.bpel.services.workflow.verification.IWorkflowContext, oracle.bpel.services.workflow.user.model.UserViewDetail) for a description of the UserViewDetail properties.ctx - authenticated IWorkflowContext for user.viewId - String unique identifier for view.UserViewDetail describing user view.WorkflowException - if non-admin user attempts to retrieve view belonging to another user, or some other error condition occurs.UserViewDetail createUserTaskView(IWorkflowContext ctx, UserViewDetail view) throws WorkflowException
Creates a new view from the specified UserViewDetail object. Views provide a way for users to persist queries that return lists of tasks. A view can define which task columns should be queried, how the tasks should be filtered, and how the tasks should be ordered. Views are persisted by the API, and a view can be used to query a list of tasks using the method ITaskQueryService.queryViewTasks(oracle.bpel.services.workflow.verification.IWorkflowContext, java.lang.String, oracle.bpel.services.workflow.repos.Predicate, oracle.bpel.services.workflow.repos.Ordering, int, int).
Users can grant other users access to their views, allowing the grantee to query the view data as if they are the view owner.
The UserViewDetail object properties are as follows:
String unique identifier for view, automatically populated by API on view creation.String indicates whether this view is one of the 'standard views', visible to all users, or is a personal view. Should be set to one of the String values of the enumeration IUserMetadataService.UserTaskViewType. (Either 'VIEW' or 'STANDARD_VIEW'). Only admin users can create (or update, or delete) standard views. If no value is specified, viewType will default to 'VIEW'.String name for view. In the case of standard views, this name can be used to lookup a resource string from the WorkflowLabels.properties resource bundle. When querying standard views, if such a resource string is available, the value of this field will be replaced by this resource string (in the appropriate Locale, as determined from the IWorkflowContext object). If no resource string is found, then the name of the standard view will be set to the same value as specified in this field when the view was created or updated.PrincipleRefType The owner of the view.boolean value. Can be used by UI to determine how to display the view. In the sample worklist application, views marked as "hidden" are not displayed in the list of views in the user's task listing page.String optional description of view.ColumnListType specifies which task columns should be retrieved by the view. The ColumnListType object should be populated with ColumnType objects. ColumnType objects can be added to the ColumnListType by calling the method ColumnListType.getColumn().add(ColumnType column). ColumnType has the following properties:
String The column name should be the name of a column in the WFTASK database table. A list of column names can be retrieved using the methods ITaskMetadataService.getTaskAttributes(oracle.bpel.services.workflow.verification.IWorkflowContext) or ITaskMetadataService.getTaskAttributesForTaskDefinition(oracle.bpel.services.workflow.verification.IWorkflowContext, java.lang.String).String The display name to use for the column. A task list UI can make use of the display name specified in the view to override the standard column header with a column header specified by the user.TaskOptionalInfoType specifies additional information that the view query will return in addtion to that which can be queried directly from task columns. The TaskOptionalInfoType object contains a List of String values, that should correspond to values determined from the ITaskQueryService.OptionalInfo enum. Values can be added to the TaskOptionalInfoType by calling the method TaskOptionalInfoType.getTaskOptionalInfo().add(String value).TaskPredicateType specifies how the view should filter tasks. The TaskPredicateType object contains the following properties:
String value corresponding to a value of ITaskQueryService.AssignmentFilter enum.String optional keyword search string. If this parameter is null, it is omitted from all query. If not null, predicates will be added to the query to perform SQL 'like' operation (of the form LIKE '%keyword%') on the following task attributes: task title, identification key, all textAttributes in task, task number (only if the keyword is a number)PredicateType object that specifies the additional conditions in the view query. The simplest way to construct a PredicateType object is to construct a Predicate, and then use the method Predicate.getPredicateType() to obtain the PredicateType object that represents the Predicate.TaskOrderingType specifies how the Tasks selected by the view should be ordered. The TaskOrderingType object contains a List of OrderingClauseType objects. OrderingClauseTypes can be added to the TaskOrderingType by calling the method TaskOrderingType.getClause().add(OrderingClauseType clause). Each OrderingClauseType specifies a single ordering clause, using the following properties:
String Should be Ordering.ASCENDING_ORDER or Ordering.DESCENDING_ORDER. Default is ascending.boolean Should null values be listed first or last.String name of column to sort on. The column name should be the a column on the WFTASK table. A list of column names can be retrieved using the methods ITaskMetadataService.getTaskAttributes(oracle.bpel.services.workflow.verification.IWorkflowContext) or ITaskMetadataService.getTaskAttributesForTaskDefinition(oracle.bpel.services.workflow.verification.IWorkflowContext, java.lang.String).ChartType A client application may use this property to define how task counts should be aggregated when using the method ITaskQueryService.queryViewAggregatedTasks(oracle.bpel.services.workflow.verification.IWorkflowContext, java.lang.String, oracle.bpel.services.workflow.repos.Predicate, oracle.bpel.services.workflow.repos.Column, boolean, boolean). ChartType has the following properties:
String The name of the column the task counts should be grouped by.ChartType.SelectValuesType optionally specifies a list of values from the groupByColumn that should be selected for aggregation. If no selectValues are selected, then all agregation is over all values of the groupBy columnboolean if true, results will be ordered by the counts, if false, results will be ordered by the values of the group by column.boolean if true, results will be in ascending order, otherwise results will be in descending order.ViewGranteeListType A view can be granted to other users, allowing the grantee users to query tasks using the view. Depending on the grant type specified, grantees will either query data as the view owner (seeing the same data as the view owner sees), or query their own data, filteted by the view. Grantees are able to query, but not update the view definition. ViewGranteeListType contains a List of ViewGranteeType objects. ViewGranteeType objects can be added to the ViewGranteeListType using the method ViewGranteeListType.getGrantee().add(ViewGranteeType grantee). Each ViewGranteeType defines the grant of the view to another user, and has the following properties:
StringIUserMetadataService.UserTaskViewGrantType enumeration ("DATA" or "DEFINITION").String the name of the grantee.String the name of the IdentityService realm the grantee belongs to.String currently unused. The type of grantee ("USER" or "GROUP"). Granting of views to groups is not currently supported.ctx - authenticated IWorkflowContext for user.view - UserViewDetail that defines view to be created.UserViewDetail that was created, with viewId populated.WorkflowException - if non-admin user attempts to create a view belonging to another user, or some other error condition occurs.UserViewDetail updateUserTaskView(IWorkflowContext ctx, UserViewDetail view) throws WorkflowException
UserViewDetail object. See createUserTaskView(oracle.bpel.services.workflow.verification.IWorkflowContext, oracle.bpel.services.workflow.user.model.UserViewDetail) for a description of the UserViewDetail object.ctx - authenticated IWorkflowContext for user.view - UserViewDetail that defines view to be updated.UserViewDetail that was updated.WorkflowException - if non-admin user attempts to update a view belonging to another user, or some other error condition occurs.void deleteUserTaskView(IWorkflowContext ctx, java.lang.String viewId) throws WorkflowException
ctx - authenticated IWorkflowContext for user.viewId - String unique identifier for view.WorkflowException - if non-admin user attempts to delete a view belonging to another user, or some other error condition occurs.ViewGrant updateGrantedTaskView(IWorkflowContext ctx, ViewGrant grant) throws WorkflowException
ViewGrant, which affect how the view is displayed to them. They may not update the definition of the view itself. The properties they may update are:
String grantee may choose to use a different name for the view to the one chosen by the view's owner.String grantee may choose to use a different description for the view to the one chosen by the view's owner.boolean Can be used by UI to determine how to display the view. In the sample worklist application, granted views marked as "hidden" are not displayed in the list of views in the user's task listing page.ctx - authenticated IWorkflowContext for user.grant - ViewGrant object containing updated properties.ViewGrant object.WorkflowException - if non-admin user attempts to update a view grant granted to another user, or some other error condition occurs.UserPreferences getUserPreferences(IWorkflowContext ctx, Participant user) throws WorkflowException
UserPreferences object.
User preferences are a set of name value pairs, stored against a specfic user. They can be used by client programs for implementing user-specific preferences. The sample worklist application uses user preferences for storing such information as what size the main application window should be, and how many rows should be returned in paging queries.
The UserPreferences object contains a List of UserPreferenceType objects, each of which represents a name value pair. The properties of UserPreferenceType are:
PrincipleRefType The user who set this preference.String The name of this preference.String The value of this preference.ctx - authenticated IWorkflowContext for user.user - Participant user to get preferences for.UserPreferences list of UserPreferenceType objects.WorkflowException - if non-admin user attempts to query the preferences for another user, or some other error condition occurs.UserPreferences setUserPreferences(IWorkflowContext ctx, UserPreferences prefs) throws WorkflowException
UserPreferences object.
User preferences are a set of name value pairs, stored against a specfic user. They can be used by client programs for implementing user-specific preferences. The sample worklist application uses user preferences for storing such information as what size the main application window should be, and how many rows should be returned in paging queries.
The UserPreferences object contains a List of UserPreferenceType objects, each of which represents a name value pair. The properties of UserPreferenceType are:
PrincipleRefType The user who set this preference.String The name of this preference.String The value of this preference.ctx - authenticated IWorkflowContext for user.prefs - UserPreferences list of UserPreferenceType objects.UserPreferences the updated User Preferences.WorkflowException - if non-admin user attempts to update the preferences for another user, or some other error condition occurs.UserPreferences getPublicPreferences(IWorkflowContext ctx, Participant user) throws WorkflowException
ctx - authenticated IWorkflowContext for user.user - Participant user to get public preferences for.UserPreferences list of UserPreferenceType objects.WorkflowException - if some error condition occurs.UserPreferences setPublicPreferences(IWorkflowContext ctx, UserPreferences prefs) throws WorkflowException
ctx - authenticated IWorkflowContext for user.prefs - UserPreferences list of UserPreferenceType objects.UserPreferences the updated public User Preferences.WorkflowException
|
Oracle Fusion Middleware Workflow Services Java API Reference for Oracle SOA Suite 11g Release 1 (11.1.1) E10660-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||