0 Replies Latest reply on Aug 1, 2014 6:11 AM by Leon Terkez

    How to set an action on pause

    Leon Terkez Newbie


      I have never worked with Jboss or Java before, so please bear with me.

      At a specific time a day ill need to set an action on pause for about 1 hour. My first try was to put the thread to sleep, but that didnt work since a transaction timed out.

      I then tried to add a new state to the processdefinition


      <state name="waitAnHour">

              <timer duedate="60 minutes" name="waitAnHour"





      from findNextCircuit I


      Created this code in the top of excecute




                  logger.debug("Have to wait");




      but it also seems to fail with this warning


      WARN  [org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.node.State - this operation breaks ==


      Any ideas on what to do?


      Thank you