Versionable ItemType has Life Cycle to control its states and permission. Although search result will only show the latest version, older versions still can be discovered with AML query.
Find All Versions
ID will not be Null in any situation due to it is the primary key. Therefore, all versions can be found with this principle. Below is the syntax:
<AML>
<Item type="Item Type" action="get">
<id condition="is not null" />
</Item>
</AML>
Find All Released Revisions
There is a Property named "is_released" in versionable ItemType to identify if the Item is released. Below syntax will find all released revisions:
<AML>
<Item type="Item Type" action="get">
<id condition="is not null" />
<is_released>1</is_released>
</Item>
</AML>
Find All Old Versions
There is another Property named "is_current" in versionable ItemType which can identify if the Item is the latest. Below syntax will find all old versions:
<AML>
<Item type="Item Type" action="get">
<id condition="is not null" />
<is_current>0</is_current>
</Item>
</AML>
Comments
Post a Comment