Previous versions

First, you need to create all states: open the page
http://server/admin/plmapp/state/add and create them. The only
required field is the name of the state, this value will be displayed in the
lifecycle page. It’s fine if a state is referred by several lifecycles.

Then you need to create a lifecycle: open the page
http://server/admin/plmapp/lifecycle/add/ and create it.
Two fields are required: its name (that will be shown in the creation page)
and its official state.

Then you need to create objects (named lifecyclestates) that bound the states
to the lifecycle. Open the page
http://server/admin/plmapp/lifecyclestates/add/ and create one object
per state. Three fields are required:

The lifecycle

The state

A rank: this field (an integer) is used to order the states,
the first state must have the lower rank.

>>> fromopenPLM.plmapp.modelsimportLifecycle>>> fromopenPLM.plmapp.lifecycleimportLifecycleList>>> # arguments: name of the lifecycle, name of the official state, names off all states (ordered)>>> lcl=LifecycleList("mylifecycle","official","draft","state2","state3","official","deprecated")>>> Lifecycle.from_lifecyclelist(lcl)# create the lifecycle<Lifecycle: Lifecycle<mylifecycle>>

Edit its PLMObject page (via the admin interface):
make sure its state is consistent with the new lifecycle

Make sure there is one (not least, not more) signer assigned to each signing level
(number of states minus one levels):
Add/edit required PLMObjectUserLink (http://server/plmapp/plmobjectuserlink/).
All missing roles must start with sign_.

Note

If you have to select a signer role above 10, you will have to edit
the code of plmapp/models.py, find the following lines: