[jboss-jira] [JBoss JIRA] Created: (JBPM-947) timer repeat='true' not repeating from within EAR

Britt Miner (JIRA) jira-events at lists.jboss.org
Tue Apr 10 12:39:58 EDT 2007


timer repeat='true' not repeating from within EAR
-------------------------------------------------

                 Key: JBPM-947
                 URL: http://jira.jboss.com/jira/browse/JBPM-947
             Project: JBoss jBPM
          Issue Type: Bug
          Components: Core Engine
    Affects Versions: jBPM jPDL 3.2
            Reporter: Britt Miner
         Assigned To: Tom Baeyens


Timer repeat='true' doesn't repeat under the jbpm-enterprise.ear that is bundled with jbpm-jpdl-3.2.GA, but it does repeat under the jbpm-console.war that is not part of the EAR.

Example process definition:

<?xml version="1.0" encoding="UTF-8"?>


<process-definition name="Simple Timer Test">
  <start-state name='START' >

    <transition name='done' to='NODE1'/>

  </start-state>
  <state name='NODE1'>
	<event type='node-enter' >
		<create-timer name='timeout' duedate='30 seconds' repeat='yes' >
			<script>System.out.println("I reset my timer!");</script>
		</create-timer>
	</event>
	<event type='node-leave' >
		<cancel-timer name='timeout' />
        </event>
  	<transition name='done' to='END'/>
  </state>
  <end-state name="END" />


</process-definition>

Logging output under jbpm-enterpise.ear:

09:57:30,394 DEBUG [TimerServiceBean] ejb timer [id=1,target=[target=jboss.j2ee:jndiName=local/TimerServiceBean at 2104685,service=EJB],remaining=-9,periode=0,in_timeout] fires
09:57:30,396 DEBUG [CommandServiceBean] getting jbpm configuration resource from the environment properties
09:57:30,397 DEBUG [CommandServiceBean] couldn't find configuration property JbpmCfgResource through JNDI
09:57:30,397 DEBUG [CommandServiceBean] getting default jbpm configuration resource (jbpm.cfg.xml)
09:57:30,399 DEBUG [CommandServiceBean] handing over the command execution to the command service
09:57:30,400 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[tx, message, scheduler, logging, persistence, authentication]'
09:57:30,400 DEBUG [JbpmContext] creating org.jbpm.JbpmContext at f42d53
09:57:30,400 DEBUG [CommandServiceBean] executing org.jbpm.scheduler.ejbtimer.ExecuteTimerCommand at cbb612
09:57:30,400 DEBUG [DbPersistenceService] beginning hibernate transaction
09:57:30,526 DEBUG [ExecuteTimerCommand] executing timer 1
09:57:30,618 DEBUG [Timer] executing timer 'timer(timeout,09:57:30,385)'
09:57:30,730 DEBUG [Script] script input: {taskInstance=null, node=State(NODE1), token=Token(/), task=null, executionContext=ExecutionContext[Token(/)]}
09:57:30,744 INFO  [STDOUT] I reset my timer!
09:57:30,744 DEBUG [Script] script output: {}
09:57:30,745 DEBUG [Timer] updated timer for repetition 'timer(timeout,09:58:00,385)' in '29640' millis
09:57:30,745 DEBUG [JbpmContext] closing JbpmContext
09:57:30,745 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.jta.JtaDbPersistenceService at f61f5c
09:57:30,745 DEBUG [DbPersistenceService] committing hibernate transaction
09:57:30,745 DEBUG [Services] closing service 'tx': org.jbpm.tx.TxService at 84e3f9

After this, the timer is never re-executed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list