cancel
Showing results for 
Search instead for 
Did you mean: 

Get the workflow name

chicco0386
Champ on-the-rise
Champ on-the-rise
Hi all,
I'm try to get the name of the workflow inside a Javascript action and log it, but I've an error.
My code is:
<start-state name="Start">
      <task name="wfTria:inizio" swimlane="initiator"></task>
      <event type="node-leave">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <runas>admin</runas>
            <script>
               logger.log("Workflow name: "+bpm_workflowDescription);
                      </script>
         </action>
      </event>
      <transition to="Decidi numero e nome progetto"></transition>
   </start-state>

Can you help me?
Thank you
2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
try with "bpm_definitionName"  instead of "bpm_workflowDescription" and
also if you mention which error you are getting it would be more clear

chicco0386
Champ on-the-rise
Champ on-the-rise
try with "bpm_definitionName"  instead of "bpm_workflowDescription" and
also if you mention which error you are getting it would be more clear

Thank you for the response, but also with "bpm_definitionName" it doesn't work.
I've a null value or a message that say undefined property.

Others solutions.

Thank you