Import rule definition using API loses description

This forum contains ProfileStage posts and now focuses at newer versions Infosphere Information Analyzer.

Moderators: chulett, rschirm

Post Reply
boxtoby
Premium Member
Premium Member
Posts: 138
Joined: Mon Mar 13, 2006 5:11 pm
Location: UK

Import rule definition using API loses description

Post by boxtoby »

I wonder if anyone can help me with some apparently inconsistent behaviour when importing a data rule definition using the api?

Here's the api command I'm using:

CreateCmd=`$IAAdminPath/IAAdmin.sh -v -user $user -password $password -url $url -create -projectContent $InputFolder/$ruleName -projectName "$Project"`

It successfully creates the rule definition but, sometimes the description is not imported.

Here's an xml file where the description is imported:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<iaapi:Project xmlns:iaapi="http://www.ibm.com/investigate/api/iaapi" name="RETAIL CRMB">
  <DataRuleDefinitions>
    <DataRuleDefinition folder="All" name="CRMB_DRD_HHP99">
      <description>Main Subsidiary Group and generic status</description>
      <LongDescription>Main Subsidiary Group and generic status</LongDescription>
      <Variables>
        <Variable dataType="any" name="src_fld_01"/>
        <Variable dataType="any" name="src_fld_01_ltrl"/>
        <Variable dataType="any" name="src_fld_02"/>
        <Variable dataType="any" name="src_fld_02_ltrl"/>
      </Variables>
      <expression>src_fld_01 = src_fld_01_ltrl OR  
src_fld_02 = src_fld_02_ltrl</expression>
    </DataRuleDefinition>
  </DataRuleDefinitions>
</iaapi:Project>
and here's an xml file where the description is not imported:

(Main Subsidiary Group and COMMERCIAL GRP not imported)

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<iaapi:Project xmlns:iaapi="http://www.ibm.com/investigate/api/iaapi" name="RETAIL CRMB">
  <DataRuleDefinitions>
    <DataRuleDefinition folder="All" name="CRMB_DRD_HHP02">
      <description>Main Subsidiary Group and COMMERCIAL GRP</description>
      <LongDescription>Main Subsidiary Group and COMMERCIAL GRP</LongDescription>
      <Variables>
        <Variable dataType="any" name="src_fld_01"/>
        <Variable dataType="any" name="src_fld_01_ltrl"/>
        <Variable dataType="any" name="src_fld_02"/>
        <Variable dataType="any" name="src_fld_02_ltrl"/>
      </Variables>
      <expression>src_fld_01 = src_fld_01_ltrl and  
src_fld_02 = src_fld_02_ltrl</expression>
    </DataRuleDefinition>
  </DataRuleDefinitions>
</iaapi:Project>
Is there a difference between the files that I can't see?

Look forward to hearing from you.

Many thanks,
Bob.
Bob Oxtoby
boxtoby
Premium Member
Premium Member
Posts: 138
Joined: Mon Mar 13, 2006 5:11 pm
Location: UK

Post by boxtoby »

Sorry, the second xml piece should have been titled:

and here's an xml file where the description is NOT imported:

(Main Subsidiary Group and COMMERCIAL GRP not imported)

etc
etc
Bob Oxtoby
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Bob, I went back and made the noted change for you while I was in there adding the code tags... and just as an FYI you can always edit your own posted messages.
-craig

"You can never have too many knives" -- Logan Nine Fingers
boxtoby
Premium Member
Premium Member
Posts: 138
Joined: Mon Mar 13, 2006 5:11 pm
Location: UK

Post by boxtoby »

Many thanks. :D
Bob Oxtoby
Post Reply