How to get tasks assigned as business administrator to the user in Administrators group in BPM Suite 6

Solution Unverified - Updated -

Environment

  • Red Hat JBoss BPM Suite (BPMS)
    • 6.x

Issue

  • For a project that is embedding the BPM Engine and executing a process. MvelUserGroupCallbackImpl is used to set up users and a user named 'xyz' is added to the 'Administrators' group . Now It would be expected that the user 'xyz' should be able to retrieve tasks using the getTasksAssignedAsBusinessAdministrator method; however this does not appear to be the case.
    When the process is started that creates a human task and run getTasksAssignedAsBusinessAdministrator("xyz", "en-UK") you get an empty list. But when you do the same passing in "Administrators" instead of "xzy" you get back the tasks as expected.
  • Can we set the business administrator for the following scenarios in a process?
  1. Entire process
  2. For each task

Resolution

Please note the default business administrator for a task is always Administrator. It can be overridden by setting task input called BusinessAdministratorId as described in BPM Suite 6 - Development Guide.

If it is required to assign a custom BusinessAdministrator for all the tasks in a process flow, user needs to set a process variable named BusinessAdministratorIdProcess with type String . Now, if user wants to assign this new Business Administrator for all the user tasks in the process, then the user should create a new task variable named BusinessAdministratorId (the name should strictly the same) and map it with the previously created process variable BusinessAdministratorIdProcess.

Attached is a process definition org.jbpm.MultipleTaskTest.v1.0.bpmn2 which demonstrates this example for reference. Just keep it in mind that the new Business Administrator (e.g. customBA) needs to be a user authenticated for log-in to Business Central , and if user logs-in using this user in Business Central application user should be able to see the tasks (where customBA user is listed as a Business Administrator) listed in Tasks -> Tasks List view of Business Central. While using BPMS 6.2.0 it already comes with a separate view of Admin where users can view all such tasks.

Attachments

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments