1 Reply Latest reply: Sep 4, 2013 4:27 AM by 08542278 RSS

    Dynamic Approval Group causing Errors

      We are trying to create a Dynamic Approval group.
      This Dynamic Approval Groups will provide a way to create approval groups through a custom Java class at runtime.

      Steps followed are :-

      •Writing a custom dynamic approval group class for the custom implementation

      •Registering the custom dynamic approval group using the worklist apps UI

      •Making the class file available in a globally well known directory that is part of the SOA class path

      1. Class accepts Task and Returns a List containing 2 Approvers from a PLSQL procedure.
      PLSQL Procedure is created in the DEV_SOAINFRA schema.

      2. Have registered Dynamic Approval Group in the Worklist apps UI as :
           2.1 Login to http://localhost:8001/integration/worklistapp as Admin user
           2.2 Click Administration and Select Approval Group Tab
           2.3 Select Create Dynamic Group from the list,to create a Dynamic Approval Group
           2.4 Enter Group name as -
                XXDynamicAG and
           class name as -
           2.5 Click on Task Configuration and in the Action of the Rule enter the name of the Approval Group as - "XXDynamicAG"
      3. Copy the class and put it into : $MW_HOME\Oracle_SOA1\soa\modules\oracle.soa.ext_11.1.1\classes
      Create com directory inside classes and cts inside com as our package is - com/cts/DynamicAG.class

      There is a BPEL Process to which this Task belongs to which have the Configuration of the Dynamic Approval Group.
      While testing the BPEL Process it's giving following error :-

      [soa_server1] [ERROR] [] [oracle.soa.services.workflow.amx] [tid: orabpel.invoke.pool-4.thread-6] [userId: <anonymous>] [ecid: 967e628afa39bf30:452711b3:13559a032ee:-8000-0000000000000349,0:1:100000011] [APP: soa-infra] [composite_name: ApprovalService_ABCS] [component_name: ApprovalService_Task] [component_instance_id: 200165] [composite_instance_id: 170006] <.> Dynamic Approval Group expansion error.[[
      Could not retrieve approvers from the dynamic Approval Group: DynamicAG.class.
      Ensure that the Dynamic Approval Group has been correctly implemented.


      Dynamic Approval Group expansion error.
      Could not retrieve approvers from the dynamic Approval Group: DynamicAG.class.
      Ensure that the Dynamic Approval Group has
      been correctly implemented.

           at oracle.bpel.services.workflow.task.impl.ApprovalGroupListBuilder.getDynamicGroupMembers(ApprovalGroupListBuilder.java:395)
           at oracle.bpel.services.workflow.task.impl.ApprovalGroupListBuilder.getGroupMembers(ApprovalGroupListBuilder.java:292)
           at oracle.bpel.services.workflow.task.impl.ApprovalGroupListBuilder.getAllGroupMembers(ApprovalGroupListBuilder.java:167)
           at oracle.bpel.services.workflow.task.impl.ApprovalGroupListBuilder.getParticipantList(ApprovalGroupListBuilder.java:110)
           at oracle.bpel.services.workflow.task.impl.AbstractParticipantListBuilder.proxyGetParticipantList(AbstractParticipantListBuilder.java:379)
           at oracle.bpel.services.workflow.task.impl.RoutingSlipInterpretor.evaluate(RoutingSlipInterpretor.java:3690)
           at oracle.bpel.services.workflow.task.impl.RoutingSlipInterpretor.evaluateOnOutcomeUpdatedOrInfoSubmitted(RoutingSlipInterpretor.java:2115)
           at oracle.bpel.services.workflow.task.impl.RoutingSlipInterpretor.evaluateOnOutcomeUpdatedOrInfoSubmitted(RoutingSlipInterpretor.java:2145)
           at oracle.bpel.services.workflow.task.impl.RoutingSlipInterpretor.evaluateOnOutcomeUpdatedOrInfoSubmitted(RoutingSlipInterpretor.java:2145)

      Any pointers will be appreciated.