Task delegate issue from one user to another issue/ it self

109 views
Skip to first unread message

srinivasul...@awpl.co

unread,
Oct 25, 2016, 12:04:38 AM10/25/16
to jBPM Development
Hi All, 
I am facin one issue to delegate tha task from one user to another user. please find the below log. according to this log the psusr1 is the potential owner of the current task. but he is not able to delegate task user it self and this user as part of role rest-all. Please give me the solution.

2016-10-24 18:23:01,591 WARN  [org.kie.remote.services.rest.exception.DescriptiveExceptionHandler] (default task-23) Exception thrown when processing request [/task/129/delegate?targetEntityId=psusr1&userId=psusr1]; responding with status 500: org.kie.remote.services.rest.exception.KieRemoteRestOperationException: User '[UserImpl:'DSCDADMIN']' was unable to execute operation 'Delegate' on task id 129 due to a no 'current status' match
at org.kie.remote.services.rest.exception.KieRemoteRestOperationException.internalServerError(KieRemoteRestOperationException.java:151) [kie-remote-services-6.4.0.Final.jar:6.4.0.Final]
at org.kie.remote.services.cdi.ProcessRequestBean.doTaskOperation(ProcessRequestBean.java:419) [kie-remote-services-6.4.0.Final.jar:6.4.0.Final]

Caused by: org.jbpm.services.task.exception.PermissionDeniedException: User '[UserImpl:'psusr1']' was unable to execute operation 'Delegate' on task id 129 due to a no 'current status' match
at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.evalCommand(MVELLifeCycleManager.java:155) [jbpm-human-task-core-6.4.0.Final.jar:6.4.0.Final]

regards,
Srini..

Maciej Swiderski

unread,
Oct 25, 2016, 1:11:58 AM10/25/16
to Srinivasulu Munagala, jBPM Development
the error means that the task is in a state that is not possible to delegate. The rules are described here https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/main/resources/operations-dsl.mvel#L74-L88

So double check what user and in what status task is when you attempt to delegate. Best would be to perform this operation as business admin of that task to make it simple.

Maciej

--
You received this message because you are subscribed to the Google Groups "jBPM Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-development+unsubscribe@googlegroups.com.
To post to this group, send email to jbpm-development@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-development/e6aa974f-6002-4173-99aa-044b5ec1222e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

srinivasul...@awpl.co

unread,
Oct 25, 2016, 1:23:16 AM10/25/16
to jBPM Development, srinivasul...@awpl.co
HI Maciej,
Thanks for your reply. identified the issue when i am doing rest calls continuously some time fist and second call is executing fine. when i am making third call it showing unauthorized in my application console not in JBPM console but same userid password iam using for three calls. is there any rest session expiration issue in JBPM 6.4- final version. if it is not where is the setting to resolve. please help me.

Thanks
Srini...


On Tuesday, October 25, 2016 at 10:41:58 AM UTC+5:30, Maciej Swiderski wrote:
the error means that the task is in a state that is not possible to delegate. The rules are described here https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/main/resources/operations-dsl.mvel#L74-L88

So double check what user and in what status task is when you attempt to delegate. Best would be to perform this operation as business admin of that task to make it simple.

Maciej
2016-10-25 6:04 GMT+02:00 <srinivasul...@awpl.co>:
Hi All, 
I am facin one issue to delegate tha task from one user to another user. please find the below log. according to this log the psusr1 is the potential owner of the current task. but he is not able to delegate task user it self and this user as part of role rest-all. Please give me the solution.

2016-10-24 18:23:01,591 WARN  [org.kie.remote.services.rest.exception.DescriptiveExceptionHandler] (default task-23) Exception thrown when processing request [/task/129/delegate?targetEntityId=psusr1&userId=psusr1]; responding with status 500: org.kie.remote.services.rest.exception.KieRemoteRestOperationException: User '[UserImpl:'DSCDADMIN']' was unable to execute operation 'Delegate' on task id 129 due to a no 'current status' match
at org.kie.remote.services.rest.exception.KieRemoteRestOperationException.internalServerError(KieRemoteRestOperationException.java:151) [kie-remote-services-6.4.0.Final.jar:6.4.0.Final]
at org.kie.remote.services.cdi.ProcessRequestBean.doTaskOperation(ProcessRequestBean.java:419) [kie-remote-services-6.4.0.Final.jar:6.4.0.Final]

Caused by: org.jbpm.services.task.exception.PermissionDeniedException: User '[UserImpl:'psusr1']' was unable to execute operation 'Delegate' on task id 129 due to a no 'current status' match
at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.evalCommand(MVELLifeCycleManager.java:155) [jbpm-human-task-core-6.4.0.Final.jar:6.4.0.Final]

regards,
Srini..

--
You received this message because you are subscribed to the Google Groups "jBPM Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-developme...@googlegroups.com.
To post to this group, send email to jbpm-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages