Demonstrates a sub-optimal query to retrieve the source_id and source_type properties from an Item.
Item workflow = this.newItem("Workflow","get");
Item workflowProcess = workflow.createRelatedItem("Workflow Process","get");
Item workflowProcessActivity = workflowProcess.createRelationship("Workflow Process Activity","get");
Item activity = workflowProcessActivity.createRelatedItem("Activity", "get");
activity.setID('activityId');
workflow = workflow.apply();
// generates the following AML query
// <AML>
// <Item type="Workflow" action="get">
// <related_id>
// <Item type="Workflow Process" action="get">
// <Relationships>
// <Item type="Workflow Process Activity" action="get">
// <related_id>
// <Item type="Activity" action="get" id="activityId"/>
// </related_id>
// </Item>
// </Relationships>
// </Item>
// </related_id>
// </Item>
// </AML>