7 Replies Latest reply on Sep 26, 2007 4:52 AM by Ronald van Kuijk

    Problem using expression language in a process definition (T

    Fabien Coppens Newbie

      I'd like to use jBM's expression language so that a Timer can obtain its duedate parameter from the ContextInstance of the process. I've tried this :

      <process-definition
       xmlns="urn:jbpm.org:jpdl-3.0" name="com.bt.intfwk.businesslayer.jbpm.processes.timertest">
       <start-state name="start">
       <transition name="" to="TimerNode"></transition>
       </start-state>
       <node name="TimerNode">
       <timer name="testTimer"
       duedate="#{contextInstance.dueDate}" >
       <action class="com.bt.intfwk.testjbpm.TimedAction" />
       </timer>
       <transition name="" to="end1"></transition>
       </node>
       <end-state name="end1"></end-state>
      </process-definition>


      and I get an error message telling me that my XML is not valid. I've also tried without the quotes around
      #{contextInstance.dueDate}
      and it doesn't work either.

      Ideas please ?