Invoking workflow for comments | Community
Skip to main content
Jai1122
New Participant
October 16, 2015
Solved

Invoking workflow for comments

  • October 16, 2015
  • 4 replies
  • 1664 views

Hi Guys,

    I am new to workflows so please bare with me. We are trying to implement blogging feature where user comments will go through approval process (workflow) which also has watchwords analyzer.

    We are using AEM 5.6.1 along with AEM 5.6.1 Social Communities Feature Pack 1.4.206 installed . 

   The problem is comments does not go through watchwords analyzer(my understanding is watchword analyzer will block the comments containing the words we list in the dialog). Also there are many workflows like

    Comment Moderation    -      /etc/workflow/models/collab/comment_moderation.html

    Social Moderation         -       /etc/workflow/models/social/commons/comment_moderation.html

    Social Moderation        -        /etc/workflow/models/social/comment_moderation.html

We have no idea from where, which of the above workflow gets triggered.

Queries:

     Is there a way to find out which workflow gets triggered?

     Is my understanding of watchword analyzer correct?

    If it follows the "Comment Moderation" workflow - which does not have watchword analyzer how what change i should do so that watchword analyzer works?

Many thanks in advance,

Jai

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by prajesh

Hi Jai1122,

The watchwords analyzer step does not block the comment contain negatieve words. it only analyzes the comment and extracts the positive & negative words in it. Then it is passed through sentiment analyzer which calculates the sentiment value based on ratio of postive/negative words in that comment. After that based on your sentiment rules the comments are blocked or allowed. 

  • Rule 1 : set value to 1 if there are no positive words and at least one negative word
  • Rule 2 : set value to 5 if there are no negative words and at least one positive word
  • Rule 3 : set value to 2 if there are more negative words than positive words
  • Rule 4 : set value to 4 if there are more positive words than negative words

The rules are define here : /libs/cq/workflow/components/workflow/social/sentiments/rules

Please check the following documentation page : https://docs.adobe.com/docs/en/aem/6-0/administer/social-communities/moderate-ugc.html

4 replies

prajesh
New Participant
October 16, 2015

Hi Jai,

 

WatchWords analysis happens as part of OOTB Social Moderation workflow. But this is just the OOTB workflow. I cannot tell for sure if you have done any changes to the existing workflow or created any new one in your application. 

One general way to find out which workflow is being triggered is to do the following steps:

1) See the workflow instances running in the workflow console [0].

2) Find out available launchers on a particular path. For example: goto workflows console > launchers and check which launchers are enabled for path.

 

 

[0] - http://localhost:4502/libs/cq/workflow/content/console.html  

Jai1122
Jai1122Author
New Participant
October 16, 2015

Hi Prajesh,

   If my understanding on watchwords is correct, can you please tell me why a comment containing negative words is not denied by default? What should i do so that  watchwords analyzer works?

prajesh
prajeshAccepted solution
New Participant
October 16, 2015

Hi Jai1122,

The watchwords analyzer step does not block the comment contain negatieve words. it only analyzes the comment and extracts the positive & negative words in it. Then it is passed through sentiment analyzer which calculates the sentiment value based on ratio of postive/negative words in that comment. After that based on your sentiment rules the comments are blocked or allowed. 

  • Rule 1 : set value to 1 if there are no positive words and at least one negative word
  • Rule 2 : set value to 5 if there are no negative words and at least one positive word
  • Rule 3 : set value to 2 if there are more negative words than positive words
  • Rule 4 : set value to 4 if there are more positive words than negative words

The rules are define here : /libs/cq/workflow/components/workflow/social/sentiments/rules

Please check the following documentation page : https://docs.adobe.com/docs/en/aem/6-0/administer/social-communities/moderate-ugc.html

Jai1122
Jai1122Author
New Participant
October 16, 2015

Thanks a ton prajesh