Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle BPM Suite
11g Release 1 (11.1.1.6.3)
E25378-06


oracle.bpel.services.workflow.runtimeconfig
Interface IRuntimeConfigService


public interface IRuntimeConfigService

The RuntimeConfigService is used to query and update metadata specific to the runtime operation of the Workflow Service. It is used for querying and setting flexfield mappings, for querying the what Dynamic Assignment Functions are available, and for querying and setting the URIs used to display task details.

An instance of IRuntimeConfigService can be created by calling IWorkflowServiceClient.getRuntimeConfigService(). An instance of IWorkflowServiceClient can be created using the WorkflowServiceClientFactory.

All the RuntimeConfigService methods take IWorkflowContext as their first parameter. The IWorkflowContext object allows the RuntimeConfigService 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).

In most cases, any authenticated user can use the query methods, but only a user with specific privileges can use methods that update data.

Many of the parameters and return types of the methods are JAXB model objects from the package oracle.bpel.services.workflow.runtimeconfig.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.runtimeconfig.model.ObjectFactory.

Since:
10.1.3.1.0

Nested Class Summary
static class IRuntimeConfigService.WorkflowExtension
          Enumeration that lists all the workflow extensions supported

 

Method Summary
 void bulkUpdateApprovalGroup(IWorkflowContext wctx, ApprovalGroup ag)
          Bulk updates an approval group.To be used when bulk changes are made to the approval group content.
 void createApprovalGroup(IWorkflowContext wctx, ApprovalGroup ag)
          Creates an approval group
This API is available only if Approval Management Extension is enabled
 AttributeLabel createAttributeLabel(IWorkflowContext ctx, AttributeLabelType label)
          Creates a new label for a Task flexfield attribute from the supplied AttributeLabel object.
 void createInGroup(IWorkflowContext wctx, java.lang.String approvalGroupName, ApprovalGroupMemberType approvalGroupMember)
          Create a member in approval group
This API is available only if Approval Management Extension is enabled
 PayloadMapping createPayloadMapping(IWorkflowContext ctx, PayloadMappingType mapping)
          Creates a mapping between a specific task defintion, and a task flexfield attribute, using an attribute label.
 void deleteApprovalGroup(IWorkflowContext wctx, java.lang.String approvalGroupName)
          Deletes an approval group
This API is available only if Approval Management Extension is enabled
 void deleteAttributeLabel(IWorkflowContext ctx, java.lang.String labelId)
          Deletes the attribute label with the suppled labelId.
 void deleteFromGroup(IWorkflowContext wctx, java.lang.String approvalGroupName, ApprovalGroupMemberType approvalGroupMember)
          Delete a member from approval group
This API is available only if Approval Management Extension is enabled
 void deletePayloadMapping(IWorkflowContext ctx, PayloadMappingType mapping)
          Deletes the payload mapping described by the supplied PayloadMapping object.
 void deleteTaskDisplayInfo(IWorkflowContext ctx, TaskDisplayInfoType taskDisplayInfo)
          Deletes all instances of a particular task display information.
 ApprovalGroup getApprovalGroup(IWorkflowContext wctx, java.lang.String approvalGroupName)
          Gets an approval group
This API is available only if Approval Management Extension is enabled
 AttributeLabelUsageList getAttributeLabelUsages(IWorkflowContext ctx, java.lang.String attributeType)
          Gets a list of attribute labels and their usages by payload mappings.
 java.util.List<PayloadMappingType> getBPMProcessPayloadMappings(IWorkflowContext ctx, java.lang.String processDN)
          Gets a list of payload flexfield mappings that have been defined for the specified, BPM Process in the form of a PayloadMappingsList object.
 org.w3c.dom.Element getConfiguration(IWorkflowContext adminCtx)
          Returns the current workflow configuration settings as an org.w3c.dom.Element object.
 java.util.List<DynamicAssignFunctionType> getDynamicAssignmentFunctions(IWorkflowContext ctx, oracle.bpel.services.workflow.assignment.dynamic.IDynamicAssignmentPattern.AssigneeType assigneeType)
          Gets a list of the currently registered dynamic assignment functions.
 DynamicAssignFunctionList getGroupDynamicAssignmentFunctions(IWorkflowContext ctx)
          Deprecated. since 11.1.1.6.3 - use getDynamicAssignmentFunctions(oracle.bpel.services.workflow.verification.IWorkflowContext, oracle.bpel.services.workflow.assignment.dynamic.IDynamicAssignmentPattern.AssigneeType) with an assigneeType of AssigneeType.GROUP instead.
 java.lang.String getInternalServerURL()
          Retrieves the internal server url from the fabric config manager.
 java.lang.String getJndiURLFromFabricConfig()
          Retrieves the server url from the fabric config manager
 java.lang.String getServerURLFromFabricConfig()
          Retrieves the SOA server url.
 java.util.List<IRuntimeConfigService.WorkflowExtension> getSupportedWorkflowExtensions()
          Get list of supported workflow extensions
 TaskDisplayInfoList getTaskDisplayInfo(IWorkflowContext ctx, java.lang.String taskDefinitionNamespace, java.lang.String compositeVersion, java.lang.String applicationName)
          Deprecated. since 11.1.1.4.0. Use getTaskDisplayInfo(IWorkflowContext,String,String,String,String) instead.
 java.util.List<TaskDisplayInfoType> getTaskDisplayInfo(IWorkflowContext ctx, java.lang.String taskDefinitionNamespace, java.lang.String compositeVersion, java.lang.String partitionName, java.lang.String applicationName)
          Retreives information relating to the URI to be used by client applications to display the task details for tasks of a particular type, in the form of a TaskDisplayInfoList object.
 java.util.List<TaskDisplayInfoType> getTaskDisplayInfoByTaskDefinitionId(IWorkflowContext ctx, java.lang.String taskDefinitionId, java.lang.String applicationName)
          Retreives information relating to the URI to be used by cleint applications to display the task details for tasks of a particular type, in the form of a TaskDisplayInfoList object.
 TaskStatus getTaskStatus(IWorkflowContext ctx, java.lang.String taskDefinitionId, java.lang.String taskDefinitionNamespace, java.lang.String compositeInstanceId)
          Get the status of a task instance corresponding to a particular task definition and composite instance.
 UcmInfo getUCMInfo(IWorkflowContext context, UcmRequest request)
           
 DynamicAssignFunctionList getUserDynamicAssignmentFunctions(IWorkflowContext ctx)
          Deprecated. since 11.1.1.6.3 - use getDynamicAssignmentFunctions(oracle.bpel.services.workflow.verification.IWorkflowContext, oracle.bpel.services.workflow.assignment.dynamic.IDynamicAssignmentPattern.AssigneeType) with an assigneeType of AssigneeType.USER instead.
 PayloadMappingsList getWorkflowPayloadMappings(IWorkflowContext ctx, java.lang.String workflowId)
          Gets a list of payload flexfield mappings that have been defined for the specified task type, in the form of a PayloadMappingsList object.
 ApprovalGroupNameList searchApprovalGroups(IWorkflowContext wctx, java.lang.String searchString, java.lang.String searchType, java.lang.String sortType)
          Fetches a list of matching approval group names
This API is available only if Approval Management Extension is enabled
 void setTaskDisplayInfo(IWorkflowContext ctx, java.lang.String taskDefinitionNamespace, java.lang.String compositeVersion, java.lang.String partitionName, java.util.List<TaskDisplayInfoType> taskDisplayInfoList)
          Sets information relating to the URI to be used by client applications to display the task details for tasks of a particular type, in a particular partition, in the form of a list of TaskDisplayInfoType objects.
 void setTaskDisplayInfo(IWorkflowContext ctx, java.lang.String taskDefinitionNamespace, java.lang.String compositeVersion, TaskDisplayInfoList taskDisplayInfo)
          Deprecated. since 11.1.1.4.0. Use setTaskDisplayInfo(IWorkflowContext, String, String, String, List) instead.
 void updateApprovalGroup(IWorkflowContext wctx, ApprovalGroup ag)
          Updates an approval group
This API is available only if Approval Management Extension is enabled
 AttributeLabel updateAttributeLabel(IWorkflowContext ctx, AttributeLabelType label)
          Updates an existing attribute label using the supplied AttributeLabel object.
 void updateInGroup(IWorkflowContext wctx, java.lang.String approvalGroupName, ApprovalGroupMemberType approvalGroupMember)
          Update a member in approval group
This API is available only if Approval Management Extension is enabled

 

Method Detail

getWorkflowPayloadMappings

PayloadMappingsList getWorkflowPayloadMappings(IWorkflowContext ctx,
                                               java.lang.String workflowId)
                                               throws WorkflowException
Gets a list of payload flexfield mappings that have been defined for the specified task type, in the form of a PayloadMappingsList object. A payload mapping defines a mapping between Tasks of a particular type and a flexfield attribute column on the WFTASK table (such as TextAttribute1), via an AttributeLabel. The mapping may also specify how the value of the flexfield attribute should be determined, either via an xpath expression or by specfifying a payload attribute. The PayloadMappingsList contains a List of PayloadMappingType objects. See createPayloadMapping(oracle.bpel.services.workflow.verification.IWorkflowContext, oracle.bpel.services.workflow.runtimeconfig.model.PayloadMappingType) for a complete description of the PayloadMappingType object.

This method should only be used for querying payload mappings for Human Workflow Tasks. The method getBPMProcessPayloadMappings(oracle.bpel.services.workflow.verification.IWorkflowContext, java.lang.String) should be used to query payload mappings for BPM Processes.

Parameters:
ctx - an authenticated IWorkflowContext
workflowId - String the TaskDefinitionId of the task type to query mappings for.
Returns:
PayloadMappingsList contains a List of PayloadMappingType objects.
Throws:
WorkflowException - if some error condition occurs.

getBPMProcessPayloadMappings

java.util.List<PayloadMappingType> getBPMProcessPayloadMappings(IWorkflowContext ctx,
                                                                java.lang.String processDN)
                                                                throws WorkflowException
Gets a list of payload flexfield mappings that have been defined for the specified, BPM Process in the form of a PayloadMappingsList object. A payload mapping defines a mapping between process instances (of a particular process) and a flexfield attribute column on the WFTASK table (such as TextAttribute1), via an AttributeLabel. The mapping may also specify how the value of the flexfield attribute should be determined, either via an xpath expression or by specfifying a payload attribute. The method returns a List of PayloadMappingType objects. See createPayloadMapping(oracle.bpel.services.workflow.verification.IWorkflowContext, oracle.bpel.services.workflow.runtimeconfig.model.PayloadMappingType) for a complete description of the PayloadMappingType object.

This method should only be used for querying payload mappings for BPM Processes. The method getWorkflowPayloadMappings(oracle.bpel.services.workflow.verification.IWorkflowContext, java.lang.String) should be used to query payload mappings for Human Workflow Tasks.

Parameters:
ctx - an authenticated IWorkflowContext
processDN - String the unique id for a particular BPM Process deployment
Returns:
a List of PayloadMappingType objects.
Throws:
WorkflowException - if some error condition occurs.

createAttributeLabel

AttributeLabel createAttributeLabel(IWorkflowContext ctx,
                                    AttributeLabelType label)
                                    throws WorkflowException
Creates a new label for a Task flexfield attribute from the supplied AttributeLabel object. Only users with the workflow.mapping.publicFlexField privilege can create attribute labels, and only users with the workflow.mapping.protectedFlexField privilege can create attribute labels for protected flexfields. An AttributeLabel is associated with a particular Task flexfield. (Flexfield columns are the general purpose columns named TextAttribute1...20, NumberAttribute1...10, DateAttribute1...10, ProtectedTextAttribute1...20 and so on). An AttributeLabel allows a more meaningful name to be assigned to a flexfield column (for example, a label named "CustomerName" is more meaningful than "TextAttribute1"). PayloadMappings map task payload attributes to AttributeLabels - a single AttributeLabel can be associated with more than one PayloadMapping. This allows payload attributes from different tasks that share the same semantic meaning to be mapped to a common label. For example, a number of task types may contain payload attributes that contain a customer name - all of them can be mapped to a single "CustomerName" label.

The label name can be used when displaying mapped flexfield columns for tasks of a particular type or types. The method ITaskMetadataService.getTaskAttributesForTaskDefinition(oracle.bpel.services.workflow.verification.IWorkflowContext, java.lang.String) will return a list of task attributes including any flexfield attributes that have been mapped for that task defintion. The flexfield attributes in the list will have a display name derived from the appropriate AttributeLabel name. It is possible to provide internationalization support for AttributeLabel names, by adding entries to the WorkflowLabels.properties file. See the Workflow Services chapter of the BPEL Process Manager Developer's Guide for more details.

The AttributeLabel object contains the following properties: