Bug 1186739 - Designer does not save a data type (itemDefinition element) of Data Input and Output set
Summary: Designer does not save a data type (itemDefinition element) of Data Input and...
Keywords:
Status: CLOSED DUPLICATE of bug 1247105
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Designer
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: Tihomir Surdilovic
QA Contact: Kirill Gaevskii
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-28 12:52 UTC by Sona Mala
Modified: 2015-11-17 11:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-17 11:46:20 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)
Process 1: all item definitions are present (15.13 KB, application/xml)
2015-01-28 13:27 UTC, Sona Mala
no flags Details
Process 2: saved process by designer (14.85 KB, application/xml)
2015-01-28 13:31 UTC, Sona Mala
no flags Details
Process 1: screenshot of Data Editor (79.83 KB, image/png)
2015-01-28 13:53 UTC, Sona Mala
no flags Details
Process 2: screenshot of Data Editor (missing data type) (78.45 KB, image/png)
2015-01-28 14:10 UTC, Sona Mala
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1195335 0 medium CLOSED Data types of Human Tasks variables are not preserved when modeled in Embedded Subprocess 2021-02-22 00:41:40 UTC

Internal Links: 1195335

Description Sona Mala 2015-01-28 12:52:23 UTC
Description of problem:
If I define a data input or a data output in Tasks which are inside of a subprocess or Event nodes then I am not able to find the type of data set after reopening of process.

It seems that Designer (in 6.1.0 ERx) does not generate the <itemDefinition> element for each input/output of Task or Event.

Version-Release number of selected component (if applicable):
6.1.0 ER4

How reproducible:
reopen / reimport some process

Steps to Reproduce:
1. create a new process:
        Start -> Task -> Ad Hoc Subprocess (Task2 -> EndSP
) -> End
2. Create a data output/input for each node (${nodeName}MyVar:Integer)
3. Save process
4. Check that each node contains in DataOutputSet this variable:
                ...MyVar:Integer 
5. Close process
6. Reopen process

Actual results:
When you check all nodes, you find out these data output sets:
    - Output: StartMyVar
    - Output: TaskMyVar:Integer
    - Output: Task2MyVar
    - Input: EndSPMyVar
    - Input: EndMyVar
It means that all Event nodes and Task nodes which are places inside of any subprocess are affected .

ItemDefinitions which was genereted by Designer:

  <bpmn2:itemDefinition id="__58A0D637-EE3C-42C8-BB13-77927660F094_TaskMyVarOutputXItem" structureRef="Integer"/>


Expected results:
The type of the data output / input should be visible after reopenning of process or after reimport it.

ItemDefinitions which should be genereted by Designer:

  <bpmn2:itemDefinition id="..._StartMyVar..." structureRef="Integer"/>
  <bpmn2:itemDefinition id="..._TaskMyVar..." structureRef="Integer"/>
  <bpmn2:itemDefinition id="..._Task2MyVar..." structureRef="Integer"/>
  <bpmn2:itemDefinition id="..._EndSPMyVar..." structureRef="Integer"/>
  <bpmn2:itemDefinition id="..._EndMyVar..." structureRef="Integer"/>


Additional info:
The severity was set to high because I found out only one occurence where the designer shows a data type in the Data Editor. My opinion is that type of variable is very important information.

By the way, the type of the data input or output is saved by Designer in this attribute:
                 drools:dtype="Integer" 
Unfortunately, this information is not loaded by Data Editor.

Comment 1 Kris Verlaenen 2015-01-28 12:59:28 UTC
The datatype is not used during process execution and therefore is not stored as part of the process XML yet.

Comment 2 Sona Mala 2015-01-28 13:27:15 UTC
Created attachment 985145 [details]
Process 1: all item definitions are present

The attached process should be correct.

Comment 3 Sona Mala 2015-01-28 13:31:53 UTC
Created attachment 985148 [details]
Process 2: saved process by designer

Step to reproduce the attached process:
 1. Import 'Process1: ...'
 2. Export process from Designer
      -> View Process sourcess
      -> Ctrl+A, Ctrl+C, Ctrl+V

Comment 4 Sona Mala 2015-01-28 13:53:31 UTC
Created attachment 985164 [details]
Process 1: screenshot of Data Editor

This screenshot represents information which an user sets.

Comment 5 Sona Mala 2015-01-28 14:10:21 UTC
Created attachment 985187 [details]
Process 2: screenshot of Data Editor (missing data type)

This screenshot represents information which an user can see after reopening of the Process 1.

The user lost information which he put into Data Editor.

My opinion is that the content of Data Editor should be same in both cases.


Process 1 contains information about data type in a itemDefinition element and in a drools:type attribute.

Process 2 contains information about data type only in a drools:type attribute.

The expected behaviour:
-----------------------
Data Editor has same content in both cases:
  - after importing Process 1
  - after importing Process 2.
Data Editor contains MyVar:Integer.

Comment 6 Sona Mala 2015-01-28 14:17:54 UTC
My opinion is that both processes are valid and both contains same information.
Unfortunatelly, jBPM Designer cannot represent Process 2 even if it was created by jBPM Designer.


I have to ask why Tasks which are placed directly in the process (the first level: Start -> Task -> End) are not affected by this issue even if its data type is not used during process execution.

Comment 8 Jeremy Lindop 2015-11-17 11:46:20 UTC
This is fixed in 6.2.ER5

*** This bug has been marked as a duplicate of bug 1247105 ***


Note You need to log in before you can comment on or make changes to this bug.