Bringing items in through AML package as 'Released'

Hello all,

I am working on importing custom itemtypes to load via AML package as part of new builds. Due to how a customized contextual window displays these items, I need the items to be in a 'Released' state when they are brought in. (The window will only display 'Released' items).

However, I am having difficulties getting the items to be in a 'Released state'

1. I've tried adding a <state>Released</state> to each item being brought in

2. I've tried adding a postAMLpackagedeployment script that adds a <state>Released</state> to each item

The catch is, I need the items to abide by its lifecycle/workflow normally when edited and the state returns to 'New'.

Is this possible?

Parents
  • Hi  ,

    Items when created are always in default LC state. One of the options can be

    1. Import the items

    2. Using postAMLpackagedeployment script promote them. You need to use action=PromoteItem

    Sample AML can be as below

    <AML>
        <Item type='yourItemTypeName' idlist='idsOfItemsToBePromoted' action='PromoteItem'>
            <state>Released</state>
        </Item>
    </AML>

  •   I'm getting a "failed to get the transition to promote the Item from New to Released error:



    Previously, there was no direct transition from New to Released. Do I need to add a transition (with the Aras PLM identity) to make this possible?

    EDIT: I've added a transition from the New to Released state (with the Aras PLM identity) and I'm still getting the same error

    EDIT2: I've also tried moving the item to the very next state (transition handled by a non-admin identity) and also got the same error

Reply
  •   I'm getting a "failed to get the transition to promote the Item from New to Released error:



    Previously, there was no direct transition from New to Released. Do I need to add a transition (with the Aras PLM identity) to make this possible?

    EDIT: I've added a transition from the New to Released state (with the Aras PLM identity) and I'm still getting the same error

    EDIT2: I've also tried moving the item to the very next state (transition handled by a non-admin identity) and also got the same error

Children
No Data