Bug 999425

Summary: Dot separated process variable name as Map accessor on Task parameter mapping fails on Import in Designer
Product: [Retired] JBoss BPMS Platform 6 Reporter: Toshiya Kobayashi <tkobayas>
Component: jBPM CoreAssignee: Alessandro Lazarotti <alazarot>
Status: CLOSED EOL QA Contact: Kirill Gaevskii <kgaevski>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.x.xCC: kverlaen, lpetrovi, mbaluch, paradhya, rrajasek, wsiqueir
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1006093 (view as bug list) Environment:
Last Closed: 2020-03-27 20:06:47 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1006093    

Description Toshiya Kobayashi 2013-08-21 10:05:31 UTC
Description of problem:

Platform BZ for https://issues.jboss.org/browse/JBPM-4102


Steps to Reproduce:
1. Import sample.bpmn attached to JBPM-4102


Actual results:

Throws an Exception and fails to import.

Expected results:

Import the BPMN successfully

Comment 1 JBoss JIRA Server 2013-09-10 03:20:45 UTC
Toshiya Kobayashi <tkobayas> made a comment on jira JBPM-4102

Attaching sample bpmn.

- I removed 
targetNamespace="http://www.jboss.org/drools" for Designer to be able to accept.
- I removed 'Result Mappings' which causes another error.

Comment 2 Kris Verlaenen 2013-10-11 01:28:05 UTC
sourceRef of a data association should be a valid IDREF, so strictly speaking, it can't be something like <sourceRef>myMap.var1</sourceRef>.  A transformation element (which is an expression inside the data association) should be used to store the expression.

So when using BPMN2 (both Designer and Eclipse), currently the user cannot set expressions as source for data associations.  As alternative, scripts should be used to set a variable with the right value and then use a simple data association to map that variable to the data input.

We will have to consider adding support for transformation expressions in the future.

Comment 3 Kris Verlaenen 2013-12-09 12:08:27 UTC
Lowering priority based on devel_ack-

Comment 5 Maciej Swiderski 2015-01-21 13:23:51 UTC
(In reply to Kris Verlaenen from comment #2)
> sourceRef of a data association should be a valid IDREF, so strictly
> speaking, it can't be something like <sourceRef>myMap.var1</sourceRef>.  A
> transformation element (which is an expression inside the data association)
> should be used to store the expression.
> 
> So when using BPMN2 (both Designer and Eclipse), currently the user cannot
> set expressions as source for data associations.  As alternative, scripts
> should be used to set a variable with the right value and then use a simple
> data association to map that variable to the data input.
> 
> We will have to consider adding support for transformation expressions in
> the future.
we already have support for transformation from the engine point of view. I talked to both Tihomir and Bob regarding support in the tooling though not sure it has been developed. I am quite sure eclipse modeler can show it when defined in source xml.