Topic
  • 2 replies
  • Latest Post - ‏2014-02-09T23:44:01Z by DR1R_Stuart_Norton
DR1R_Stuart_Norton
DR1R_Stuart_Norton
6 Posts

Pinned topic IAAdmin -RunTasks call to multiple projects in one call?

‏2014-02-07T04:09:43Z |

I have a question around IAAdmin on v9.1.2:

It works fine when it's against one project:

 

<?xml version="1.0" encoding="UTF-8"?>
<tns:Project xmlns:tns="http://www.ibm.com/investigate/api/iaapi" name="IAProject">
    <Tasks>
        <RunRules>
            <ExecutableRule name="Rule1"/>
            <ExecutableRule name="Rule2"/>
            <ExecutableRule name="Rule3"/>
        </RunRules>
    </Tasks>
</Project>

But if I try to run against multiple projects at a time, it errors:

<?xml version="1.0" encoding="UTF-8"?>
<tns:Projects xmlns:tns="http://www.ibm.com/investigate/api/iaapi">
    <Project name="IAProject">
      <Tasks>
           <RunRules>
                <ExecutableRule name="Rule1"/>
                <ExecutableRule name="Rule2"/>
                <ExecutableRule name="Rule3"/>
            </RunRules>
        </Tasks>
    </Project>
    <Project name="IAProject2">
      <Tasks>
           <RunRules>
                <ExecutableRule name="Rule4"/>
                <ExecutableRule name="Rule5"/>
                <ExecutableRule name="Rule5"/>
            </RunRules>
        </Tasks>
    </Project>
</Projects>

If I do this, it returns with "The XML request passed as parameter does not contain the mandatory element &lt;Project&gt;"

I've successfully validated the XML file against the IA schema, but IAAdmin internally doesn't seem to like it.

The doco only has an example hitting one project, like my first scenario, but is this an internal restriction that isn't terribly well documented?

  • smithha
    smithha
    162 Posts
    ACCEPTED ANSWER

    Re: IAAdmin -RunTasks call to multiple projects in one call?

    ‏2014-02-07T12:39:57Z  

    Despite appearances that it might allow multiple projects, the root element of the XML is always the project so the task requests must be within the same project.  Where you have multiple projects, you just run separate -RunTasks concurrently.

    I'll make a note to the documentation team to clarify that point.

    Harald

  • smithha
    smithha
    162 Posts

    Re: IAAdmin -RunTasks call to multiple projects in one call?

    ‏2014-02-07T12:39:57Z  

    Despite appearances that it might allow multiple projects, the root element of the XML is always the project so the task requests must be within the same project.  Where you have multiple projects, you just run separate -RunTasks concurrently.

    I'll make a note to the documentation team to clarify that point.

    Harald

  • DR1R_Stuart_Norton
    DR1R_Stuart_Norton
    6 Posts

    Re: IAAdmin -RunTasks call to multiple projects in one call?

    ‏2014-02-09T23:44:01Z  
    • smithha
    • ‏2014-02-07T12:39:57Z

    Despite appearances that it might allow multiple projects, the root element of the XML is always the project so the task requests must be within the same project.  Where you have multiple projects, you just run separate -RunTasks concurrently.

    I'll make a note to the documentation team to clarify that point.

    Harald

    Kind of what I expected, but it would have made life a bit easier.

    Thanks for the clarification, Harald.