2 Replies Latest reply on May 27, 2009 5:39 PM by khalse

    ObjectNotFoundException when starting Execution with Task

    khalse

      I have a simple workflow defined which simply starts with a task. Deploying the task is not a problem, however when I attempt to start the workflow I get an ObjectNotFoundException from hibernate. I have followed the execution of code and it appears that there have been no inserts to the JBPM_EXECUTION table before attempting to retrieve a record.

      <?xml version="1.0" encoding="UTF-8"?>
      
      <process key="TestTask" name="TestTask">
      
       <start>
       <transition to="review" />
       </start>
      
       <task name="review">
       <transition to="wait" />
       </task>
      
       <state name="wait">
       <transition to="end"/>
       </state>
      
       <end name="end" />
      
      
      </process>


      Note that I have also tried a similar workflow which started with a state, then went on to a task. This worked fine as the execution was created following the signal to the initial task.