Purchasing

Get Involved. Join the Conversation.

Topic

    Sabarish Ganda
    How to add a new stage in BPM worklist and add creator as...Answered
    Topic posted April 11, 2019 by Sabarish GandaSilver Medal: 2,000+ Points, tagged Approvals, FAQ, How-To, Setup 
    117 Views, 9 Comments
    Title:
    How to add a new stage in BPM worklist and add creator as the approver to that task
    Summary:
    How to add a new stage in BPM worklist and add creator as the approver to that task
    Content:

    We have specific business requirement to have different levels of approvals, to accomodate that requirement, we need to create a new stage and add the purchase order buyer to that stage as the approver. 

     

    To add creator as the approver, we need to use Expression builder, can anyone advise how to include task creator as the approver by using Expression Builder

    Version:
    Oracle Fusion R13

    Best Comment

    Kim Powell

    Would you be able to try:

    1) Add Approver - Supervisory

    2) Set starting participant to: HierarchyBuilder.getPrincipal(task.creator,-1,"","")

    3) Set top participant to: HierarchyBuilder.getPrincipal(task.creator,-1,"","")

    4) Number of levels to: 1

    Thank you,

    Kim

    Comment

     

    • Suman Guha

      Please provide business use case that's leading to this requirement.

      • Sabarish Ganda

        Hi Suman,

         

        We have a requirement to include same approver twice in the process in Serial (one for Reassigning to someone and another is actual approval)., so our thinking is to create a new stage. 

        Please advise us.

        Thanks,

        Sabarish.

      • Sabarish Ganda

        Hi Suman,

        Do you suggest any solution?

         

         

         

    • *** E S

      Hi,

      If you are planning to use BPM worklist for PO approvals for your requirement, then following values would help you to acheive it.

      Case 1 : Buyer is the Approver

      Use,

      List Builder : Resource, Response Type : Required

      User : PurchasingDocumentHeader.buyerUserName

       

      Case 2 : Task Creator as Approver

      Use,

      List Builder : Resource, Response Type : Required

      User : Task.creator

       

      Above Approver setups would work based on the conditions you use. 

      Hope it helps,

      Regards,

      *** E S

      • Sabarish Ganda

        Hi E S, 

        Thanks for the steps. I tried case 2, but not successful. If possible can you please help me how to include Task.Creater in the Expression Builder.

         

        Thanks,

        Sabarish.

        • Kim Powell

          Would you be able to try:

          1) Add Approver - Supervisory

          2) Set starting participant to: HierarchyBuilder.getPrincipal(task.creator,-1,"","")

          3) Set top participant to: HierarchyBuilder.getPrincipal(task.creator,-1,"","")

          4) Number of levels to: 1

          Thank you,

          Kim

    • Kim Powell

      Would you be able to explain the use case for adding a task creator as an approver in a little more detail?  

      Attached is an image of the instructions for sending to the task.creator for approval.

      Do you have remaining open questions?