AnsweredAssumed Answered

what objects are available to your process

Question asked by kethur on Nov 8, 2012
Latest reply on Nov 14, 2012 by jbarrez

One of the examples i was looking at the Activiti in Action book, it has this snippet of code where it uses the objects task and task.eventName.  the object task is not defined anywhere in the bpm process or in the spring config.  Could you please explain how this is working.  How can i know which are the default objects availble to your workflow that I can use as below.

      <userTask id="bradHasADrinkTask" activiti:assignee="Brad">
            <activiti:taskListener expression="${gossipUserTask.gossipTask(task, task.eventName)}" event="assignment" />
            <activiti:taskListener expression="${gossipUserTask.gossipTask(task, task.eventName)}" event="create" />
            <activiti:taskListener expression="${execution.setVariable('readyDrinking', true)}" event="complete"/>