Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3003

Declaring output without 'globals.' prefix doesn't work anymore in Drools component

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2
    • Fix Version/s: jboss-fuse-6.2.1
    • Component/s: SwitchYard
    • Labels:
      None

      Description

      This worked in SY 1.x:

      <rules:output from="response" to="message.content"/>
      

      The runtime (SY 2.0.1) now complains:

      Message Content -> 
      org.switchyard.HandlerException: [Error: null pointer or function not found: response]
      [Near : {... response ....}]
                   ^
      [Line: 1, Column: 1]
       --- Caused by org.mvel2.PropertyAccessException: [Error: null pointer or function not found: response]
      [Near : {... response ....}]
                   ^
      [Line: 1, Column: 1]
      

      It works after changing the declaration to:

      <rules:output from="globals.response" to="message.content"/>
      

      It breaks compatibility with the previous major version, neverthless the fix users have to do is trivial.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  virchete David virgil naranjo
                  Reporter:
                  trohovsky Tomas Rohovsky
                  Tester:
                  Tomas Rohovsky
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: