on 04-30-2018 6:15 AM
Hi all,
I was using the BRMS Rules Edit API . and was able to query the decision table but rather confused while obtaining the cell values
below is decision table columns
with query on decision table as below
IProject project = api.getProject(projectName);
IRuleset ruleset = project.getRuleset(rulesetName);
IDecisionTable dt = ruleset.getDecisionTable(decisiontableName);
IDecisionTableQuery query = dt.createQuery();
query.setConditionValue("Org","Org2");
IDecisionTableRow[] dtRow = dt.getRows(query);
I was able to get the Org2 row using query
ArrayList<String> arrli = new ArrayList<String>();
for ( IDecisionTableRow brmRow : dtRow){
ICell[] cell = brmRow.getCells();
for (ICell cellvalues : cell)
arrli.add(cellvalues.getValue().toString());
}
return (arrli.toString());
};
i was able to get the cellvalues using cellvalues.getValue().toString . and its returning as string seperated by comma.
My question is
What is the difference between setActionValue and SetConditonValue for the above decision table .
Thanks in advance
Prasad
do you know what are action column and condition column?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jun Wu,
I understood the action and condition but facing issues while commiting the project using
project.commit(rulesets , true);
how can we get the rulesets after generating a query setting action and condition headers.
I was getting error
The method commit(IRuleset[], boolean) in the type IProject is not applicable for the arguments (IRuleset, boolean)
Regards
Prasad
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.