Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-5869

Boundary Event Signal does not translate variables while registring as Signal Event Listener

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • jBPM 6.4.0.Final
    • Runtime Engine
    • None
    • 1
    • NEW
    • NEW
    • Hide

      Define a process with a subprocess inside it.
      The process has a variable with name document-ref.
      Initialize the variable with value: 123

      The subprocess fires a terminate event with signal ref 'document-approved-#

      {signal-ref}'

      Attach to this subprocess boundary a Signal Event with signalRef defined as before and perform something from this capture event.

      Despite de subprocess fires properly the signal with signalRef 'document-approved-123',
      The boundary Signal capture has registered itself to listen 'document-approved-#{signal-ref}

      ' inspite of 'document-approved-123'

      The signal is never captured.

      Show
      Define a process with a subprocess inside it. The process has a variable with name document-ref. Initialize the variable with value: 123 The subprocess fires a terminate event with signal ref 'document-approved-# {signal-ref}' Attach to this subprocess boundary a Signal Event with signalRef defined as before and perform something from this capture event. Despite de subprocess fires properly the signal with signalRef 'document-approved-123', The boundary Signal capture has registered itself to listen 'document-approved-#{signal-ref} ' inspite of 'document-approved-123' The signal is never captured.

    Description

      When we set a Boundary Event Signal on a non reutilizable subproces with signalRef defined with variables inside it, the variable is not resolved before registring as Signal Event Listener, so the signalRef used to register has #{} in the type string.

      We have seen that on DefaultSignalManager.addEventListener( type, ... ).

      SignalRefs used in intermediate Event Signal Capture are registered properly replacing variables with current values.

      The bug should reside on WorkflowProcessInstanceImpl.registerExternaleventNodeListeners.

      Attachments

        1. bug.PNG
          58 kB
          Manuel Castro

        Activity

          People

            rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
            ngs_mtech_jira Manuel Castro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: