1 Reply Latest reply on Mar 13, 2007 12:54 PM by Gavin King

    JBPM-Timer cannot be started with Seam

    Prem Kosta Newbie

      Hey,
      I'm new to JBpm & Seam.

      Could you please tell me how to start a timer? Is a Scheduler needed for this?



      I have define a process definition :

      <?xml version="1.0"?>
      <process-definition name="MyProcess">
       <start-state name="start">
       <task name="start">
       <assignment pooled-actors="testP0"></assignment>
       </task>
       <transition name="to_P0" to="p0">
      
       </transition>
       </start-state>
       <task-node name="p0">
      
       <task name="task1">
       <assignment pooled-actors="testP0"></assignment>
       <event type="task-start">
       <action class="com....MyAction">
       <name>"#{workflowAction.nr}"</name>
       </action>
       </event>
       </task>
      
       <transition name="to_P1" to="P1"></transition>
       </task-node>
       <task-node name="P1">
       <task name="task1">
       <assignment pooled-actors="testP0"></assignment>
      
       <event type="task-start">
       <action class="com....MyAction">
       <name>#{workflowAction.nr}</name>
       </action>
       </event>
      
       </task>
       <transition name="zu_P2" to="P2" />
       </task-node>
       <task-node name="P2">
       <task name="task2">
       <assignment pooled-actors="testP0"></assignment>
       <timer name="QuarzTimer2" duedate="30 seconds"
       repeat="60 seconds">
       <action class="com.....TimerAction"/>
       </timer>
       </task>
       <transition name="to_P3" to="P3"></transition>
       </task-node>
       <task-node name="P3">
       <task name="task3"></task>
       <transition name="to_P4" to="P4"></transition>
       </task-node>
      ........
      


      2 problems :
      -First ,the variable "name" cannot be stored correctly.
      -Second:My Timer cannot be started