Skills Practice Solutions - 18 - Configuring Post To News Smart Service

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

CONFIGURING POST TO NEWS SMART SERVICE SKILLS PRACTICE SOLUTIONS

In this exercise, you will configure a Post System Event to Feed smart service to notify the
Registrar group when a new vehicle request has been rejected

1. Add a new Feed to the VFM Application called Vehicle Management Feed, and give
it a description. Make sure to define security on the feed as well by assigning the
VFM Admin as the administrator of the feed.
2. Add the Post System Event to Feed smart service to the canvas between the
“Approved?” gateway and the “Rejected End Event” . Make sure to connect the
paths correctly and re-configure the gateway appropriately.
3. Rename the Post System Event to Feed node and give it a description.
4. In the data tab, set the value of the Feed to the Vehicle Management Feed you
created.
5. Give the post a dynamic message using the expression editor to mention that the
request to add this vehicle has been denied due to the reason given by the
supervisor. ​STRETCH GOAL​: Show a different message if the vehicle has been
rejected due to the supervisor’s rejection or the counter above the threshold.
6. Use a!iconNewsEvent() to display (“CAR”) under the icon of the post.
7. Identify the source as “Vehicle Management”
8. Identify the viewers for this post as the VFM Registrar group.
9. In the event data input, define some additional info such as the vehicle mileage or
condition. (Hint: The Event Data input requires information added using a label value
pair. So, make sure to include an array with parameters for the label and value, such
as {label: “Label1”, value: “Value1”})
10. Test your process and ensure that a news post is generated with the correct viewers

CREATE THE FEED:


Create a News Feed in the Application Designer by selecting “New” and “News Feed”. Set
security on the feed object to give the VFM Admin group administrator privileges to the feed
object.
ADDING THE POST NEWS EVENT SMART SERVICE:
Add the “Post System Event to Feed” smart service into the process model flow.
ADDING A DYNAMIC MESSAGE:
Add a dynamic message to your news event by editing the message as an expression.
ADDING A NEWS ICON:
To add a News icon, use the expression editor for the icon input. Here you should use the
a!iconNewsEvent function which has a parameter for icon and color.
ADDING EVENT DATA:
The Event Data input requires information added using a label value pair. So, make sure to
include an array with parameters for the label and value, such as {label: “Label1”, value:
“Value1”}

You might also like