cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie - Failed to signal transition error in jBPM workflow

disc-writes
Champ in-the-making
Champ in-the-making
Hello all,

I am getting started with creating custom workflows and I am going through the examples provided in the Alfresco Developer Guide book. I am stuck at example #2, a simple flow with a fork and a join.

Specs:
Alfresco 3.4 Enterprise + jBPM
Tomcat
Using the console at http://localhost:8080/.../faces/jsp/admin/workflow-console.jsp

Deploying and starting the workflow returns no errors, but whenever I try to run the example (signal jbpm$XX-@), I get:

org.alfresco.service.cmr.workflow.WorkflowException: 08270111 Failed to signal transition null from workflow path jbpm…

Nothing is logged in alfresco.log, except for this:


13:22:50,916 User:admin DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
13:22:50,922 User:admin DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 2.93839ms

The process definition is:

<?xml version="1.0" encoding="UTF-8"?>
<process-definition  xmlns="urn:jbpm.org:jpdl-3.1"  name="helloWorldFork">
   <start-state name="start">
      <transition to="fork1"></transition>
   </start-state>
   <fork name="fork1">
      <transition to="Node C" name="to nodeC"></transition>
      <transition to="Node D" name="to nodeD"></transition>
   </fork>
   <node name="Node C">
      <transition to="join1">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <script>
               logger.log=("Hello World! Node C");
            </script>
         </action>
      </transition>
   </node>
   <node name="Node D">
      <transition to="join1">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <script>
               logger.log=("Hello World! Node D");
            </script>
         </action>
      </transition>
   </node>
   <join name="join1">
      <transition to="end-state1"></transition>
   </join>
   <end-state name="end-state1"></end-state>
</process-definition>

As far as I can tell the names are consistent and there are no non-breaking spaces, soft hyphens… but obviously something is wrong. Can someone help me out?

Thanks,

DiSc
1 REPLY 1

krutik_jayswal
Elite Collaborator
Elite Collaborator
logger.log=("Hello World! Node D");

Above line should be like below.

logger.log("Hello World! Node D");

Below is my blog link for jbpm.

http://krutikjayswal-alfresco.blogspot.in/2014/04/jbpm-workflow-in-alfresco.html