on 06-15-2016 3:09 PM
Hi Expert
I have a simple requirement, but not sure how to do it in BPM mapping.
Below is my Source and target Structures.
Source: Target:
sRecord 0..unbounded tRecord 0..unbounded
value 0..1 Value 0..1
deleteFlag 0..1
I can get multiple sRecords, with some having DeleteFlag = X and others with no DeleteFlag field.
I have to create target record only when delete flag field does not exist.
If DeleteFlag does not exist , then create tRecord.
Example input
sRecord
value 1
sRecord
value 2
deleteFlag X
sRecord
value 3
deleteFlag X
sRecord
value 4
sRecord
value 5
In above case target record should be created only for value 1,4 and 5
Please advice
Hi Jabri,
You can use the standard function filter to do the job.
filter(sRecord, "http://www.example.org/NewXMLSchema:deleteFlag=X")
http://www.example.org/NewXMLSchema should be the namespace of your xsd which defines the data types of your sRecord.
This should solve your issue.
Regards,
Kun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Osman,
try with the filter function in the mapping (Rules and Functions -> Generic)
for more information on the generic functions, please check the below link
Generic Functions - SAP NetWeaver Composition Environment Library - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The filter function should work but it seems to have problems with namespaces etc. I've seen several cases where I couldn't get the filter function to work. A relatively easy alternative if the filter function doesn't work out is to implement a web service as EJB that does the filtering for you.
This also makes it easier to implement complicated filter and you'll see the filter step in your process.
Best regards,
Frank
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.