Bug 1124755

Summary: Implement editor for CollectionExpression of multi-instance sub process component
Product: [Retired] JBoss BPMS Platform 6 Reporter: Anton Giertli <agiertli>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED EOL QA Contact: Kirill Gaevskii <kgaevski>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.2CC: kverlaen
Target Milestone: ---   
Target Release: ---   
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:11:57 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anton Giertli 2014-07-30 08:54:39 UTC
Description of problem:

Currently user need to enter the value for CollectionExpression in the simple text field. This is quite error pron and in contradiction with other data editors which are present designer.


Documentation states the following:
The variable must be an array or be of the java.util.Collection type.

What I suggest is to implement some sort of drop down menu or other editor which will lists all the process variables which fulfils this condition.

Let's have following process variables defined:

myString: java.lang.String
myInteger: java.lang.Integer
myArray: java.lang.String[]
myList: java.util.List

In the multi-instance sub process component, following values would be available for selection for the CollectionExpression attribute:

myArray
myList


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

bpm 6.0.x
How reproducible:

always
Steps to Reproduce:
1. crate multi-instance sub process component in the designer
2. try to fill CollectionExpression value - no suggestions available

Actual results:
Editor for CollectionExpression is a text input.

Expected results:
Editor for CollectionExpression is a drop down menu or any sort of editor which will hold the list of appropriate values so user can choose without having to type it manually.