DSMStefanRohde - Friday, January 16, 2015 4:58 AM:
Hey Community.
i've been trying to set a lifecycle to an allready created item. Thought it is as simply as seting the current_state of the item to the Lifecycle state, but unfortunetly this doesnt work. Any Help is greatly appriciated.
DSMStefanRohde - Monday, January 26, 2015 4:31 AM:
No one can help here?
zahar - Monday, January 26, 2015 5:18 AM:
You need to set :
state
current_state
permission_id
and if relevant
is_current
is_released
DSMStefanRohde - Monday, January 26, 2015 7:57 AM:
this doesnt work for me, no error messsage or anything. It just dont set the lifecycle state.
my aml query sent:
<AML><Item
zahar - Monday, January 26, 2015 10:28 AM:
I'm not sure you allowed to do that from AML.
- Use pure SQL from SQL Management Studio. Something like this:
Update [PART] set state = 'Preliminary', current_state = 'YYYYYYYYYYYYYYYYYYYYYYYYYYY', permission_id = 'YYXYXYXYXYXYXYXYXY', is_current = '1' WHERE id='XXXXXXXXXXXXXXXXXXXX'
- If this is one time change just open your table for Edit using 'SQL Management Studio' and change this properties manually.
- Consider to create this item again using standard Aras UI
DSMStefanRohde - Tuesday, January 27, 2015 2:43 AM:
This worked :), thank you very much. Diddnt think of using sql to do the change :). Thank you, your help was greatly appreciated :)
kentonv - Friday, February 20, 2015 5:17 PM:
In my experience (v9.3), you cannot just set those properties in an OnAfterAdd event. Innovator apparently calls a 'ResetLifeCycleState' after OnAfterAdd events. This will delete those properties, and set to the default start lifecycle state.
For items that are missing a lifecycle, and already created, it is possible to set those properties through SQL, and it will function as normal. The OnAfterAdd event does not work.
Also, it is not possible to interact with the workflow during any event OnAfterAdd.