Follow the instructions below to add a lifecycle to the Governance Registry.
1. Sign in. Enter your user name and password to log on to the Management Console.
2. Click the "Extensions" button to access the "Extensions" menu.
3. From the left navigation menu, under "Extensions," select "Lifecycles."
4. Click the "Add New Lifecycle " link on the "Lifecycles" page.
5. A configuration page with a sample lifecycle configuration is shown. Make needed alterations and click on the "Save" button to save the configuration.
See the detailed information about a lifecycle configuration in Configuring Lifecycles.
See also Managing Lifecycle to learn how to assign a lifecycle to a resource/collection.
Adding multiple life cycles
WSO2 Governance Registry 4.6.0 allows only one lifecycle to attach to a particular governance artifact type. However, when an artifact governed in the G-Reg and is in the Store front, it gets associated with a Store-specific life cycle in the Store, and also have another development life cycle within G-Reg itself. Therefore, the functionality of the resources has to be independent of the life cycles.
With the new improvements in G-Reg 5.0.0 onwards, you can associate multiple life cycles to a resource. All associated life cycles can perform operations independently.
This does not limit the service provider to associate other available life cycles. Furthermore, deleting a lifecycle from a resource does not alter other associated life cycles or their states.
For an example, when you add a new service in the Management Console, it is associated with a Service-specific lifecycle by default. If you add the service using the publisher front, then the service gets associated with a Service-specific life cycle and a Store lifecycle by default.