Customizing API lifecycle states - sample

Sample scenario explaining the API lifecycle customization.

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

Procedure

  1. Go to the following location in the installation folder and open application-lcm.yml in Edit mode.
    InstallDir/DeveloperPortal/workspace/webapps/portal.war/WEB-INF/classes
  2. Add Review in the states section under the api and package sections.
  3. Add the states for the possible transitions from the Review state.
  4. Save the changes and restart webMethods Developer Portal.
  5. Click the menu options icon Menu options icon from the title bar and select Administration.
  6. From the Manage themes page, click the customize icon Customize icon next to the active theme.
  7. Select Properties and select Custom.
  8. Click the Click here link.
    The Add property screen appears.
  9. In the Key field, provide the new state name with the prefix as base.lifecycle.state and suffix as .LBL.
    For the example considered, you must provide base.lifecycle.state.review.LBL.
  10. Provide REVIEW in the Key field.
  11. Click Ok.
    The label is added to the lifecycle states.
    Important: Ensure that you add the custom label in the active theme for the changes to take effect.