AnsweredAssumed Answered

Workflow failed to signal transition 'null' from wrkflw task

Question asked by jenn_l on Mar 17, 2010
Latest reply on Mar 22, 2010 by stevegreenbaum
Hoi All,

I have deployed my customized review_pooled_processdefinition.xml in Alfresco 3.2r Community.
When I tried to start a pooled workflow I get the following system error in my webclient:
Please correct the errors below then click Finish.
system error happened during the operation: 02170018 Failed to signal transition 'null' from workflow task 'jbpm$77

The second time I tried I get this:
Please correct the errors below then click Finish.
A system error happened during the operation: 02170020 Failed to signal transition 'null' from workflow task 'jbpm$78'


The catalina.out displays this:
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
        at org.mozilla.javascript.gen.c6._c0(AlfrescoJS:1)
        at org.mozilla.javascript.gen.c6.call(AlfrescoJS)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
        at org.mozilla.javascript.gen.c6.call(AlfrescoJS)
        at org.mozilla.javascript.gen.c6.exec(AlfrescoJS)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:457)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeString(RhinoScriptProcessor.java:250)
        … 124 more


My customized procesdefinition.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wf:reviewpooled">

    <swimlane name="initiator" />

    <start-state name="start">
        <task name="wf:submitGroupReviewTask" swimlane="initiator" />
        <transition name="" to="review" />
    </start-state>

    <swimlane name="reviewer">
        <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
            <pooledactors>#{bpm_groupAssignee}</pooledactors>
        </assignment>   
    </swimlane>

    <task-node name="review">
        <task name="wf:reviewTask" swimlane="reviewer">
            <event type="task-create">
                <script>
                   if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;
                   if (bpm_workflowPriority != void) taskInstance.priority = bpm_workflowPriority;
                </script>
            </event>
            <event type="task-end">
               <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                  <script>
                     <variable name="bpm_assignee" access="write"/>
                     <expression>
                        if (taskInstance.actorId != null)
                           people.getPerson(taskInstance.actorId);
                        else
                           person;
                     </expression>
                  </script>
               </action>
            </event>
        </task>
         <event type="node-enter">
             <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                 <script>
            
            for (var i = 0; i &lt; bpm_package.children.length; i++)
                    {
                        var group = bpm_groupAssignee.properties["usr:authorityName"];
                  if (logger.isLoggingEnabled()) logger.log("Setting permission Coordinator for " + group);
                  var document = bpm_package.children[i];
                  var parent = bpm_package.children[i].getParent();
                  /* Make it visible. */
                  document.setPermission("Coordinator",group);
                  /* Enable check-out/check-in. */
                  parent.setPermission("Coordinator",group);
               }
         
             </script>
           </action>
          </event>
        <transition name="reject" to="rejected">
            <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                 <script>
            
            for (var i = 0; i &lt; bpm_package.children.length; i++)
                    {
                       var group = bpm_groupAssignee.properties["usr:authorityName"];

                  if (logger.isLoggingEnabled()) logger.log("Removing permission Coordinator for " + group);
                  var document = bpm_package.children[i];
                  var parent = bpm_package.children[i].getParent();
                  /* Hide it. */
                  document.removePermission("Coordinator",group);
                  /* Disable check-out/check-in*/
                  parent.removePermission("Coordinator",group);
               }
         
                </script>
           </action>
        </transition>
        <transition name="approve" to="approved">
            <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                 <script>
            
             for (var i = 0; i &lt; bpm_package.children.length; i++)
                    {
                        var group = bpm_groupAssignee.properties["usr:authorityName"];
                  
                  if (logger.isLoggingEnabled()) logger.log("Removing permission Coordinator for " + group);
                  var document = bpm_package.children[i];
                  var parent = bpm_package.children[i].getParent();
                  /* Hide it. */
                  document.removePermission("Coordinator",group);
                  /* Disable check-out/check -in. */
                  parent.removePermission("Coordinator",group);
                    }
               
            </script>
           </action>
        </transition>
    </task-node>

    <task-node name="rejected">
        <task name="wf:rejectedTask" swimlane="initiator" />
        <transition name="" to="end" />
    </task-node>

    <task-node name="approved">
        <task name="wf:approvedTask" swimlane="initiator" />
        <transition name="" to="end" />
    </task-node>

    <end-state name="end" />

</process-definition>

The funny thing is that this processdefinition.xml works fine in Alfresco enterprise 3.0 and Alfresco enterprise 3.1.
Can anyone help me out ?

Thanks in advance.
Kind regards,
Jenny

Outcomes