10 Replies Latest reply on Apr 30, 2009 1:10 AM by Ronald van Kuijk

    Use of jBPM variables in action handler fields

    Swati S Newbie

      Hi, See the code below:-

       <node name="Error Notification1">
       <action class="org.jbpm.mail.CustomMail">
       <subject>Error E5 encountered in jBPM Process in step #{taskName}</subject>
       <text>Hi Administrator,
      The system has encountered error E5 in step #{taskName}.
      Regards
      -jBPM Team</text>
       <to>swati.satpute@patni.com</to>
       </action>
       <transition name="" to="Next Step"></transition>
       </node>


      In above code I tried #{taskName} expression to get the task name but was unable to get taskname at runtime. Even tried to use the variables used in previous step but didnt succeed.
      Anyone got idea how to use variables in such scenarios?