on 08-15-2014 3:21 PM
Hello,
is it possible to set value to exact item of collection in mapping step in netweaver BPM?
I need something like set(<collection_variable>,<item_index>,<item_value>) - so exact opposite of GET generic function, which gets specific item from collection.
Is it possible in NW BPM?
And what about Generic Function Insert-Before?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use a Mapping Activity where you can map the data structures as compared to the XML Schema you have created in the BPM Project
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course I`m using mapping activity - but I cannot (or at least I dont know how) set the value of the specific item of collection.
Example:
I have collection myCol:("aa","bb","cc").
I can get value of second item of collection myCol using get(myCol,1). Result is "bb".
Now I want to change "bb" to "ww". How is it possible? I`m looking for something like
set(myCol,1,"ww") or myCol[1] = "ww"
I tried to change item retrieved by get function - but it is retrieved by value, not by reference - so change performed to that item wont have effect on original item in collection myCol.
You dont have to apologize. I didnt meant that as offend.
I appreciate the possibility to discuss that topic with somebody, because discussion itself sometimes shows other perspective to the problem, which can lead to solution
Of course I wrote EJB function to solve that - but I cant believe that it isnt standard solution to that pretty common use case.
I think, that problem lays in very limited implementation of XPath into Netweaver BPM. I will bet my left hand, that in some future SP of BPM will SAP introduce something like this:
myCollection[1]/notificationId = notificationId
which is standard XPath way to do that
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.