I have a task node in which i would like execute the handler for every 10 
seconds. 
My Process deifinition is 

  |   <start-state name="start">
  |      <task>
  |       </task>
  |       <transition name="" to="Initiate Transcode"></transition>
  |    </start-state>
  |      <node name="Initiate Transcode">
  |       <action name="transcodeContent" class="VideoTranscodeHandler">
  |       </action>      
  |       <transition name="monitorTranscode" to="Monitor 
Transcodnig"></transition>
  |    </node>
  |     <task-node name="Monitor Transcodnig" async="true">
  | <task>
  |        <timer duedate="20 seconds" name="TranscodeMonitorTimer" repeat="10 
seconds"> 
  |         <action class="VideoTranscodeMonitorHandler">
  |         </action>
  |             </timer>
  | </task>
  |       <transition name="requestForApproval" to="Submit for 
Approval"></transition>
  |    </task-node>
  | 

When i signal, it is executing the first node but the handler in the timer is 
not getting executed. 
Here is the handler code

  | public class VideoTranscodeMonitorHandler implements ActionHandler {
  | 
  |     private static final long serialVersionUID = 1L;
  |     private static final Logger logger = 
CommonLogger.getInstance("com.ge.nbc.content.process.video.handler.VideoTranscodeMonitorHandler");
  |     
  |     public void execute(ExecutionContext executionContext) throws Exception 
{
  |     logger.info("###############################################");
  |     logger.info("### this is VideoTranscodeMonitorHandler for the content 
");
  |     logger.info("###############################################");
  |     
  | 

Is there anything that iam missing? Should we explicitly create a timer and 
invoke before/after the signal to fire a timer event?

Regards
Harsha

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000204#4000204

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000204
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to