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

    ObjectNotFoundException when starting Execution with Task

    Kerry Halse Newbie

      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">
       <transition to="review" />
       <task name="review">
       <transition to="wait" />
       <state name="wait">
       <transition to="end"/>
       <end name="end" />

      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.