Discussion:
[jboss-user] [jBPM] - Re: PermissionDeniedException on task Claim
alphan arslan
2012-04-26 09:46:48 UTC
Permalink
alphan arslan [https://community.jboss.org/people/aalphan] created the discussion

"Re: PermissionDeniedException on task Claim"

To view the discussion, visit: https://community.jboss.org/message/732357#732357

--------------------------------------------------------------
Hi José
Maybe its too late but i wanna share my solution for others

I had the same issue but i solve the problem by adding modified org/jbpm/task/service/operations-dsl.mvel file to the classpath
You can change the operation requirements with this file
Operation.Claim
        : [ new OperationCommand().{
                status = [ Status.Ready,Status.Reserved ],
                allowed = [Allowed.Anyone, Allowed.PotentialOwner, Allowed.BusinessAdministrator ],   
                setNewOwnerToUser = true,          
                newStatus = Status.Reserved
            } ],
this solved my problem

In an other way you can extend TaskService by changing the Map<Operation, List<OperationCommand>> operations field and use this with the TaskServer implementations

regards
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/732357#732357]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
José Luis Granda
2012-04-26 10:46:17 UTC
Permalink
José Luis Granda [https://community.jboss.org/people/jlgranda81] created the discussion

"Re: PermissionDeniedException on task Claim"

To view the discussion, visit: https://community.jboss.org/message/732373#732373

--------------------------------------------------------------
thank you alphan, this information is very usefully for me.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/732373#732373]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
xiaoxiao long
2012-10-16 06:58:09 UTC
Permalink
xiaoxiao long [https://community.jboss.org/people/mimi_2012] created the discussion

"Re: PermissionDeniedException on task Claim"

To view the discussion, visit: https://community.jboss.org/message/764946#764946

--------------------------------------------------------------
hi jose ,did you hava solve this question ,I also meet this problem,could help me
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/764946#764946]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
José Luis Granda
2012-10-16 13:33:07 UTC
Permalink
José Luis Granda [https://community.jboss.org/people/jlgranda] created the discussion

"Re: PermissionDeniedException on task Claim"

To view the discussion, visit: https://community.jboss.org/message/765061#765061

--------------------------------------------------------------
Hi xiaoxian, you can try alphan suggestion this works.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/765061#765061]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
xiaoxiao long
2012-10-17 03:28:29 UTC
Permalink
xiaoxiao long [https://community.jboss.org/people/mimi_2012] created the discussion

"Re: PermissionDeniedException on task Claim"

To view the discussion, visit: https://community.jboss.org/message/766195#766195

--------------------------------------------------------------
thank you ,I have solve,because i before Claim the task ,the task hava been claimed by another user,



by the way ,I want ask your another question,did you  know how
h2. https://community.jboss.org/message/764715#764715 [Jbpm5.2] to get the image showing the current status of  a workflow in the web application?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/766195#766195]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
cold gin
2013-07-19 12:51:56 UTC
Permalink
cold gin [https://community.jboss.org/people/cold_gin] created the discussion

"Re: PermissionDeniedException on task Claim"

To view the discussion, visit: https://community.jboss.org/message/828860#828860

--------------------------------------------------------------
I receive the same exact error when my tasks go from claimed to released status (in rapid succession, ie - click claim/release, claim/release, buttons quickly ). I tried creating a modified operations-dsl.mvel with the settings described above. I added this file to my project classpath, but it had no effect. I also tried to directly modify the operations-dsl.mvel that resides inside of jbpm-human-task-war.war, but that did not work either. Here is the error message:

15:30:58,189 ERROR [stderr] (Thread-74) org.jbpm.task.service.PermissionDeniedException: User '[User:'...']' was unable to execution operation 'Release' on task id ... due to a no 'current status' match

Any suggestions on what I could try next? jBPM version is 5.4.0.

Thanks in advance.

--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/828860#828860]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...