Multiple Dynamic approval

Confluence User - 13 Nov, 2019

Good day, all.

Our team are quite new to Joget.

We are designing a process that required multiple approvers based on the selected users in a form. We are using the Multiple approval app as a basis, but that only work if you assign user mappings to the process Approval Group before you are starting the Apply activity.

We are starting the process, Apply, and in the Apply activity, we want to add the selected participants to the Approval Group, or a DB table, that will then kick off the Generate Approval Tool that will generate the Approve activity for each of these selected users. Like I mentioned above, this works only if you add the users to the Approval Group and then start the Apply activity.

I'm sure this is achievable, we just need some example or info on how to get the Assignment users after the process has started. i.e: In the Generate Approval Bean Shell script:

userList = WorkflowUtil.getAssignmentUsers(appDef.getAppId(), workflowAssignment.getProcessDefId(), workflowAssignment.getProcessId(), workflowAssignment.getProcessVersion(), workflowAssignment.getActivityId(), "", approverGroupParticipantId);

How can this be changed to get the newly assigned users for the current process? This is how the Approvers Form looks like, not all have to be selected, but at least one need to be selected.

Currently, we are using a DB table to store a comma sep list of the Approvers, so we do have this list with the users' id.

ex: JOH_VER,JOH_WOT,KEN_PIL,PAM_GRA,SIM_NKO,YOG_NAI

All we need to do is to create an assignment for the Approve process for each one in the list.

Any help will be greatly appreciated.

Thanks, BIS team Reutech Communications




forms;user

1


18 Nov, 2019
confluenceUser
confluenceUser

Hi, I believe you can assign tasks to custom users by using Bean Shell for Process Participant.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print