6 Replies Latest reply on May 9, 2009 12:33 AM by gdfgd eqwe

    How to use @ResumeProcess with the current converation

    gdfgd eqwe Novice
      Hi!

      I have a task associating page, and when the user click the start link,
      I would like to invoke the beginHumanTask method with the current conversation.

      But If I removed the propagation="none attribute, I get the following error:

      begin method invoked from a long-running conversation, try using @Begin(join=true) on method: beginHumanTask"

      I try to use the @ResumeProcess(definition="processName") by this method, but It's didn't work.

      Can somebody help for me?very very thanks.


      JSF page:

      <s:link
      action="#{processmgr.beginHumanTask()}"
      taskInstance="#{item}"
      value="start"
      propagation="none"/> !!!!!!!!!!!!!!!!!!!!!!!

      SEAM component method:

      @BeginTask     
      public String beginHumanTask() {
      //some operation
      }