[jboss-user] [jBPM] - Re: PermissionDeniedException on task Claim

alphan arslan do-not-reply at jboss.com
Thu Apr 26 05:46:48 EDT 2012


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120426/4d5d01b8/attachment.html 


More information about the jboss-user mailing list