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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment