1 Reply Latest reply on Jun 22, 2009 5:18 AM by kukeltje

    Notifications when the state of a user task is changed

      Is there any way to tell jbpm to notify a listener class when ever a particular user has been assigned a task or the state of the task assigned to a user has been changed?

      <?xml version="1.0" encoding="UTF-8"?>
      
      <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="simpleTask">
      
      
       <start-state name="start">
       <transition to="task-node1"></transition>
       </start-state>
      
      
       <task-node name="task-node1">
       <task name="task1" blocking="true" signalling="false">
       <assignment actor-id="john"></assignment>
       </task>
       <transition to="end"></transition>
       </task-node>
      
       <end-state name="end"></end-state>
      
      
      </process-definition>
      
      


      In the above example, when user "john" is assigned a task, we want the jbpm engine to call one of our classes. Can we configure jbpm to do that?