How to set state for an item using Aras Innovator batch loader
Ans)
First find what itemtype instance you are trying to set the state.
Ex: if you are trying to set state for part.
Go to Aras iinovator Administrator section click ob life cycle maps.
Search for *Part*
Select Part Item and View.
You will see life cycle.
Now check in the life cycle to which state you are trying to set from batch loader.
In the life cycle, check the permissions who is having the rights to change the state to which u r trying to set.
Ex: If your life cycle is
Preliminary -->review-->release
If you want to set state as: review from batch loader.
First add an item using batch loader Action="Add" in AML, add all proerties of Item in the batch loader.
Ex of properties in AML.
type
action
item_number
title
name
major_rev
description
release_date
is_current
is_released
owned_by_id
<Item type='Part' action='add'><item_number>P0001</item_number><title>My Part</title><name>My Part</name><major_rev>1</major_rev><description>Welcome</description><unit>EA</unit><is_current>True</is_current><is_released>False</is_released></Item>
Now you have created part.
Next step is promote the same part using action="promoteitem" in AML.
<AML>
<Item type="Part" action="promoteItem" where="[PART].item_number='P0001' and [PART].is_current='1' and [PART].state='preliminary'">
<state>review</state>
</Item>
</AML>
Ans)
First find what itemtype instance you are trying to set the state.
Ex: if you are trying to set state for part.
Go to Aras iinovator Administrator section click ob life cycle maps.
Search for *Part*
Select Part Item and View.
You will see life cycle.
Now check in the life cycle to which state you are trying to set from batch loader.
In the life cycle, check the permissions who is having the rights to change the state to which u r trying to set.
Ex: If your life cycle is
Preliminary -->review-->release
If you want to set state as: review from batch loader.
First add an item using batch loader Action="Add" in AML, add all proerties of Item in the batch loader.
Ex of properties in AML.
type
action
item_number
title
name
major_rev
description
release_date
is_current
is_released
owned_by_id
<Item type='Part' action='add'><item_number>P0001</item_number><title>My Part</title><name>My Part</name><major_rev>1</major_rev><description>Welcome</description><unit>EA</unit><is_current>True</is_current><is_released>False</is_released></Item>
Now you have created part.
Next step is promote the same part using action="promoteitem" in AML.
<AML>
<Item type="Part" action="promoteItem" where="[PART].item_number='P0001' and [PART].is_current='1' and [PART].state='preliminary'">
<state>review</state>
</Item>
</AML>