Filtering Sensitive Information
When a message is created in queue queue-test for consumer group group-dms to consume, the DMS trigger detects the message and generates an event to trigger the function. Then the function runs to determine whether the message contains sensitive information.
Creating a Message
Perform the following steps to create a message:
- Log in to the DMS console, and choose Queue Manager in the navigation pane.
- Click queue-test, and then click Create Message.
- In the Create Message dialog box, enter a message (such as "Well-paid opportunities for working part time") in the Message Body area, as shown in Figure 1.
- Click OK.
After creating the message, you can see the number of messages that can be retrieved in the group-dms row, as shown in Figure 2.
Triggering the Function
When detecting the message, the trigger invokes the function. On the fss_examples_message_filtering page on the FunctionGraph console, as shown in Figure 3, you can view a function running log indicating that the message cannot be published because it contains too many sensitive words.
Last Article: Adding an Event Source
Next Article: Processing DIS Data



Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.