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 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
- Navigate 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
- Make changes as per 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 has to 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 new state or modify a state, add the custom label under the Properties section of your active theme. For information on adding a new label, see How do I add new UI labels?.
- Save the changes. Restart Developer Portal for the changes to take effect.
Sample scenario
About this task
Consider adding a new state called Review. This new state must be in between Draft and Live states.
To add the new state