cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow always refer to old bean id

qsdmv
Champ in-the-making
Champ in-the-making
I have created Action class for workflow, I define the bean id as "test_wf".


In workflow definition xml, I have defined previous workflow:

<transition name="approve" to="approved">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <script>
               var publishAction = actions.create("orig_wf");
               publishAction.execute(bpm_package);
            </script>
         </action>
      </transition>


Then I changed to:

<transition name="approve" to="approved">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <script>
               var publishAction = actions.create("test_wf");
               publishAction.execute(bpm_package);
            </script>
         </action>
      </transition>


When I publish the tree, it always complains old "orig_wf" action id which doesn't exists now. I re-start and clean temp and work directories in tomcat but still. I have no idea. Is it possible previous workflow definition cached somewhere?

Thanks
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Yes workflow definitions are persisted into the JBPM database so existing in flight workflow instances may complete with the old definition.

qsdmv
Champ in-the-making
Champ in-the-making
Thanks. I did "undeploy definition name <workflowname>". It works.