[jboss-user] [JBoss jBPM] - Action in timer
rodosa
do-not-reply at jboss.com
Thu Jan 29 07:13:34 EST 2009
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,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205524#4205524
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205524
More information about the jboss-user
mailing list