Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Invoking workflow for comments

Avatar

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Jai1122
Level 3

15-10-2015

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 3
Level 1
prajesh
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

3 solutions
Top badges earned
Affirm 3
Affirm 1
View profile

Avatar
Affirm 3
Level 1
prajesh
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

3 solutions
Top badges earned
Affirm 3
Affirm 1
View profile
prajesh
Level 1

15-10-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

Answers (3)

Answers (3)

Avatar

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Jai1122
Level 3

15-10-2015

Thanks a ton prajesh

Avatar

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Jai1122
Level 3

15-10-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?

Avatar

Avatar
Affirm 3
Level 1
prajesh
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

3 solutions
Top badges earned
Affirm 3
Affirm 1
View profile

Avatar
Affirm 3
Level 1
prajesh
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

3 solutions
Top badges earned
Affirm 3
Affirm 1
View profile
prajesh
Level 1

15-10-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