Moving a collection through its lifecycle

To move governed object or collection through its lifecycle, use the ServiceRegistryGovernance EJB method transition().

This takes two parameters, the bsrURI of the root object in the governed collection and the classification URI of the required transition that will move the lifecycle to its next allowable state. The transition() method can only be invoked from the root object of a governed collection.

To determine the lifecycle transitions that are valid for a given object, the ServiceRegistryGovernance EJB method getTransitions() can be used. This will return a list of all the lifecycle transitions that are possible given the current lifecycle state of the object. Although the getTransitions() method returns all the transitions valid for the current object state, access controls might subsequently prevent certain users or classes of users from performing certain transitions. If this is the case, an exception will be generated when the transition() method is called.