Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1081508

Summary: Java / MVEL expression is ignored for dataInputAssociation (input parameter mapping)
Product: [Retired] JBoss BPMS Platform 6 Reporter: Václav Chalupa <vchalupa>
Component: jBPM CoreAssignee: Alessandro Lazarotti <alazarot>
Status: CLOSED EOL QA Contact: Karel Suta <ksuta>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: kverlaen, mvecera
Target Milestone: ER2   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:08:45 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:
Embargoed:
Attachments:
Description Flags
BPMN process with example dataInputAssociation none

Description Václav Chalupa 2014-03-27 13:28:16 UTC
Created attachment 879486 [details]
BPMN process with example dataInputAssociation

Java / MVEL expression is ignored for dataInputAssociation, expression is processed as String, no java expression occurs.

Example:

<bpmn2:dataInputAssociation id="DataInputAssociation_4">
  <bpmn2:targetRef>DataInput_4</bpmn2:targetRef>
  <bpmn2:assignment id="Assignment_31">
    <bpmn2:from
        xsi:type="bpmn2:tFormalExpression"
        id="FormalExpression_64"
        language="http://www.java.com/java">java expression</bpmn2:from>
    <bpmn2:to
        xsi:type="bpmn2:tFormalExpression"
        id="FormalExpression_62">DataInput_4</bpmn2:to>
  </bpmn2:assignment>
</bpmn2:dataInputAssociation>


BPMN process attached, see LTJmsOutService.

Comment 1 Kris Verlaenen 2014-03-31 23:38:09 UTC
Currently java expressions cannot be used directly in the input association, a workaround would be to use an on-entry script to set the value of a variable and then use normal data mapping to copy the value to the variable.

Comment 2 Maciej Swiderski 2014-04-01 09:53:26 UTC
jbpm provide support for such work via bpmn2 transformation on data input and output, currently it was implemented as part of following jira: https://issues.jboss.org/browse/JBPM-4166 last missing bits are tooling support (jbpm web designer, bpmn2 eclipse modeler)

Comment 3 Maciej Swiderski 2014-09-30 11:37:14 UTC
additional improvements to support transformation on most of the elements that allow to specify data input and output 

jbpm
master
https://github.com/droolsjbpm/jbpm/commit/cc463c58358a18b29a4fb9522d2984b04b59687a
https://github.com/droolsjbpm/jbpm/commit/6d570bb46f3f4ccefe513a418bc884386a78cbcf

Comment 4 Karel Suta 2014-12-15 15:53:54 UTC
Verified on 6.1.0 ER2