dynamic number of assets shown on same usertask screen.
Hello,
Is there a possibility in the workflow designer to create a dynamic number of assets in the same screen coming from a map created in a scripttask before. I want to have 2 columns in my screen. The first column contains on overview of all the assets (= a dynamic number of rows -> can be once 10 rows, another time 45, etc…) , and then a second column contains for each asset in the first column a single-select object where another asset can be selected. In a scripttask called afterwards, we will make a relation between these 2 assets. Something like this, where the number of rows depends of the length of the number of items in the map.
I know it is possible to iterate through a map (with multi instance option) , but it takes 1 screen per entry in the map, and we would like to have it all on 1 screen.
A second (related) question. In the old eclipse it was possible to define a ‘iteration key as variable’ so you could use this key to get information from other maps with the same key. ex:
map1 : key : 12 - value : ‘testValue’ ; key: 56 - value : ‘myValue56’
map2: key: 12 - value : 'testValueMap2 '; key: 56: - value : ‘secondValue56’
If you defined the keys of map1 as the keySet that drives you through your iteration, where-ever you use this variable, you get the information out of all the other maps with that same key. example :
It will take key by key from map 1 . (so in my example => first 12, then 56). And it will put this key into variable ‘keyVar’. So if you uses in your usertask screen calls ${map2.get(keyVar)} , normally it should automatically transform this into “testValueMap2” at first iteration because keyVar = 12 , and “secondValue56” at second iteration because keyVar = 56.
It seems that this translation is no longer done in the workflow designer. Does anyone has any clue how you should use this ‘iteration variable’ ? Is it still through “mapX.get(itVar)” or should I use another method ?
Thanks in advance.
Kind regards,
Dirk