Bug 974945

Summary: BPM Component ignores output mapping
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Pechanec <jpechane>
Component: SwitchYardAssignee: Keith Babo <kbabo>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Pechanec <jpechane>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: kconner, ncross, sdorfiel, soa-p-jira
Target Milestone: DR6   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In previous versions, users would encounter problems with mapping. Global mappings were not inserted as global variables in the knowledge runtime. This would result in them being ignored by the BPM component. This has been fixed in the current version.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-06 15:26:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Pechanec 2013-06-17 08:32:18 UTC
I'd expect I can use a similar mapping as I can use for input mapping, so for example for input I set

Process/in = message.content

But if I try it for output mapping like this

Process/out = message.content then it does not work. It is hardcoded in BPMExchangeHandler.handleOutput() that I need to use 'contentOutput' parameter to set a message content based on a BPM variable and the other variables are propagated automatically as context properties.

As tooling by default proposes message.content as a default for output mapping and documentation does not speak about magic names I suppose this is a bug.

Comment 1 Jiri Pechanec 2013-06-17 08:47:59 UTC
Also please look at Actions tab for BPM Component, tables Input and Output, column names Expression and Variable are VERY confusing as they means something completely different in these two contexts.

Comment 2 Keith Babo 2013-06-17 11:13:59 UTC
This is fixed in https://issues.jboss.org/browse/SWITCHYARD-1382 for 1.0.  This change should be in Alpha 2.

Comment 6 Jiri Pechanec 2013-10-21 12:18:13 UTC
Verified in ER6

Comment 7 JBoss JIRA Server 2014-06-16 23:52:00 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1382 to Closed