cancel
Showing results for 
Search instead for 
Did you mean: 

Sending task for approval depending on approval id entered by user

Former Member
0 Kudos

Hi Experts,

I have a requirement in which i have to send a task for approval depending on approvers id entered by user i.e. say i have 2 human activities and in the first activity user has 5 options as his approver, which is second activity. Now depending on approver selected by user of first activity task should go in UWL of approver selected by user.

Please provide any document or any help on how to proceed.

Regards

Pranav

Accepted Solutions (1)

Accepted Solutions (1)

benjamin_notheis
Active Participant
0 Kudos

Assuming you have the selected approver in the WD Context of the first Human Activity, you need to map this to the process context in the first Human Activity's output mapping. For the second Human Activity, you chose to override the potential owner settings and specify it by using the built-in getPrincipal function. As parameter, you reuse the previously mapped process context element. Please bear in mind that the getPrincipal function expects the UME unique ID as parameter. Hence, try to model your process context to be of type string and being set with the UME unique ID of the selected approver.

Have fun!

Cheers, Benjamin

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

What if the user is not coming from the UME but from a different datasource, like LDAP. That user can still access Portal, but can he be assigned to a BPM task?

Many thanks,

Wesley.

Former Member
0 Kudos

Hello All,

Could you please anybody confirm that getPrincipals function is working fine for LDAP user IDs?

In production environment I am facing an issue where, tasks are not getting triggered for LDAP users.

In my scenario, I am passing unique name of user IDs as a string array into getPrincipals function to trigger tasks. Unique name what I am getting using API, contains special characters (\) in it

This ffunctionality is perfectly working fine in quality environment with UME user IDs.

Kindly requesting to provide any document or any help to resolve this issue.

Many Thanks

Ashwin.

Former Member
0 Kudos

Thanks to both of you for help.

Regards

Pranav

Former Member
0 Kudos

Hi Pranav,

As said by Benjamin, you need the Unique UME ID for all the users to whom you want to assign the task dynamically. You can do this in your Web Dynpro application by using the IUser api. Also you can retrive and store the unique names in the init of your WD application in first task and later on based on the selected conditions assign the task to a specified user. Same way we have implemented in one of the project.

Cheers,

Arafat