Customizing Lifecycle States
About this task
The Lifecycle Management of APIs and Packages section explains the default lifecycle and the possible transition that Developer Portal offers. However, you can modify the names of those states, the default state that must be assigned to an API or package, and the transition of the states.
To customize the default states names and their transition
- Go to the following location in the installation folder
and open application-lcm.yml in Edit mode.
SAGInstallDir/DeveloperPortal/workspace/webapps/portal.war/WEB-INF/classes
- Change according to your requirement in the
corresponding section:
- Add, edit, or remove the available states from the states section.
- Specify the initial state of an API or package in the initial-state section.
- Specify the state that must be applied to an API or package to make it active (expose it to consumers) in the active-state section.
- Specify the flow of states from one state in the allowed-transitions section.
- If you add a state or modify a state, add the custom label under the Properties section of your active theme. For information on adding a label, see Adding new UI Labels.
- Save the changes. Restart Developer Portal for the changes to take effect.
Sample scenario
About this task
Consider adding a state called Review. This new state must be in between Draft and Live states.
To add the new state