Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4162

jBPM context inject to the current conversation doesn't work with @ResumeProcess

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.2.CR1
    • Fix Version/s: None
    • Component/s: BPM
    • Labels:
      None
    • Environment:

      WinXp,Eclipse Europa,Seam 2.1.2.cr1, JBoss AS 4.22

      Description

      I have a task associating page, and when the user click the start link, i would like to invoke the beginHumanTask method in 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.
      (s:link propagation=join doesn't work too)

      JSF page:

      <s:link
      action="#

      {processmgr.beginHumanTask()}

      "
      taskInstance="#

      {item}

      "
      value="start"
      propagation="none"/> !!!!!!!!!!!!!!!!!!!!!!! (If I remove this line i get exception)

      SEAM component method:

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

      I try to propagate the processId for this method, but I always get the same exception:
      begin method invoked from a long-running conversation, try using @Begin(join=true) on method: beginHumanTask"

      <s:link ...>
      <f:param name="processId" value="#

      {item.processInstance.id}

      "/>
      </s:link>

      @RequestParameter
      Long processId

      @ResumeProcess(definition="processName")
      @BeginTask
      public String beginHumanTask() {
      //some operation
      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                babazs bb bb
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: