0 Replies Latest reply on Jan 29, 2009 7:13 AM by rodosa

    Action in timer

    rodosa

      Hello,

      I've created a simply timer that shows a message. This is the timer:

      <event type='node-enter' >
       <create-timer name='timeout' duedate='10 seconds' repeat='yes' >
       <script>System.out.println("I reset my timer!");</script>
       </create-timer> </event> <event type='node-leave' >
       <cancel-timer name='timeout' />
       </event>
      


      This works, but ... when I want that, instead showing this message an action was executed, doesn't work!! Why?? Could someone help me??

      The timer is:

      <event type='node-enter'>
       <create-timer name='timeout' duedate='10 seconds'
       repeat='yes'>
       <action name="Tester"
       class="com.ideit.modules.cmmi.jbpm.requirements.session.TesterActionHandler">
       </action>
       </create-timer>
       </event>
      


      And the TesterActionHandler class is:

      public class TesterActionHandler implements ActionHandler {
      
       private ExecutionContext ec = null;
       public Log log = LogFactory.getLog(this.getClass());
      
       public void execute(ExecutionContext context) throws Exception {
      
       //I want to execute a this content with the timer
      }
      



      My class extends of ActionHandler is that correct??? Could someone explain me why the content of the execute method is not being executed???


      Thanks a lot,