Bug 481768 - Allow user to enable/disable data type coercion of DataInputs/Outputs
Summary: Allow user to enable/disable data type coercion of DataInputs/Outputs
Status: NEW
Alias: None
Product: BPMN2Modeler
Classification: SOA
Component: UI (show other bugs)
Version: 1.1.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: future   Edit
Assignee: Robert Brodt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-09 15:06 EST by Robert Brodt CLA
Modified: 2015-11-09 15:06 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Brodt CLA 2015-11-09 15:06:51 EST
The current behavior of the editor is to force the data type (structureRef) of DataInputs/Outputs and their references to be consistent. Thus, when the user changes the ItemSubjectRef of an event input parameter, for example, the ItemSubjectRef of the mapped ItemAwareElement (e.g. a "process variable" or DataObject) is also changed to the same type. Conversely, changing the ItemSubjectRef of a DataObject or Property, also changes the ItemSubjectRef of all Activity and Event DataInputs and DataOutputs that reference the DataObject or Property.

Imagine a scenario where a process variable (e.g. "applicant") is defined as some arbitrary structure (e.g. "Person") and I then try to map that into an Activity's DataInput that has a data type of "Integer", this will likely cause a runtime Class Cast Exception. This type coercion is intended to prevent these kinds of errors.

Data type consistency errors should probably be reported during validation, and this type coercion should be a configurable user preference in the BPMN2 Editor Behavior page to turn this feature on/off.