on 01-31-2014 1:55 AM
Hi all,
I´m trying to use a strategy that I made in Data Manager using JAVA API, but I couldn´t achieve that. I follow this article: but I don´t found any place for retrieve the matched records (only mentioned) and the documentation about this, is very limited.
Anyone, could help me giving to me any example code?
Thanks for your support!
isn't listed as point 4?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, I already follow that doc for achieve my point. Yes, the point 4 talks about retrieve the matched records, but if You read it with "your eyes open" you can´t see for the records retrieved, for example, something like this:
Record[] recordsMatched = retMR.getMatchedRecords();
And, with "this" command you can see how to use your records that you matched. And the point of my question is that last thing, "How could I retrieve the matched records", and of course, how to use them, because for each source record it had an array of matched records.
Sorry for my reply, but, I write a question only if I don´t found an answer in the docs.
my god,
i thought you are not first day in MDM right?
a command is executed, you don't know how to get the result?
MatchingResult getMatchingResult()---->getMatchedRecordResults()
enough? you want more detail.....
Dude, thanks for your support, and yes, It´s not my first day...
that command retrieve the matched records, but how could I get each array of MatchedRecords for each sourceRecord?
MatchingResult mr = retMR.getMatchingResult();
And, mr object has the methods:
- getMatchedRecordResults(){type: MatchedRecordResult[]}
- getSourceRecord()
{type: Record}
"I have an array of source records, not just one(1) record", and when I execute RetrieveMatchedRecordsCommand, It does for all records that I put in ExecuteMatchingStrategyCommand setSource() method.
Thanks!
public void setSource(Record[] records)
Sets the source records (required). These are the records to find matching for. Currently only one record is supported.
Jun,
I follow this documentation: ExecuteMatchingStrategyCommand (MDM Java API Library)
And, for the method: setSource(), does not said that only one is supported (I use the first one, I send the id´s of the records in the array RecordId[]):
public void setSource(RecordId[] recordIds)
recordIds
- a list of record Idspublic void setSource(Search search)
search
- the search objectgo with this link.....show all classes
I know, but the doc of the class when you put the source Records in the object of the class ExecuteStrategyCommand is that I send you. Obviously I follow the documentation of the class that I need in the link that you give.
I will try:
1- loop the array of source records
2-for each source record, execute RetrieveMatchedRecordsCommand
3- setting up the the source record, via setRecordId() of the current RetrieveMatchedRecordsCommand object, in the loop.
4- get the Matched Records as we discuss
5- Apply my bussines logic or build my own [source + matchedRecords] Structure
Thanks man, I will do it and submit my results, I think that could be a good input for the documentation.
Yeah dude, I will use this method of the class RetrieveMatchingResultCommand, that Retrieve ALL of I need:
public MatchingResult[] getMatchingResults()
Returns the matching results. Each matching result contains a source record and the list of matched records.
Note: For this command, MatchingResult.getMatchedRecordResults() will return null. Please use RetrieveMatchedRecordsCommand
to retrieve this info.
Was a Really pleasure talk with you.
Dear Elkin,
Check this
Thanks,
Patralekha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.