Expand my Community achievements bar.

SOLVED

Invoking workflow for comments

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Level 2

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

View solution in original post

4 Replies

Avatar

Level 2

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  

Avatar

Level 5

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?

Avatar

Correct answer by
Level 2

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