1
0
-1

Hello,

i make a claim form. If user want to submit a claim, they must get approval from their manager first before get Finance approval. So, i should set 'Map Participants to User' :

a. User -> type : Performer

b. Manager-> type : Performer's HOD

If i set like that, i should setting the user first.

for example in Joget.org Organization :

a. User -> Cat

b. Manager -> Clark (set as HOD)

so, after Cat fill the claim form, Clark automated will accept activity in his inbox to approve Cat's claim.

In my case, i want to add 'Name of manager' field in my claim form. 

If Cat type David as his manager (not Clark), so the next Activity (Manager Approval) will go to David's Inbox and a notification email will send to David's email, NOT Clark.

How should i do, to solve this?

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      Sorry i'm not good with explanation so let me show you this example.

      First set workflow variable (if you set it on workflow designer it may warn you this "warning status unused variable"  just do not worry about it because we use it to store manager's name. ) 

       

       

      Second, in manager's name field (field that you want to type your manager's name) set workflow variable to match with the name that mention at the first picture.

       

       

      Finally, map to workflow variable like this picture below.

       

      then it will send Performer's form to the next participant who has his username match with the manager name field at step 2.

      This method may not directly solve your problem but it might give you another idea.

       

      1. Nana

        Yeay, its work! thank you so much, worrarat.. at first i give variable name in transition between Activity.. But, in the fact the variable just need to be added in properties of the process. :) bless you!

      CommentAdd your comment...
    2.  
      1
      0
      -1

      Use map to workflow variable, it may solve your problem 

      just change "map to Performer's HOD" to "map to workflow variable"

      here the example link Map to Workflow Variable

       

      Hope this help (smile)

      1. Nana

        i still not get it right. if i set 'assignee' as a workflow variable in transition from Activity 'Fill Claim Form' to Activity 'Manager Approval Form'. What expression i should type as 'assignee' value? e.g status=='Approved' , status=='Rejected' thankyou :)

      CommentAdd your comment...