Hi ,
Remove the code that has shown below and try it out it should work.
imports...
public class RulesActionHandler implements ActionHandler {
private static final long serialVersionUID = 1L;
private static Log log =LogFactory.getLogRulesActionHandler.class);
private String ruleEngineJndiName = "";
private String ruleBaseName = "";
==============REMOVE THIS CODE=====================
public String getRuleBaseName() {
return ruleBaseName;
}
public void setRuleBaseName(String ruleBaseName) {
this.ruleBaseName = ruleBaseName;
}
public String getRuleEngineJndiName() {
return ruleEngineJndiName;
}
public void setRuleEngineJndiName(String ruleEngineJndiName) {
this.ruleEngineJndiName = ruleEngineJndiName;
}
===============REMOVE ENDED=====================
private RulesEngine getRulesEngine() {
}
public void execute(ExecutionContext executionContext) throws
Exception {
long engineId =
getRulesEngine().createNewEngine(getRuleBaseName());
assertVariables(engineId,executionContext.getContextInstance().getVariables());
getRulesEngine().fireRules(engineId);
refreshVariables(engineId,executionContext.getContextInstance().getVariables());
}
private void assertVariables(long engineId, Map variables) {
}
private void refreshVariables(long engineId, Map variables) {
}
}
I think when you define in the processdefinition.xml the variables
<action .....>
java:/cucumber/RulesEngine
news-sensor
the corresponding variables in the ActionHandler get's populated with the
values i don't think that you have to write setter and getter methods for that.
Let me know if doesn't work.
Abhiram
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964701#3964701
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964701
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user