cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning role based on certain input Parameter values

Former Member
0 Kudos

My requirement is

when the form submitted, based on input parameter value "X", I have to assign the user for my action/role..

For an Example:

Form -> Vendor Parameter value= V1 or V2

If v1, in the visual approval Callable Object, if the Vendor value = V1 approver would be A , if the Vendor value = V2 approver would be B.

I can understand calling the users management.. but how to do the business logic before assigning the users?

Please help me on this

Thanks

Gopal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Initially Set the User for that particular action as "Filled from Context Parameter" , Before your Visual have a Business Logic Co to check the parameter value accordingly change the user and assign it to the Parameter which you have provided in Filled from Context Parameter.

Thanks

Gopal

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

This is quite simple.

1) In the following step to your visual approval step, create an alternate block, decision action and add a CO that is of type business logic.

2) In the business logic CO, go to the input tab and add VendValue as the input parameter name.

3)Go to the configuration tab of the CO, and then in the result states give 2 states as App1 and App2. Click on the button on the right to it and add your condition for each of them as needed.

For eg. App1 ===> the condition will be like this &VendValue& == 'V1'

and for

App2 ===> the condition will be like this &VendValue& == 'V2'

4) Now go to the process and then expand the newly added block. You'll find the result states. In that you can branch out for the approvals as needed and assign agents/roles to each of them as per your need.

Let me know if you still have questions

Cheers,

Sam

richard_hirsch
Active Contributor
0 Kudos

Hi,

Depending on how complicated the involved business log is, you could create a small web-service that has an input parameter of the vendor name and outputs the approver. You could then set the appropriate process role from the process context.

Dick

Former Member
0 Kudos

do i need to create webservice callable object inside the visual approval action?

if so, will that look for webservice triggering for run time role assignment before the default role triggers

can I use business logic object rather using webservice? anybody worked on business logic Callable object?

Thanks

Gopal