Demonstrates a sub-optimal approach to retrieving a collection of items from an array of ids.
// …
for (int i = 0; i < openWorkflows.Length; i++)
{
// Query per each cycle iteration
Item openWorkflow = inn.getItemById("workflow process", openWorkflows[i]);
// …
}
// …
// generates the following AML queries, one for each element in openWorkflows
// <AML>
// <Item type="Workflow Process" action="get" id="openWorkflows[0]" />
// </AML>
// <AML>
// <Item type="Workflow Process" action="get" id="openWorkflows[1]" />
// </AML>
// ...
// <AML>
// <Item type="Workflow Process" action="get" id="openWorkflows[n]" />
// </AML>