API To Archive

I have a need to archive content items from an extension. We have a relationship between two content items.

Child content Item A is added to content Item B and Content Item C. So
whenever content item A goes to Archive state, we need to put content Item B and C also into Archive state.

I was trying to use API from Interface: IPSContentWs
However, the only option I see to change the state is prepareForEdit(). Is there any other API or way to change the state of a list of content Item from ‘Public’ state to ‘Archive’ State through an Extension Action?


In Rhythmyx, you don’t explicit set states, you “transition” an item via one of the allowed transitions defined in the workflow state that the item is in.

API programs can call IPSSystemWs.transitionItems() to cause one of these transitions.