Hide Forgot
Description of problem: According to WS-HumanTask specification (WS-HT), Business Administrator(e.g. user named Administrator) can forward active task. Reference: https://access.redhat.com/solutions/784453 However, Business Administrator fails to forward the task with the following exception by all of kie-api/Rest API/Remote Java API. org.jbpm.services.task.exception.PermissionDeniedException: User '[UserImpl:'Administrator']' does not have permissions to execute operation 'Forward' on task id 21 at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.evalCommand(MVELLifeCycleManager.java:119) at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.taskOperation(MVELLifeCycleManager.java:369) at org.jbpm.services.task.impl.TaskInstanceServiceImpl.forward(TaskInstanceServiceImpl.java:224) : Version-Release number of selected component (if applicable): 6.2.0 How reproducible: sample code of kie-api/Remote rest API are attached. Steps to Reproduce with Rest API. 1. create user named 'Administrator' with role 'admin' and 'rest-api' ./add-user.sh -a -g 'admin,rest-all' -u Administrator -p Password1! 2. start business process which contains human task 3. perform REST query with authenticating as user 'Administrator' by any REST client POST http://localhost:8080/business-central/rest/task/xx/forward?targetEntityId=john Actual results: forwarding failes with the following PermissionDeniedException org.jbpm.services.task.exception.PermissionDeniedException: User '[UserImpl:'Administrator']' does not have permissions to execute operation 'Forward' on task id 21 Expected results: task get forwarded successfully. Additional info:
Created attachment 1140291 [details] sample code of task forwarding which fails