Seems like some sample workflows are not compatible with master
krystofNovotny opened this issue · 3 comments
When running the current version of idm, some of the workflows aren't properly read by Activiti framework.
Steps to reproduce:
- install idm
6.0.0-SNAPSHOT
- run sample workflow
./startup.sh -p samples/workflow/
- follow instructions in
samples/workflow/README
- step 7 causes application error (stacktrace below)
Error while closing command context
org.activiti.engine.ActivitiException: Unknown property used in expression: ${decision=='accept'}
at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:53)
at org.activiti.engine.impl.el.UelExpressionCondition.evaluate(UelExpressionCondition.java:53)
at org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior.leave(ExclusiveGatewayActivityBehavior.java:70)
at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:47)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:132)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:462)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:440)
at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140)
at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66)
at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:55)
at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)
at org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior.signal(UserTaskActivityBehavior.java:228)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:419)
at org.activiti.engine.impl.persistence.entity.TaskEntity.complete(TaskEntity.java:203)
at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:52)
at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:24)
at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:59)
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
at org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:186)
at org.forgerock.openidm.workflow.activiti.impl.TaskInstanceResource.actionInstance(TaskInstanceResource.java:114)
at org.forgerock.json.resource.InterfaceCollectionInstance.handleAction(InterfaceCollectionInstance.java:34)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:63)
at org.forgerock.json.resource.Resources$CollectionInstanceIdContextFilter.filterAction(Resources.java:500)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:230)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.openidm.workflow.activiti.impl.ActivitiResource.handleAction(ActivitiResource.java:73)
at org.forgerock.openidm.workflow.activiti.impl.ActivitiServiceImpl.handleAction(ActivitiServiceImpl.java:218)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:63)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:52)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:52)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.ScriptedFilter$1.apply(ScriptedFilter.java:92)
at org.forgerock.openidm.filter.ScriptedFilter$1.apply(ScriptedFilter.java:89)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
at org.forgerock.openidm.filter.ScriptedFilter.filterRequest(ScriptedFilter.java:192)
at org.forgerock.openidm.filter.ScriptedFilter.filterAction(ScriptedFilter.java:88)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:50)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.audit.filter.AuditFilter$1.apply(AuditFilter.java:130)
at org.forgerock.openidm.audit.filter.AuditFilter$1.apply(AuditFilter.java:127)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:251)
at org.forgerock.openidm.audit.filter.AuditFilter.filterAction(AuditFilter.java:126)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:50)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$4.filterAction(ServletConnectionFactory.java:456)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.PassthroughFilter.filterAction(PassthroughFilter.java:50)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.PassthroughFilter.filterAction(PassthroughFilter.java:50)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:230)
at org.forgerock.json.resource.InternalConnection.actionAsync(InternalConnection.java:37)
at org.forgerock.json.resource.AbstractConnectionWrapper.actionAsync(AbstractConnectionWrapper.java:82)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1$1.actionAsync(ServletConnectionFactory.java:353)
at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:149)
at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:95)
at org.forgerock.json.resource.Requests$ActionRequestImpl.accept(Requests.java:185)
at org.forgerock.json.resource.http.RequestRunner.handleResult(RequestRunner.java:141)
at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:725)
at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:722)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.json.resource.http.HttpAdapter.doRequest(HttpAdapter.java:722)
at org.forgerock.json.resource.http.HttpAdapter.doAction(HttpAdapter.java:627)
at org.forgerock.json.resource.http.HttpAdapter.handle(HttpAdapter.java:291)
at org.forgerock.http.handler.Handlers$HandlerDescribableAsDescribableHandler.handle(Handlers.java:154)
at org.forgerock.http.filter.OptionsFilter.filter(OptionsFilter.java:77)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.swagger.OpenApiRequestFilter.filter(OpenApiRequestFilter.java:70)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.grantAccess(AuthenticationFramework.java:201)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.access$200(AuthenticationFramework.java:64)
at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:193)
at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:186)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:151)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:141)
at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:92)
at org.forgerock.openidm.auth.AuthFilterWrapper.filter(AuthFilterWrapper.java:95)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:60)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:301)
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:299)
at com.sun.proxy.$Proxy38.doFilter(Unknown Source)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:257)
at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:220)
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:299)
at com.sun.proxy.$Proxy38.doFilter(Unknown Source)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:276)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'decision'
at org.activiti.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83)
at org.activiti.engine.impl.juel.AstBinary$SimpleOperator.eval(AstBinary.java:27)
at org.activiti.engine.impl.juel.AstBinary.eval(AstBinary.java:106)
at org.activiti.engine.impl.juel.AstEval.eval(AstEval.java:50)
at org.activiti.engine.impl.juel.AstNode.getValue(AstNode.java:26)
at org.activiti.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114)
at org.activiti.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:33)
at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37)
at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25)
at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:50)
... 172 more
Resource exception: 500 Internal Server Error: "Unknown property used in expression: ${decision=='accept'}"
org.forgerock.json.resource.InternalServerErrorException: Unknown property used in expression: ${decision=='accept'}
at org.forgerock.openidm.workflow.activiti.impl.TaskInstanceResource.actionInstance(TaskInstanceResource.java:123)
at org.forgerock.json.resource.InterfaceCollectionInstance.handleAction(InterfaceCollectionInstance.java:34)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:63)
at org.forgerock.json.resource.Resources$CollectionInstanceIdContextFilter.filterAction(Resources.java:500)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:230)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.openidm.workflow.activiti.impl.ActivitiResource.handleAction(ActivitiResource.java:73)
at org.forgerock.openidm.workflow.activiti.impl.ActivitiServiceImpl.handleAction(ActivitiServiceImpl.java:218)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:63)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:52)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:52)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.ScriptedFilter$1.apply(ScriptedFilter.java:92)
at org.forgerock.openidm.filter.ScriptedFilter$1.apply(ScriptedFilter.java:89)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
at org.forgerock.openidm.filter.ScriptedFilter.filterRequest(ScriptedFilter.java:192)
at org.forgerock.openidm.filter.ScriptedFilter.filterAction(ScriptedFilter.java:88)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:50)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.audit.filter.AuditFilter$1.apply(AuditFilter.java:130)
at org.forgerock.openidm.audit.filter.AuditFilter$1.apply(AuditFilter.java:127)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:251)
at org.forgerock.openidm.audit.filter.AuditFilter.filterAction(AuditFilter.java:126)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:50)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$4.filterAction(ServletConnectionFactory.java:456)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.PassthroughFilter.filterAction(PassthroughFilter.java:50)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.PassthroughFilter.filterAction(PassthroughFilter.java:50)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:230)
at org.forgerock.json.resource.InternalConnection.actionAsync(InternalConnection.java:37)
at org.forgerock.json.resource.AbstractConnectionWrapper.actionAsync(AbstractConnectionWrapper.java:82)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1$1.actionAsync(ServletConnectionFactory.java:353)
at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:149)
at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:95)
at org.forgerock.json.resource.Requests$ActionRequestImpl.accept(Requests.java:185)
at org.forgerock.json.resource.http.RequestRunner.handleResult(RequestRunner.java:141)
at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:725)
at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:722)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.json.resource.http.HttpAdapter.doRequest(HttpAdapter.java:722)
at org.forgerock.json.resource.http.HttpAdapter.doAction(HttpAdapter.java:627)
at org.forgerock.json.resource.http.HttpAdapter.handle(HttpAdapter.java:291)
at org.forgerock.http.handler.Handlers$HandlerDescribableAsDescribableHandler.handle(Handlers.java:154)
at org.forgerock.http.filter.OptionsFilter.filter(OptionsFilter.java:77)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.swagger.OpenApiRequestFilter.filter(OpenApiRequestFilter.java:70)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.grantAccess(AuthenticationFramework.java:201)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.access$200(AuthenticationFramework.java:64)
at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:193)
at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:186)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:151)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:141)
at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:92)
at org.forgerock.openidm.auth.AuthFilterWrapper.filter(AuthFilterWrapper.java:95)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:60)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:301)
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:299)
at com.sun.proxy.$Proxy38.doFilter(Unknown Source)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:257)
at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:220)
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:299)
at com.sun.proxy.$Proxy38.doFilter(Unknown Source)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:276)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.activiti.engine.ActivitiException: Unknown property used in expression: ${decision=='accept'}
at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:53)
at org.activiti.engine.impl.el.UelExpressionCondition.evaluate(UelExpressionCondition.java:53)
at org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior.leave(ExclusiveGatewayActivityBehavior.java:70)
at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:47)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:132)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:462)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:440)
at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140)
at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66)
at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:55)
at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)
at org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior.signal(UserTaskActivityBehavior.java:228)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:419)
at org.activiti.engine.impl.persistence.entity.TaskEntity.complete(TaskEntity.java:203)
at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:52)
at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:24)
at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:59)
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
at org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:186)
at org.forgerock.openidm.workflow.activiti.impl.TaskInstanceResource.actionInstance(TaskInstanceResource.java:114)
... 116 more
Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'decision'
at org.activiti.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83)
at org.activiti.engine.impl.juel.AstBinary$SimpleOperator.eval(AstBinary.java:27)
at org.activiti.engine.impl.juel.AstBinary.eval(AstBinary.java:106)
at org.activiti.engine.impl.juel.AstEval.eval(AstEval.java:50)
at org.activiti.engine.impl.juel.AstNode.getValue(AstNode.java:26)
at org.activiti.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114)
at org.activiti.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:33)
at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37)
at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25)
at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:50)
... 172 more
I've done some digging and found out that the problem propably has to do with Activiti diagram migration.
I have
- Unzipped
unzip samples/workflow/workflow/contractorOnboarding.bar
- Migrated the
contractorOnboarding.bpmn20.xml
using script from this url https://backstage.forgerock.com/knowledge/kb/article/a94600613 and put it back to the.bar
file - now the error is different
2021-02-24 16:59:23:592 WARN Exception while executing createManagedUser : problem evaluating script: javax.script.ScriptException: org.forgerock.json.resource.ForbiddenException: Policy validation failed [ScriptTaskActivityBehavior]Error while closing command context
org.activiti.engine.ActivitiException: problem evaluating script: javax.script.ScriptException: org.forgerock.json.resource.ForbiddenException: Policy validation failed
at org.activiti.osgi.OsgiScriptingEngines.evaluate(OsgiScriptingEngines.java:66)
at org.activiti.osgi.OsgiScriptingEngines.evaluate(OsgiScriptingEngines.java:47)
at org.activiti.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior.execute(ScriptTaskActivityBehavior.java:78)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:132)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:462)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:440)
at org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior.leave(ExclusiveGatewayActivityBehavior.java:83)
at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:47)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:132)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:462)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:440)
at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140)
at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66)
at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:55)
at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)
at org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior.signal(UserTaskActivityBehavior.java:228)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:419)
at org.activiti.engine.impl.persistence.entity.TaskEntity.complete(TaskEntity.java:203)
at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:52)
at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:24)
at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:59)
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
at org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:186)
at org.forgerock.openidm.workflow.activiti.impl.TaskInstanceResource.actionInstance(TaskInstanceResource.java:114)
at org.forgerock.json.resource.InterfaceCollectionInstance.handleAction(InterfaceCollectionInstance.java:34)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:63)
at org.forgerock.json.resource.Resources$CollectionInstanceIdContextFilter.filterAction(Resources.java:500)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:230)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.openidm.workflow.activiti.impl.ActivitiResource.handleAction(ActivitiResource.java:73)
at org.forgerock.openidm.workflow.activiti.impl.ActivitiServiceImpl.handleAction(ActivitiServiceImpl.java:218)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:63)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:52)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:52)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.ScriptedFilter$1.apply(ScriptedFilter.java:92)
at org.forgerock.openidm.filter.ScriptedFilter$1.apply(ScriptedFilter.java:89)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
at org.forgerock.openidm.filter.ScriptedFilter.filterRequest(ScriptedFilter.java:192)
at org.forgerock.openidm.filter.ScriptedFilter.filterAction(ScriptedFilter.java:88)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:50)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.audit.filter.AuditFilter$1.apply(AuditFilter.java:130)
at org.forgerock.openidm.audit.filter.AuditFilter$1.apply(AuditFilter.java:127)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:251)
at org.forgerock.openidm.audit.filter.AuditFilter.filterAction(AuditFilter.java:126)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:50)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$4.filterAction(ServletConnectionFactory.java:456)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.PassthroughFilter.filterAction(PassthroughFilter.java:50)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.PassthroughFilter.filterAction(PassthroughFilter.java:50)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:230)
at org.forgerock.json.resource.InternalConnection.actionAsync(InternalConnection.java:37)
at org.forgerock.json.resource.AbstractConnectionWrapper.actionAsync(AbstractConnectionWrapper.java:82)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1$1.actionAsync(ServletConnectionFactory.java:353)
at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:149)
at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:95)
at org.forgerock.json.resource.Requests$ActionRequestImpl.accept(Requests.java:185)
at org.forgerock.json.resource.http.RequestRunner.handleResult(RequestRunner.java:141)
at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:725)
at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:722)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.json.resource.http.HttpAdapter.doRequest(HttpAdapter.java:722)
at org.forgerock.json.resource.http.HttpAdapter.doAction(HttpAdapter.java:627)
at org.forgerock.json.resource.http.HttpAdapter.handle(HttpAdapter.java:291)
at org.forgerock.http.handler.Handlers$HandlerDescribableAsDescribableHandler.handle(Handlers.java:154)
at org.forgerock.http.filter.OptionsFilter.filter(OptionsFilter.java:77)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.swagger.OpenApiRequestFilter.filter(OpenApiRequestFilter.java:70)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.grantAccess(AuthenticationFramework.java:201)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.access$200(AuthenticationFramework.java:64)
at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:193)
at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:186)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:151)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:141)
at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:92)
at org.forgerock.openidm.auth.AuthFilterWrapper.filter(AuthFilterWrapper.java:95)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:60)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:301)
at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:299)
at com.sun.proxy.$Proxy40.doFilter(Unknown Source)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:257)
at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:220)
at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:299)
at com.sun.proxy.$Proxy40.doFilter(Unknown Source)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:276)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.script.ScriptException: javax.script.ScriptException: org.forgerock.json.resource.ForbiddenException: Policy validation failed
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:155)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233)
at org.activiti.osgi.OsgiScriptingEngines.evaluate(OsgiScriptingEngines.java:64)
... 209 more
Caused by: javax.script.ScriptException: org.forgerock.json.resource.ForbiddenException: Policy validation failed
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:346)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:152)
... 211 more
Caused by: org.forgerock.json.resource.ForbiddenException: Policy validation failed
at org.forgerock.json.resource.ResourceException.newResourceException(ResourceException.java:224)
at org.forgerock.script.exception.ScriptThrownException.toResourceException(ScriptThrownException.java:119)
at org.forgerock.script.engine.Utils.adapt(Utils.java:248)
at org.forgerock.openidm.filter.ScriptedFilter.evalScript(ScriptedFilter.java:325)
at org.forgerock.openidm.filter.ScriptedFilter.evaluateOnRequest(ScriptedFilter.java:230)
at org.forgerock.openidm.filter.ScriptedFilter.filterRequest(ScriptedFilter.java:190)
at org.forgerock.openidm.filter.ScriptedFilter.filterCreate(ScriptedFilter.java:100)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:60)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:62)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.openidm.audit.filter.AuditFilter$2.apply(AuditFilter.java:146)
at org.forgerock.openidm.audit.filter.AuditFilter$2.apply(AuditFilter.java:143)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:251)
at org.forgerock.openidm.audit.filter.AuditFilter.filterCreate(AuditFilter.java:142)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:80)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:60)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$4.filterCreate(ServletConnectionFactory.java:464)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.openidm.filter.PassthroughFilter.filterCreate(PassthroughFilter.java:56)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:80)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:80)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.openidm.filter.PassthroughFilter.filterCreate(PassthroughFilter.java:56)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:80)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.json.resource.FilterChain.handleCreate(FilterChain.java:236)
at org.forgerock.json.resource.InternalConnection.createAsync(InternalConnection.java:48)
at org.forgerock.json.resource.AbstractAsynchronousConnection.create(AbstractAsynchronousConnection.java:50)
at org.forgerock.json.resource.AbstractConnectionWrapper.create(AbstractConnectionWrapper.java:100)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1$1.create(ServletConnectionFactory.java:238)
at org.forgerock.json.resource.AbstractConnectionWrapper.create(AbstractConnectionWrapper.java:100)
at org.forgerock.openidm.script.ResourceFunctions$CreateFunction.create(ResourceFunctions.java:189)
at org.forgerock.openidm.script.ResourceFunctions$CreateFunction.call(ResourceFunctions.java:173)
at org.forgerock.openidm.script.ResourceFunctions$CreateFunction.call(ResourceFunctions.java:86)
at org.forgerock.script.groovy.FunctionClosure.doCall(FunctionClosure.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215)
at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1254)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:47)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)
at Script2.run(Script2.groovy:20)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:343)
... 212 more
Caused by: org.forgerock.script.exception.ScriptThrownException: [object Object] {code=403, detail={result=false, failedPolicyRequirements=[{policyRequirements=[{policyRequirement=UNIQUE}], property=userName}]}, message=Policy validation failed}
at org.forgerock.script.javascript.RhinoScriptEngine$3.newScriptThrownException(RhinoScriptEngine.java:420)
at org.forgerock.script.javascript.RhinoScript.eval(RhinoScript.java:319)
at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.forgerock.script.registry.ScriptRegistryImpl$LibraryRecord.invoke(ScriptRegistryImpl.java:506)
at com.sun.proxy.$Proxy39.eval(Unknown Source)
at org.forgerock.script.registry.ScriptRegistryImpl$ScriptImpl.eval(ScriptRegistryImpl.java:776)
at org.forgerock.script.registry.ScriptRegistryImpl$ScriptImpl.eval(ScriptRegistryImpl.java:787)
at org.forgerock.openidm.filter.ScriptedFilter.evalScript(ScriptedFilter.java:322)
... 264 more
Caused by: org.mozilla.javascript.JavaScriptException: [object Object] (/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js#76)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11._c_anonymous_4(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js:76)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11.call(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11._c_anonymous_1(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js:87)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11.call(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11._c_script_0(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js:26)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11.call(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11.call(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11.exec(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js)
at org.forgerock.script.javascript.RhinoScript.eval(RhinoScript.java:303)
... 272 more
Resource exception: 500 Internal Server Error: "problem evaluating script: javax.script.ScriptException: org.forgerock.json.resource.ForbiddenException: Policy validation failed"
org.forgerock.json.resource.InternalServerErrorException: problem evaluating script: javax.script.ScriptException: org.forgerock.json.resource.ForbiddenException: Policy validation failed
at org.forgerock.openidm.workflow.activiti.impl.TaskInstanceResource.actionInstance(TaskInstanceResource.java:123)
at org.forgerock.json.resource.InterfaceCollectionInstance.handleAction(InterfaceCollectionInstance.java:34)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:63)
at org.forgerock.json.resource.Resources$CollectionInstanceIdContextFilter.filterAction(Resources.java:500)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:230)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.openidm.workflow.activiti.impl.ActivitiResource.handleAction(ActivitiResource.java:73)
at org.forgerock.openidm.workflow.activiti.impl.ActivitiServiceImpl.handleAction(ActivitiServiceImpl.java:218)
at org.forgerock.json.resource.Router.handleAction(Router.java:258)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:63)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:52)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:52)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.ScriptedFilter$1.apply(ScriptedFilter.java:92)
at org.forgerock.openidm.filter.ScriptedFilter$1.apply(ScriptedFilter.java:89)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
at org.forgerock.openidm.filter.ScriptedFilter.filterRequest(ScriptedFilter.java:192)
at org.forgerock.openidm.filter.ScriptedFilter.filterAction(ScriptedFilter.java:88)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:50)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.audit.filter.AuditFilter$1.apply(AuditFilter.java:130)
at org.forgerock.openidm.audit.filter.AuditFilter$1.apply(AuditFilter.java:127)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:251)
at org.forgerock.openidm.audit.filter.AuditFilter.filterAction(AuditFilter.java:126)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:50)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$4.filterAction(ServletConnectionFactory.java:456)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.PassthroughFilter.filterAction(PassthroughFilter.java:50)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.openidm.filter.PassthroughFilter.filterAction(PassthroughFilter.java:50)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:74)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:230)
at org.forgerock.json.resource.InternalConnection.actionAsync(InternalConnection.java:37)
at org.forgerock.json.resource.AbstractConnectionWrapper.actionAsync(AbstractConnectionWrapper.java:82)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1$1.actionAsync(ServletConnectionFactory.java:353)
at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:149)
at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:95)
at org.forgerock.json.resource.Requests$ActionRequestImpl.accept(Requests.java:185)
at org.forgerock.json.resource.http.RequestRunner.handleResult(RequestRunner.java:141)
at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:725)
at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:722)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.json.resource.http.HttpAdapter.doRequest(HttpAdapter.java:722)
at org.forgerock.json.resource.http.HttpAdapter.doAction(HttpAdapter.java:627)
at org.forgerock.json.resource.http.HttpAdapter.handle(HttpAdapter.java:291)
at org.forgerock.http.handler.Handlers$HandlerDescribableAsDescribableHandler.handle(Handlers.java:154)
at org.forgerock.http.filter.OptionsFilter.filter(OptionsFilter.java:77)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.swagger.OpenApiRequestFilter.filter(OpenApiRequestFilter.java:70)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.grantAccess(AuthenticationFramework.java:201)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.access$200(AuthenticationFramework.java:64)
at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:193)
at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:186)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:151)
at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:141)
at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:92)
at org.forgerock.openidm.auth.AuthFilterWrapper.filter(AuthFilterWrapper.java:95)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:60)
at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:301)
at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:299)
at com.sun.proxy.$Proxy40.doFilter(Unknown Source)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:257)
at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:220)
at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:299)
at com.sun.proxy.$Proxy40.doFilter(Unknown Source)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:276)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.activiti.engine.ActivitiException: problem evaluating script: javax.script.ScriptException: org.forgerock.json.resource.ForbiddenException: Policy validation failed
at org.activiti.osgi.OsgiScriptingEngines.evaluate(OsgiScriptingEngines.java:66)
at org.activiti.osgi.OsgiScriptingEngines.evaluate(OsgiScriptingEngines.java:47)
at org.activiti.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior.execute(ScriptTaskActivityBehavior.java:78)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:132)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:462)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:440)
at org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior.leave(ExclusiveGatewayActivityBehavior.java:83)
at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:47)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:132)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:51)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:652)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:645)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:462)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:440)
at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140)
at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66)
at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:55)
at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)
at org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior.signal(UserTaskActivityBehavior.java:228)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:419)
at org.activiti.engine.impl.persistence.entity.TaskEntity.complete(TaskEntity.java:203)
at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:52)
at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:24)
at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:59)
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
at org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:186)
at org.forgerock.openidm.workflow.activiti.impl.TaskInstanceResource.actionInstance(TaskInstanceResource.java:114)
... 116 more
Caused by: javax.script.ScriptException: javax.script.ScriptException: org.forgerock.json.resource.ForbiddenException: Policy validation failed
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:155)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233)
at org.activiti.osgi.OsgiScriptingEngines.evaluate(OsgiScriptingEngines.java:64)
... 209 more
Caused by: javax.script.ScriptException: org.forgerock.json.resource.ForbiddenException: Policy validation failed
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:346)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:152)
... 211 more
Caused by: org.forgerock.json.resource.ForbiddenException: Policy validation failed
at org.forgerock.json.resource.ResourceException.newResourceException(ResourceException.java:224)
at org.forgerock.script.exception.ScriptThrownException.toResourceException(ScriptThrownException.java:119)
at org.forgerock.script.engine.Utils.adapt(Utils.java:248)
at org.forgerock.openidm.filter.ScriptedFilter.evalScript(ScriptedFilter.java:325)
at org.forgerock.openidm.filter.ScriptedFilter.evaluateOnRequest(ScriptedFilter.java:230)
at org.forgerock.openidm.filter.ScriptedFilter.filterRequest(ScriptedFilter.java:190)
at org.forgerock.openidm.filter.ScriptedFilter.filterCreate(ScriptedFilter.java:100)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:60)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:62)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.openidm.audit.filter.AuditFilter$2.apply(AuditFilter.java:146)
at org.forgerock.openidm.audit.filter.AuditFilter$2.apply(AuditFilter.java:143)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:251)
at org.forgerock.openidm.audit.filter.AuditFilter.filterCreate(AuditFilter.java:142)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:80)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:60)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$4.filterCreate(ServletConnectionFactory.java:464)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.openidm.filter.PassthroughFilter.filterCreate(PassthroughFilter.java:56)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:80)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:80)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.openidm.filter.PassthroughFilter.filterCreate(PassthroughFilter.java:56)
at org.forgerock.openidm.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:80)
at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:71)
at org.forgerock.json.resource.FilterChain.handleCreate(FilterChain.java:236)
at org.forgerock.json.resource.InternalConnection.createAsync(InternalConnection.java:48)
at org.forgerock.json.resource.AbstractAsynchronousConnection.create(AbstractAsynchronousConnection.java:50)
at org.forgerock.json.resource.AbstractConnectionWrapper.create(AbstractConnectionWrapper.java:100)
at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1$1.create(ServletConnectionFactory.java:238)
at org.forgerock.json.resource.AbstractConnectionWrapper.create(AbstractConnectionWrapper.java:100)
at org.forgerock.openidm.script.ResourceFunctions$CreateFunction.create(ResourceFunctions.java:189)
at org.forgerock.openidm.script.ResourceFunctions$CreateFunction.call(ResourceFunctions.java:173)
at org.forgerock.openidm.script.ResourceFunctions$CreateFunction.call(ResourceFunctions.java:86)
at org.forgerock.script.groovy.FunctionClosure.doCall(FunctionClosure.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215)
at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1254)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:47)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)
at Script2.run(Script2.groovy:20)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:343)
... 212 more
Caused by: org.forgerock.script.exception.ScriptThrownException: [object Object] {code=403, detail={result=false, failedPolicyRequirements=[{policyRequirements=[{policyRequirement=UNIQUE}], property=userName}]}, message=Policy validation failed}
at org.forgerock.script.javascript.RhinoScriptEngine$3.newScriptThrownException(RhinoScriptEngine.java:420)
at org.forgerock.script.javascript.RhinoScript.eval(RhinoScript.java:319)
at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.forgerock.script.registry.ScriptRegistryImpl$LibraryRecord.invoke(ScriptRegistryImpl.java:506)
at com.sun.proxy.$Proxy39.eval(Unknown Source)
at org.forgerock.script.registry.ScriptRegistryImpl$ScriptImpl.eval(ScriptRegistryImpl.java:776)
at org.forgerock.script.registry.ScriptRegistryImpl$ScriptImpl.eval(ScriptRegistryImpl.java:787)
at org.forgerock.openidm.filter.ScriptedFilter.evalScript(ScriptedFilter.java:322)
... 264 more
Caused by: org.mozilla.javascript.JavaScriptException: [object Object] (/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js#76)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11._c_anonymous_4(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js:76)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11.call(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11._c_anonymous_1(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js:87)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11.call(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11._c_script_0(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js:26)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11.call(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11.call(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js)
at org.mozilla.javascript.gen._home_krystof_orchi_wren_vanilla_wrenidm_bin_defaults_script_policyFilter_js_11.exec(/home/krystof/orchi/wren/vanilla/wrenidm/bin/defaults/script/policyFilter.js)
at org.forgerock.script.javascript.RhinoScript.eval(RhinoScript.java:303)
Turns out the last error report was caused by me trying to create a duplicate user.
Workflows actually work fine work fine once migrated by the script mentioned above.
After consultation with @karelmaxa, I am quite sure Activity framework works as intended as well.
The cause of the problem was change in #25, which changed the scope of variables from process
to task
.
The migration adds a listener which adds a decision
variable to process
scope so it can be used in the next step.
The old samples were removed, so this issue is no longer relevant.
Workaround for this issue is mentioned in readme which replaced the old samples.