Forum Discussion

Tyler_Kim's avatar
Tyler_Kim
Ideator I
3 years ago

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?

3 Replies

  • Hi all,

    if of interest, the question fits to this discussion:  link 

    Jayrajvhs solution is preferred for promoting the "state". The shown post just collects ideas for preserving other system properties like "created_by_id", etc.

  • Hi Tyler_Kim ,

    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

    [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:8b18ce08-dd12-4e57-86ce-58bd4a0e9eab:type=text&text=%3CAML%3E%0A%20%20%20%20%3CItem%20type%3D%27yourItemTypeName%27%20idlist%3D%27idsOfItemsToBePromoted%27%20action%3D%27PromoteItem%27%3E%0A%20%20%20%20%20%20%20%20%3Cstate%3EReleased%3C%2Fstate%3E%0A%20%20%20%20%3C%2FItem%3E%0A%3C%2FAML%3E]

    • Tyler_Kim's avatar
      Tyler_Kim
      Ideator I

       Jayrajvh 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