In this example we have used the default
ServiceLifeCycle. We have made the restriction in the code above for the event triggered by checking of the
Smoke Test Passed checklist item of the
Testing state. We have assumed that the
Promote button which takes you to the
Production state will be restricted to the role to which John Doe belongs. Note that the Transition Permissions must be properly set.
We have also assumed that the
Smoke Test Passed checklist item will be the last to be checked in the
Testing state and that the immediate next step would be the promotion to the
Production state. Because only some users belonging to a particular role (such as John Doe in this case) will get the option to promote, it is required to keep the corresponding users informed, but not spam the others. This can be done by subscribing all users and blacklisting the ones who do not require receiving the E-mails. See below to learn how to subscribe all users for the
Check LC Item event.
For this to work, each user on Governance Registry should fill out their User Profile.