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

oracle.bpm.services.processmetadata
Interface IProcessMetadataService


public interface IProcessMetadataService

Process metadata service APIs can be used to get information about deployed BPMN processes.
This includes:
1. listing of all projects
2. details about individual project
3. listing of all processes
4. details about individual process
5. get initiatable processes
6. get process roles
7. get the organizational unit to which a process is deployed


Method Summary
 java.util.List<ProcessMetadataSummary> getInitiatableProcesses(IBPMContext context)
          Gets the list of ProcessMetadataSummary objects that can be initiated in the current composite.
 java.lang.String getOrganizationalUnit(IBPMContext context, java.lang.String compositeDN)
          Get the organizational unit to which a process is deployed
 ProcessMetadataSummary getProcessMetadataSummary(IBPMContext context, java.lang.String compositeDN, java.lang.String processName)
          Gets the ProcessMetadataSummary object that describes the Process with the specified compositeDN and processName.
 java.util.Map<java.lang.String,java.lang.String> getProcessRoles(IBPMContext context, java.lang.String compositeDN)
          Get the process roles in a composite as a map with logical role as key and physical role as value
 ProjectMetadataSummary getProjectMetadataSummary(IBPMContext context, java.lang.String compositeDN, java.lang.String projectName)
          Gets the ProjectMetadataSummary object that describes the Project with the specified compositeDN and processName.
 java.util.List<ProcessMetadataSummary> listProcessMetadataSummary(IBPMContext context, java.lang.String keyword, java.lang.String sortAttribute, java.lang.String sortOrder)
          Gets a List of the ProcessMetadataSummary objects that match the specified keyword(s).
 java.util.List<ProcessMetadataSummary> listProcessMetadataSummary(IBPMContext context, java.lang.String keyword, java.lang.String sortAttribute, java.lang.String sortOrder, boolean includeMigratedProcesses)
          Gets a List of the migrated ProcessMetadataSummary objects that match the specified keyword(s).
 java.util.List<ProcessMetadataSummary> listProcessMetadataSummary(IBPMContext context, java.lang.String compositeDN, java.lang.String keyword, java.lang.String sortAttribute, java.lang.String sortOrder)
          Gets a List of the ProcessMetadataSummary objects that match the specified keyword(s).
 java.util.List<ProcessMetadataSummary> listProcessMetadataSummary(IBPMContext context, java.lang.String compositeDN, java.lang.String keyword, java.lang.String sortAttribute, java.lang.String sortOrder, boolean includeMigratedProcesses)
          Gets a List of the migrated ProcessMetadataSummary objects that match the specified keyword(s).
 java.util.List<ProjectMetadataSummary> listProjectMetadataSummary(IBPMContext context, java.lang.String keyword, java.lang.String sortAttribute, java.lang.String sortOrder)
          Gets a List of the ProjectMetadataSummary objects that match the specified keyword(s).
 java.util.List<ProjectMetadataSummary> listProjectMetadataSummary(IBPMContext context, java.lang.String keyword, java.lang.String sortAttribute, java.lang.String sortOrder, boolean includeMigratedProjects)
          Gets a List of the ProjectMetadataSummary objects that match the specified keyword(s).
 java.util.List<ProjectMetadataSummary> listProjectMetadataSummary(IBPMContext context, java.lang.String compositeDN, java.lang.String keyword, java.lang.String sortAttribute, java.lang.String sortOrder)
          Gets a List of the ProjectMetadataSummary objects that match the specified keyword(s).
 java.util.List<ProjectMetadataSummary> listProjectMetadataSummary(IBPMContext context, java.lang.String compositeDN, java.lang.String keyword, java.lang.String sortAttribute, java.lang.String sortOrder, boolean includeMigratedProjects)
          Gets a List of the ProjectMetadataSummary objects that match the specified keyword(s).
 

Method Detail

listProjectMetadataSummary

java.util.List<ProjectMetadataSummary> listProjectMetadataSummary(IBPMContext context,
                                                                  java.lang.String keyword,
                                                                  java.lang.String sortAttribute,
                                                                  java.lang.String sortOrder,
                                                                  boolean includeMigratedProjects)
                                                                  throws ProcessMetadataServiceException
Gets a List of the ProjectMetadataSummary objects that match the specified keyword(s). The ProjectMetadataSummary objects describe information about the deployed BPM processes. The user could choose to include the migrated projects as well in the result. If the BPMContext is that of an admin, then the listProjectMetadata returns all the ProjectMetadataSummary objects. If the BPMContext is not of that of an admin, then the listProjectMetadata returns the ProjectMetadataSummary objects based on the roles and Organizational Unit.

Parameters:
context - The BPM context
keyword - The keyword to search for Project metadata summary.
sortAttribute - The attribute to sort the results by.
sortOrder - The sort order - either 'ASC' or 'DESC'
includeMigratedProjects - - boolean flag. If true, then include the migrated projects as well; otherwise not
Returns:
List List of ProjectMetadataSummary objects
Throws:
ProcessMetadataServiceException - if an error occurs

listProjectMetadataSummary

java.util.List<ProjectMetadataSummary> listProjectMetadataSummary(IBPMContext context,
                                                                  java.lang.String compositeDN,
                                                                  java.lang.String keyword,
                                                                  java.lang.String sortAttribute,
                                                                  java.lang.String sortOrder,
                                                                  boolean includeMigratedProjects)
                                                                  throws ProcessMetadataServiceException
Gets a List of the ProjectMetadataSummary objects that match the specified keyword(s). The ProjectMetadataSummary objects describe information about the deployed BPM processes. The user could choose to include the migrated projects as well in the result. If the BPMContext is that of an admin, then the listProjectMetadata returns all the ProjectMetadataSummary objects. If the BPMContext is not of that of an admin, then the listProjectMetadata returns the ProjectMetadataSummary objects based on the roles and Organizational Unit.

Parameters:
context - The BPM context
compositeDN - String the compositeDN
keyword - The keyword to search for Project metadata summary.
sortAttribute - The attribute to sort the results by.
sortOrder - The sort order - either 'ASC' or 'DESC'
includeMigratedProjects - - boolean flag. If true, then include the migrated projects as well; otherwise not
Returns:
List List of ProjectMetadataSummary objects
Throws:
ProcessMetadataServiceException - if an error occurs

listProcessMetadataSummary

java.util.List<ProcessMetadataSummary> listProcessMetadataSummary(IBPMContext context,
                                                                  java.lang.String keyword,
                                                                  java.lang.String sortAttribute,
                                                                  java.lang.String sortOrder,
                                                                  boolean includeMigratedProcesses)
                                                                  throws ProcessMetadataServiceException
Gets a List of the migrated ProcessMetadataSummary objects that match the specified keyword(s). The ProcessMetadataSummary objects describe information about the deployed BPM processes. The user could choose to include the migrated processes as well in the result. If the BPMContext is that of an admin, then the listProcessMetadata returns all the ProcessMetadataSummary objects. If the BPMContext is not of that of an admin, then the listProcessMetadata returns the ProcessMetadataSummary objects based on the roles and Organizational Unit.

Parameters:
context - The BPM context
keyword - The keyword to search for Process metadata summary. This keyword could be from processName, compositeName, label, organizationalUnitId.
sortAttribute - The attribute to sort the results by. The possible values are processName, compositeName, label, organizationalUnitId. If none of these values are specified, it would default to 'processName'
sortOrder - The sort order - either 'ASC' or 'DESC'
includeMigratedProcesses - - boolean flag. If true, then include the migrated processes as well; otherwise not
Returns:
List List of ProcessMetadataSummary objects
Throws:
ProcessMetadataServiceException - if an error occurs

listProcessMetadataSummary

java.util.List<ProcessMetadataSummary> listProcessMetadataSummary(IBPMContext context,
                                                                  java.lang.String compositeDN,
                                                                  java.lang.String keyword,
                                                                  java.lang.String sortAttribute,
                                                                  java.lang.String sortOrder,
                                                                  boolean includeMigratedProcesses)
                                                                  throws ProcessMetadataServiceException
Gets a List of the migrated ProcessMetadataSummary objects that match the specified keyword(s). The ProcessMetadataSummary objects describe information about the deployed BPM processes. The user could choose to include the migrated processes as well in the result. If the BPMContext is that of an admin, then the listProcessMetadata returns all the ProcessMetadataSummary objects. If the BPMContext is not of that of an admin, then the listProcessMetadata returns the ProcessMetadataSummary objects based on the roles and Organizational Unit.

Parameters:
context - The BPM context
compositeDN - String the compositeDN
keyword - The keyword to search for Process metadata summary. This keyword could be from processName, compositeName, label, organizationalUnitId.
sortAttribute - The attribute to sort the results by. The possible values are processName, compositeName, label, organizationalUnitId. If none of these values are specified, it would default to 'processName'
sortOrder - The sort order - either 'ASC' or 'DESC'
includeMigratedProcesses - - boolean flag. If true, then include the migrated process as well; otherwise not
Returns:
List List of ProcessMetadataSummary objects
Throws:
ProcessMetadataServiceException - if an error occurs

listProjectMetadataSummary

java.util.List<ProjectMetadataSummary> listProjectMetadataSummary(IBPMContext context,
                                                                  java.lang.String keyword,
                                                                  java.lang.String sortAttribute,
                                                                  java.lang.String sortOrder)
                                                                  throws ProcessMetadataServiceException
Gets a List of the ProjectMetadataSummary objects that match the specified keyword(s). The ProjectMetadataSummary objects describe information about the deployed BPM processes. If the BPMContext is that of an admin, then the listProjectMetadata returns all the ProjectMetadataSummary objects. If the BPMContext is not of that of an admin, then the listProjectMetadata returns the ProjectMetadataSummary objects based on the roles and Organizational Unit.

Parameters:
context - The BPM context
keyword - The keyword to search for Project metadata summary.
sortAttribute - The attribute to sort the results by.
sortOrder - The sort order - either 'ASC' or 'DESC'
Returns:
List List of ProjectMetadataSummary objects
Throws:
ProcessMetadataServiceException - if an error occurs

listProjectMetadataSummary

java.util.List<ProjectMetadataSummary> listProjectMetadataSummary(IBPMContext context,
                                                                  java.lang.String compositeDN,
                                                                  java.lang.String keyword,
                                                                  java.lang.String sortAttribute,
                                                                  java.lang.String sortOrder)
                                                                  throws ProcessMetadataServiceException
Gets a List of the ProjectMetadataSummary objects that match the specified keyword(s). The ProjectMetadataSummary objects describe information about the deployed BPM processes. If the BPMContext is that of an admin, then the listProjectMetadata returns all the ProjectMetadataSummary objects. If the BPMContext is not of that of an admin, then the listProjectMetadata returns the ProjectMetadataSummary objects based on the roles and Organizational Unit.

Parameters:
context - The BPM context
compositeDN - String the compositeDN
keyword - The keyword to search for Project metadata summary.
sortAttribute - The attribute to sort the results by.
sortOrder - The sort order - either 'ASC' or 'DESC'
Returns:
List List of ProjectMetadataSummary objects
Throws:
ProcessMetadataServiceException - if an error occurs

getProjectMetadataSummary

ProjectMetadataSummary getProjectMetadataSummary(IBPMContext context,
                                                 java.lang.String compositeDN,
                                                 java.lang.String projectName)
                                                 throws ProcessMetadataServiceException
Gets the ProjectMetadataSummary object that describes the Project with the specified compositeDN and processName.

Parameters:
context - The BPM context
compositeDN - String the compositeDN
projectName - The name of the project
Returns:
ProjectMetadataSummary object that provides information on the specified Process object.
Throws:
ProcessMetadataServiceException - if an error occurs

listProcessMetadataSummary

java.util.List<ProcessMetadataSummary> listProcessMetadataSummary(IBPMContext context,
                                                                  java.lang.String keyword,
                                                                  java.lang.String sortAttribute,
                                                                  java.lang.String sortOrder)
                                                                  throws ProcessMetadataServiceException
Gets a List of the ProcessMetadataSummary objects that match the specified keyword(s). The ProcessMetadataSummary objects describe information about the deployed BPM processes. If the BPMContext is that of an admin, then the listProcessMetadata returns all the ProcessMetadataSummary objects. If the BPMContext is not of that of an admin, then the listProcessMetadata returns the ProcessMetadataSummary objects based on the roles and Organizational Unit.

Parameters:
context - The BPM context
keyword - The keyword to search for Process metadata summary. This keyword could be from processName, compositeName, label, organizationalUnitId.
sortAttribute - The attribute to sort the results by. The possible values are processName, compositeName, label, organizationalUnitId. If none of these values are specified, it would default to 'processName'
sortOrder - The sort order - either 'ASC' or 'DESC'
Returns:
List List of ProcessMetadataSummary objects
Throws:
ProcessMetadataServiceException - if an error occurs

listProcessMetadataSummary

java.util.List<ProcessMetadataSummary> listProcessMetadataSummary(IBPMContext context,
                                                                  java.lang.String compositeDN,
                                                                  java.lang.String keyword,
                                                                  java.lang.String sortAttribute,
                                                                  java.lang.String sortOrder)
                                                                  throws ProcessMetadataServiceException
Gets a List of the ProcessMetadataSummary objects that match the specified keyword(s). The ProcessMetadataSummary objects describe information about the deployed BPM processes. If the BPMContext is that of an admin, then the listProcessMetadata returns all the ProcessMetadataSummary objects. If the BPMContext is not of that of an admin, then the listProcessMetadata returns the ProcessMetadataSummary objects based on the roles and Organizational Unit.

Parameters:
context - The BPM context
compositeDN - String the compositeDN
keyword - The keyword to search for Process metadata summary. This keyword could be from processName, compositeName, label, organizationalUnitId.
sortAttribute - The attribute to sort the results by. The possible values are processName, compositeName, label, organizationalUnitId. If none of these values are specified, it would default to 'processName'
sortOrder - The sort order - either 'ASC' or 'DESC'
Returns:
List List of ProcessMetadataSummary objects
Throws:
ProcessMetadataServiceException - if an error occurs

getProcessMetadataSummary

ProcessMetadataSummary getProcessMetadataSummary(IBPMContext context,
                                                 java.lang.String compositeDN,
                                                 java.lang.String processName)
                                                 throws ProcessMetadataServiceException
Gets the ProcessMetadataSummary object that describes the Process with the specified compositeDN and processName.

Parameters:
context - The BPM context
compositeDN - String the compositeDN
processName - The name of the process
Returns:
ProcessMetadataSummary object that provides information on the specified Process object.
Throws:
ProcessMetadataServiceException - if an error occurs

getInitiatableProcesses

java.util.List<ProcessMetadataSummary> getInitiatableProcesses(IBPMContext context)
                                                               throws ProcessMetadataServiceException
Gets the list of ProcessMetadataSummary objects that can be initiated in the current composite.

Parameters:
context - The BPM context
Returns:
List List of ProcessMetadataSummary objects
Throws:
ProcessMetadataServiceException - if an error occurs

getProcessRoles

java.util.Map<java.lang.String,java.lang.String> getProcessRoles(IBPMContext context,
                                                                 java.lang.String compositeDN)
                                                                 throws ProcessMetadataServiceException
Get the process roles in a composite as a map with logical role as key and physical role as value

Parameters:
context - The BPM context
compositeDN - The compositeDN
Returns:
Map Map with logical role as key and physical role as value
Throws:
ProcessMetadataServiceException - if an error occurs

getOrganizationalUnit

java.lang.String getOrganizationalUnit(IBPMContext context,
                                       java.lang.String compositeDN)
                                       throws ProcessMetadataServiceException
Get the organizational unit to which a process is deployed

Parameters:
context - The BPM context
compositeDN - The compositeDN of the process
Returns:
String The organizational unit
Throws:
ProcessMetadataServiceException - if an error occurs

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

Copyright © 2009, 2013, Oracle and/or its affiliates. All rights reserved.