I have a list of strings and a string value in my bean file.
Here is my bean file
public class DataBean {
List<String> combinations;
private String story;
public String getStory() {
return story;
}
public void setStory(String story) {
this.story = story;
}
public List<String> getCombinations() {
return combinations;
}
public void setCombinations(List<String> combinations) {
this.combinations = combinations;
}
public void addString(String value) {
if (combinations == null) {
combinations = new ArrayList<String>();
}
combinations.add(value);
}
I want to check whether the story consists of any of the strings from the list combinations If yes then print true and if no then print false.
I want to create this rule in my DRL file file but I couldn't understand the syntax. I am totally new at drools kindly help me with this.
I could create and execute simple rules but I am not able to figure out rules of such nature.