3 Replies Latest reply on Sep 4, 2006 4:44 AM by Pete Muir

    @StartTask and @EndTask in different methods

    David G. Newbie

      Hi, I'm modifying the TODO-list example in order to start and end tasks with different <s:link>.

      I want a button to start the task (invoking @StartTask method) and a method to stop the task.

      If I hit the startTask method, the task is started (I see it in jbpm database), but if then I hit the stopTask method, the following exception is launched:


      javax.faces.el.EvaluationException: Exception while invoking expression #{todoList.stopTask}
      [...]
      Caused by: java.lang.IllegalStateException: no task instance associated with context
      


      Thanks in advance.