Hello Experts,
I encounter an error when I'm trying to activate a task using Restful api
within KIE-WB.
I called
http://localhost:8080/jbpm-console/rest/task/612/activate with
the command [POST].
Knowing that in Query Parameters, I have been put {key=taskId, value=612}.
The Response was:
1. <?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
2. <response>
3. <status>FAILURE</status>
4. <url>/jbpm-console/org.kie.workbench.KIEWebapp/in.83157-35840
.erraiBus?z=0000&sse=1&clientId=83157-35840</url>
5. <error>User '[UserImpl:'salaboy']' was unable to
execution
operation 'Activate' on task id 612 due to a no 'current status'
match</error>
6. <stackTrace>org.jboss.resteasy.spi.UnauthorizedException: User
'[UserImpl:'salaboy']' was unable to execution operation
'Activate' on
task id 612 due to a no 'current status' match
7. at org.kie.services.remote.rest.RestProcessRequestBean
.doTaskOperationOnDeployment(RestProcessRequestBean.java:101)
8. at org.kie.services.remote.rest.RestProcessRequestBean
.doTaskOperation(RestProcessRequestBean.java:117)
9. at org.kie.services.remote.rest
.RestProcessRequestBean$Proxy$_$$_WeldClientProxy.doTaskOperation(
RestProcessRequestBean$Proxy$_$$_WeldClientProxy.java)
10. at org.kie.services.remote.rest.TaskResource.taskId_oper(
TaskResource.java:246)
11. at org.kie.services.remote.rest
.TaskResource$Proxy$_$$_WeldClientProxy.taskId_oper(
TaskResource$Proxy$_$$_WeldClientProxy.java)
12. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method
)
13. at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)
14. at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
15. at java.lang.reflect.Method.invoke(Method.java:606)
16. at org.jboss.resteasy.core.MethodInjectorImpl.invoke(
MethodInjectorImpl.java:155)
17. at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(
ResourceMethod.java:257)
18. at org.jboss.resteasy.core.ResourceMethod.invoke(
ResourceMethod.java:222)
19. at org.jboss.resteasy.core.ResourceMethod.invoke(
ResourceMethod.java:211)
20. at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(
SynchronousDispatcher.java:525)
21. at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
SynchronousDispatcher.java:502)
22. at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
SynchronousDispatcher.java:119)
23. at org.jboss.resteasy.plugins.server.servlet
.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
24. at org.jboss.resteasy.plugins.server.servlet
.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
25. at org.jboss.resteasy.plugins.server.servlet
.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
26. at javax.servlet.http.HttpServlet.service(HttpServlet.java:
847)
27. at org.apache.catalina.core.ApplicationFilterChain
.internalDoFilter(ApplicationFilterChain.java:329)
28. at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:248)
29. at org.jboss.weld.servlet.ConversationPropagationFilter
.doFilter(ConversationPropagationFilter.java:62)
30. at org.apache.catalina.core.ApplicationFilterChain
.internalDoFilter(ApplicationFilterChain.java:280)
31. at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:248)
32. at org.jboss.solder.servlet.exception.CatchExceptionFilter
.doFilter(CatchExceptionFilter.java:65)
33. at org.apache.catalina.core.ApplicationFilterChain
.internalDoFilter(ApplicationFilterChain.java:280)
34. at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:248)
35. at org.jboss.solder.servlet.event.ServletEventBridgeFilter
.doFilter(ServletEventBridgeFilter.java:74)
36. at org.apache.catalina.core.ApplicationFilterChain
.internalDoFilter(ApplicationFilterChain.java:280)
37. at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:248)
38. at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter
(PluggableFilter.java:70)
39. at org.apache.catalina.core.ApplicationFilterChain
.internalDoFilter(ApplicationFilterChain.java:280)
40. at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:248)
41. at org.uberfire.security.server.UberFireSecurityFilter
.doFilter(UberFireSecurityFilter.java:266)
42. at org.apache.catalina.core.ApplicationFilterChain
.internalDoFilter(ApplicationFilterChain.java:280)
43. at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:248)
44. at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:275)
45. at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:161)
46. at org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:397)
47. at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(
WebNonTxEmCloserValve.java:50)
48. at org.jboss.as.web.security.SecurityContextAssociationValve
.invoke(SecurityContextAssociationValve.java:153)
49. at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:155)
50. at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:102)
51. at org.apache.catalina.authenticator.SingleSignOn.invoke(
SingleSignOn.java:416)
52. at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
53. at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:368)
54. at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:877)
55. at org.apache.coyote.http11
.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
56. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:930)
57. at java.lang.Thread.run(Thread.java:745)
58. Caused by: org.jbpm.services.task.exception.PermissionDeniedException
: User '[UserImpl:'salaboy']' was unable to execution operation
'Activate' on task id 612 due to a no 'current status' match
59. at org.jbpm.services.task.internals.lifecycle
.MVELLifeCycleManager.evalCommand(MVELLifeCycleManager.java:128)
60. at org.jbpm.services.task.internals.lifecycle
.MVELLifeCycleManager.taskOperation(MVELLifeCycleManager.java:322)
61. at org.jbpm.services.task.identity
.UserGroupLifeCycleManagerDecorator.taskOperation(
UserGroupLifeCycleManagerDecorator.java:46)
62. at org.jbpm.services.task.impl.TaskInstanceServiceImpl
.activate(TaskInstanceServiceImpl.java:109)
63. at org.jbpm.services.task.commands.ActivateTaskCommand
.execute(ActivateTaskCommand.java:48)
64. at org.jbpm.services.task.commands.ActivateTaskCommand
.execute(ActivateTaskCommand.java:29)
65. at org.jbpm.services.task.commands
.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(
TaskCommandExecutorImpl.java:65)
66. at org.drools.core.command.impl.AbstractInterceptor
.executeNext(AbstractInterceptor.java:41)
67. at org.jbpm.services.task.persistence
.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:53)
68. at org.jbpm.services.task.commands.TaskCommandExecutorImpl
.execute(TaskCommandExecutorImpl.java:40)
69. at org.jbpm.services.task.impl.command
.CommandBasedTaskService.execute(CommandBasedTaskService.java:128)
70. at org.kie.services.remote.rest.RestProcessRequestBean
.doTaskOperationOnDeployment(RestProcessRequestBean.java:98)
71. ... 50 more
72. </stackTrace>
73. </response>
I didn't know what I'm missing !.
Have you please some suggestions?.
Thanks in advance.