AnsweredAssumed Answered

Problems accessing bpm_comment variable in transition script

Question asked by jdbrown on Jul 23, 2007
Latest reply on Mar 27, 2014 by bikash
Using the lastest 2.1 RC.  I am trying to access the task variable bpm_comment that is part of the bpm:Task type.  I have this variable exposed in the UI fine and can fill it in and it shows up in the workflow history.  However, on the transition script, I try to assign it as a parameter into an action and it is undefined.

My script is below:

      <transition name="Submit Response" to="approve">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                  var action = actions.create("create-association");
               action.parameters["responseText"] = bpm_comment;

I suspect I am overlooking something simple, but any ideas?