Discussion

Displaying message

Hi,
My requirement is if a=30,b=30,c=30 i wanna display message"good"
a=20,b=20,c=20 -------->"avg"
a=10,b=10,c=10 -------->"bad"
how can i approach this requirement and which rule i have to use for that(Decision or Declarative), can any one plz navigate the steps.

Regards,
YERLAGADDA

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

September 24, 2012 - 12:42pm

Decision table is better approach for this.

Create a decision table with three conditions and return the result accordingly
condition action
a b c
if 30 30 30 "good"
else if 20 20 20 "avg"
else if 10 10 10 "bad"
othewise "somemessge"

hope this would help you.

Thanks
Kartheepan.