Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.9)
E10660-12


oracle.bpel.services.workflow.metadata.routingslip
Class RoutingSlipUtil

java.lang.Object
  extended by oracle.bpel.services.common.util.AbstractJaxbUtil
      extended by oracle.bpel.services.workflow.metadata.routingslip.RoutingSlipUtil


public class RoutingSlipUtil
extends AbstractJaxbUtil

Method Summary
 DynamicAssignment cloneDynamicAssignmentType(DynamicAssignmentType original)
          Creates a clone of the specified DynamicAssignmentType.
static java.util.List<java.lang.Object> cloneListsType(java.util.List<java.lang.Object> originalListsTypeList)
          Method to clone Listreturned from Rule Services.
 RoutingSlip createRoutingSlipFromType(RoutingSlipType routingSlipType)
          Create RoutingSlip from RoutingSlipType
static RoutingSlipUtil getInstance()
          Get the RoutingSlipUtil instance
 java.lang.String getJaxbContextString()
          Get the Jaxb Context String
static java.lang.Object getListObject(ListType listType)
          Get List Object from ListType.
static void getParticipantObjectListByType(java.util.List<java.lang.Object> participantList, java.lang.Class participantType, java.util.List<java.lang.Object> sameParticipantTypeList)
          Get a list of all objects of the same ParticipantsType
static java.lang.String getRulesetNameInListBuilder(ListType listType)
          Obtain ruleset name from ListType.
static void getRulesetNameListFromRoutingSlip(java.util.List<java.lang.Object> participantList, java.util.Collection<java.lang.String> rulesetNameCollection)
          Method to obtain all ruleset names from the RoutingSlip.
 java.lang.String getSchemaLocation()
          Get the XSD location.

 

Methods inherited from class oracle.bpel.services.common.util.AbstractJaxbUtil
cloneObject, cloneObject, createURL, getAbsoluteSchemaLocation, getClassLoader, getSchemaValidationErrors, marshal, marshal, marshal, schemaValidate, toElement, toString, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getJaxbContextString

public java.lang.String getJaxbContextString()
Get the Jaxb Context String
Specified by:
getJaxbContextString in class AbstractJaxbUtil
Returns:
a String value

getSchemaLocation

public java.lang.String getSchemaLocation()
Get the XSD location. This location is a resource location string like A.xsd, a/b/C.xsd The actual file location is determined from the classpath
Specified by:
getSchemaLocation in class AbstractJaxbUtil
Returns:
a String value

getInstance

public static RoutingSlipUtil getInstance()
Get the RoutingSlipUtil instance
Returns:
a RoutingSlipUtil value

cloneDynamicAssignmentType

public DynamicAssignment cloneDynamicAssignmentType(DynamicAssignmentType original)
                                             throws java.lang.Exception
Creates a clone of the specified DynamicAssignmentType. Clone is created in the same parent document as the orignal.
Parameters:
original -
Returns:
Throws:
java.lang.Exception

createRoutingSlipFromType

public RoutingSlip createRoutingSlipFromType(RoutingSlipType routingSlipType)
                                      throws WorkflowException
Create RoutingSlip from RoutingSlipType
Parameters:
routingSlipType - The RoutingSlipType object
Returns:
RoutingSlip
Throws:
WorkflowException

getRulesetNameListFromRoutingSlip

public static void getRulesetNameListFromRoutingSlip(java.util.List<java.lang.Object> participantList,
                                                     java.util.Collection<java.lang.String> rulesetNameCollection)
Method to obtain all ruleset names from the RoutingSlip. Depends on the type of collection being passed in rulesetNameCollection, rulesetName collected in this collection can be unique or repeated. For example, using ArrayList<String> to collect all the occurrence of ruleset names. Using HashSet<String> to collect all ruleset by its unique name.
Parameters:
participantList - Participants element from the RoutingSlip
rulesetNameCollection - An empty Collection can be used as a place holder to hold all ruleset names parsed from the RoutingSlip.
Throws:
WorkflowException

getRulesetNameInListBuilder

public static java.lang.String getRulesetNameInListBuilder(ListType listType)
Obtain ruleset name from ListType.
ListType case 1: <list> <ruleset> <name>MyRule2</name> </ruleset> </list>
ListType case 2: <list> <supervisory> <ruleset> <name>MyRule2</name> </ruleset> </supervisory> </list>
Parameters:
listType -
Returns:
ruleset name.
Throws:
WorkflowException

getListObject

public static java.lang.Object getListObject(ListType listType)
Get List Object from ListType.
Parameters:
listType -
Returns:
List Objet as an Object.

cloneListsType

public static java.util.List<java.lang.Object> cloneListsType(java.util.List<java.lang.Object> originalListsTypeList)
Method to clone Listreturned from Rule Services. Listcontains the following ListBuilder ApprovalGroupImpl; JobLevelImpl; LogicalPeopleGroupImpl; ManagementChainImpl; PositionImpl; ResourceListImpl; SupervisoryImpl;
Parameters:
originalListsTypeList -
Returns:
a copy of originalListsTypeList

getParticipantObjectListByType

public static void getParticipantObjectListByType(java.util.List<java.lang.Object> participantList,
                                                  java.lang.Class participantType,
                                                  java.util.List<java.lang.Object> sameParticipantTypeList)
Get a list of all objects of the same ParticipantsType
Parameters:
participantList - A list of Participants obtained from ParticipantsType using getParticipantOrSequentialParticipantOrAdhoc()
participantType - such as ParticipantsType.ForEach, ParticipantsType.Parallel,etc.
sameParticipantTypeList - An empty Object List holder which will be populated with all objects of the same participant type.
Throws:
WorkflowException

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.9)
E10660-12

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