Hide Forgot
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
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.
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.
Lowering priority based on devel_ack-
(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.