Test Data Manager

Expand all | Collapse all

Adding more than one custom function - Fast Data Masker

Jump to Best Answer
  • 1.  Adding more than one custom function - Fast Data Masker

    Posted 04-16-2018 03:13 PM

    When I add more than one custom function in the "custom_confg.xml" no matter which function I select, the application will run the last function I've added in the xml.

     

    For instance: 

     

    <functions>
       <function>
          <name>Function X</name>
          <description>Desc</description>
          <char>true</char>
          <number>true</number>
          <date>false</date>
          <char_date>false</char_date>
          <custom>true</custom>
          <class_name>com.pg.X</class_name>
       </function>
       <function>
          <name>Function Y</name>
          <description>Desc</description>
          <char>true</char>
          <number>true</number>
          <date>false</date>
          <char_date>false</char_date>
          <custom>true</custom>
          <class_name>com.pg.Y</class_name>
       </function>
    </functions>

     

    If I select the function X to run on Fast Data Masker, it will run the Function Y.

     

    Does anyone know how to solve this problem?

     

    Obs: FDM Version: 4.7.300.12

     

    Regards



  • 2.  Re: Adding more than one custom function - Fast Data Masker

    Posted 04-18-2018 10:38 AM

    Hi Gustavo,

     This should work. I cannot see any obvious issue with your configuration. Do you have both functions in one jar or in 2 jars? Are both classes public?

    Good luck,

    Mirek



  • 3.  Re: Adding more than one custom function - Fast Data Masker

    Posted 04-18-2018 11:34 AM

    Hi Mirek!

     

    Thanks for the reply.

     

    I had functions in 1 jar (using different and same packages) and in different jars as well.

    All classes are public as well.

     

    Regards,

    Gustavo



  • 4.  Re: Adding more than one custom function - Fast Data Masker
    Best Answer

    Broadcom Employee
    Posted 04-18-2018 05:05 PM

    Gustavo,

     

    Have you tested both functions separately by having only one of them in the config file at a time to make sure it works? I believe you will need 2 separate jars for it to work.

     

    I have 2 custom functions in FDM 4.7.400.12 and they run properly without any issue