Any documentation on how to do dynamic role assignment?

I have tried to deploy the Dynamic Workflow sample apps listed on the Volt wiki and able to find where you populate the level as well as the next approver, however I cannot find any code that assign the next approver name to one of the approver role (Review 1 - 4 or Approve). All the action button on all of the stages have no action defined so I currently have no idea on how to dynamic role assignment. Also the Review 1 - 4 and Approve role only have Read access, aren't they suppose to have Update access ?

So how can we actually do dynamic role assignment in Domino Volt ?

Tinus Riyanto - Prisma Global Solusi

Hi Tinus,

Please check the below video on "The New Release and What It Means for You (Webinar Replay)" which has explanation on "Dynamic role assignment".

https://www.youtube.com/watch?v=WSW34t1HhCw&feature=youtu.be

Hope this may help.

Thank you.

Regards

Shrikant J

Thanks Shrikant, but how do I actually build that service call ? When I tried to duplicate the screen capture, on the output section I can only select items on my forms. So let's say I can do a search and put the value of my manager's in NAB into the next approver field, but then what do I do next ?

How do I link the content of said items into the roles ? Does the field name have to be next approver (hardcoded) for dynamic role assignment to work ?

For dynamic role assignment the step are:

  1. Define an open role
  2. Make sure the role has update privileges in the approval stage
  3. Assign user by service call via the action button to the open role
  4. Send email notification to the role

This assumes you have a source to call via service that will return the user who needs to approve. i.e. get my manager.

I will cover this in the webinar tomorrow.

https://register.gotowebinar.com/register/6807266013676425228

Thanks Marty

Is there any particular format requirement for the name that will be the output for the assign user service call ? Does it have to be canonical, email address, common name, etc ? I see on yesterday's webminar example that you use email address and wondering if said field content have to be in email address format since we usually use canonical format in Notes Client application.

Hi Tinus -

You bring up a good point. The assignment to the role should be done with the users Volt ID. So yes I would map the User ID to the Role vs the Internet Address.

However it appears there is an issue in 1.0.1 with doing a notification to a role (which has a User ID assignment). This will be fixed in the next release.

So my recommendation would be (and I need to update my materials - thank you):

  1. Use a service to call and assign the approver's User ID to the open role
  2. Add a field to the form for that gets the approvers email address and use that field for Notifications (and not the role).