Hi everyone!
I have let's say BPM process with tasks. One of the tasks outputs a context with two nodes that I am interested in. <RecordsInResultSet> and <SelectedRecords>. Both nodes have cardinality (0..*), and both of them have only one sub-node each - recordID with cardinality (1..1). So in fact those two nodes represent an array of records Id's each. More than that they are intersecting. <RecordsInResultSet> represent all records and <SelectedRecords> outputs Id's of the records from result set which were checkboxed. To make things more clear here is an example:
<RecordsInResultSet> <recordID>1 <RecordsInResultSet> <recordID>2 <RecordsInResultSet> <recordID>3 <RecordsInResultSet> <recordID>4 <RecordsInResultSet> <recordID>5 <SelectedRecords> <recordID>2 <SelectedRecords> <recordID>4
Here it goes a context with 5 records total where 2 of them were selected.
Now the question. In input of the second task i have a node with cardinality (0..*) lets say named <RecordsToDelete> with recordID field with cardinality (1..1) in it.
I need to map to that node the values which are not selected from the result set above. So in given example it will be recordId's 1, 3, 5. Is it possible to do with mapping context functions?
Thanks in advance,
Peter