This sample describes how to trigger notifications when elements change in Decision Center.
Time required
15 minutes
Prerequisites
You must have Decision Center installed to use this sample.
Check that the sample server is started before using this sample. For more information about starting the sample server, see Starting and stopping the sample server.
Description
This sample shows how to:
Generate notifications for actions performed on model elements in Decision Center. For example, when a business user creates, updates, or deletes a rule, an automatic notification through RSS is triggered to inform the development team of the change. The change notification includes information such as the name of the user, the name of the rule affected, and the name of any modified properties, together with their old and new values.
Use permanent links.
Enable anonymous sign-in and restrict their permissions to read-only.
Redefine the search criteria according to the role of the user.
To show these, a permanent link on the modified element generates the change notification URL. You use this link to access Decision Center as an anonymous user with read-only permissions. In addition, anonymous users can view only rules that have a status of new.
To implement these requirements in Decision Center, you do the following:
Write a custom session controller to redefine the behavior of Decision Center when committing an element, deleting an element, or computing the possible values for a feature. Show only rules that have a status of new to users signed in as anonymous users. Deploy this session controller to Decision Center.
Generate an anonymous permanent link on the modified element.
Limit the permissions of anonymous users to read-only using UI customization.
Generate RSS data and make it available from the web server and then invite interested users to subscribe to the RSS feed using an RSS reader tool.
The key features of this sample include:
Custom session controller
Permanent links
Anonymous access
UI customization for read-only users