| |
|
| java.lang.Object org.drools.decisiontable.model.DRLElement org.drools.decisiontable.model.Rule
Constructor Summary | |
public | Rule(String name, Integer salience, int spreadsheetRow) Create a new rule. |
Rule | public Rule(String name, Integer salience, int spreadsheetRow)(Code) | | Create a new rule. Note that the rule name should be post-fixed with the row number,
as one way of providing tracability for errors back to the originating spreadsheet.
Parameters: name - The name of the rule. This may be used to calculate DRL row error to Spreadsheet row error (just need to keep track of output lines, and map spreadsheetRow to a startand end range in the rendered output). Parameters: salience - Parameters: spreadsheetRow - The phyical row number from the spreadsheet. |
appendDescription | public void appendDescription(String value)(Code) | | |
calcSalience | public static int calcSalience(int rowNumber)(Code) | | |
convertColNumToColName | public static String convertColNumToColName(int i)(Code) | | Parameters: col - -the column number. Start with zero. The spreadsheet name for this col number, such as "AA" or "AB" or"A" and such and such. |
getConsequences | public List getConsequences()(Code) | | |
getSpreadsheetRowNumber | public int getSpreadsheetRowNumber()(Code) | | The row in the spreadsheet this represents. This can be handy when mapping a line error from Parser back to the rule row.Will need to have a map of ranges of line numbers that each rule covers.Then can find out the rule that cause it, and this will give the row number to report. |
setActivationGroup | public void setActivationGroup(String value)(Code) | | |
setAgendaGroup | public void setAgendaGroup(String group)(Code) | | |
setDescription | public void setDescription(String value)(Code) | | |
setRuleFlowGroup | public void setRuleFlowGroup(String value)(Code) | | |
|
|
|