Skip to Content
author's profile photo Former Member
Former Member

How may I run an assignment on all MDM main rows?

Using Java MDM API, how do I run an assignment on all MDM main rows? There are approx. 20,000 rows on the main table. I am using the ExecuteAssignmentsCommand and the setRecordsIds() is required. The assignment executes fine when I supply one or more recordIds. Is there a way to run it against all records without building an array of all the recordIds? Because I would have to retrieve all the rows to get their Ids, build the array and then pass it to the command. It seems overkill to do that.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2012 at 08:24 AM

    Hi,

    For this large number of records, you should execute the assignment from MDM system itself as one time activity. Open Data Manager, select all records, right click and select the assignment you want to execute and execute it. All value assignments will be done.

    After this initial run you can execute the assignment on newly created records as and when those are created. Hope this helps you.

    Thank you.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Manolis,

      For Import action, you can go ahead with Workflow+Assignment.

      For other updates, you can go ahead with Java API commands.

      But you will have to perform set RecordID and get RecordID method calls for this.

      You can reduce the load on Java API a bit by adopting separate workflow for Imported records.

      Thank you.

  • Posted on May 31, 2012 at 10:36 AM

    HI Manolis,

    Please try :

    public class RetrieveRecordsByValueCommand
    extends AbstractUserSessionCommand

    Retrieves records by field values.This can be the flag value such asTRUE/FALSE.

    It works best on a field that has unique field values. If there are multiple matches, the record selected is indeterministic. If there is no match for a given field value, the returned record will have a record Id of RecordId#INVALID_RECORD_ID.

    The supported fields to match on are:

    Fixed Width Text

    Normalized Text

    Auto ID

    Integer

    Thanks,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.