Problem adding participants to a workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2014 07:04 AM
Hello.
I am trying to start a workflow (serial or parallel), but when I am assigning the participants, I get an error, and the workflow doesn't start.
In the log I can see the following messages:
javax.servlet.ServletException: On requestURL ...
at org.nuxeo.ecm.platform.ui.web.rest.FancyURLFilter.doFilter(FancyURLFilter.java:152)
...
Caused by: javax.servlet.ServletException: [Error: null pointer: WorkflowVariables["participants"][(int)WorkflowVariables.index]]
[Near : {... WorkflowVariables["participant ....}]
^
[Line: 1, Column: 1]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
...
Caused by: javax.faces.el.EvaluationException: [Error: null pointer: WorkflowVariables["participants"][(int)WorkflowVariables.index]]
[Near : {... WorkflowVariables["participant ....}]
^
[Line: 1, Column: 1]
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
...
Caused by: [Error: null pointer: WorkflowVariables["participants"][(int)WorkflowVariables.index]]
[Near : {... WorkflowVariables["participant ....}]
^
[Line: 1, Column: 1]
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:427)
...
Caused by: java.lang.NullPointerException
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getCollectionProperty(ReflectiveAccessorOptimizer.java:774)
What can be the problem?
Thanks in advance!
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2015 06:24 AM
Hi!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2015 02:26 PM
This issue should have been fixed with HF1. I'm running into the same problem still. Maybe try one of these variations:
WorkflowVariables["participants"][(int)WorkflowVariables.index]]
WorkflowVariables["participants"][WorkflowVariables["index"]]
WorkflowVariables["participants"][(int)WorkflowVariables["index"]]
None of them worked for me, but they might work for you. My issue is from the brackets around the index workflow variable expression, the expression itself works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2015 05:53 AM
Instead of brackets have you tried WorkflowVariables["participants"].get(WorkflowVariables["index"])
or variations thereof?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2015 11:04 AM
I think for our purposes and how the workflow does its indexing/counting, the expression has to be of the form
