[rules-users] (no subject)

2012-06-27 Thread Manikandan Subramanian
-- 
Thanks,
Mani
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] drools-planner-distribution5.4 final unzipping error....

2012-06-18 Thread Manikandan Subramanian
On Fri, Jun 15, 2012 at 11:46 PM, domingo sprabak...@gmail.com wrote:

 Hi,
 I am try to unzip the drools-planner-distribution-5.4.0.final.zip, while
 unzipping I got the following warnig messages...
 DeciderScoreComparatorfact...is password protested.Please enter the
 passwordin the box..
 File 'initializer' is password protected.Please enter the passwordin the
 box..
 File 'Factory' is password protected.Please enter the passwordin the box..
 File 'MachineReassignmentSolution' is password protected.Please enter the
 passwordin the box..
 File 'MrOriginalMacineSolutionIn..' is password protected.Please enter the
 passwordin the box..
 File 'EmployeeConsecutiveAssignment' is password protected.Please enter the
 passwordin the box..
 ...
 ..etc
 I suspect some of the files are password protected...how to get rid of
 this?

 thanks

 -
 with kind regards,

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/drools-planner-distribution5-4-final-unzipping-error-tp4017999.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
Thanks,
Mani
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Getting Exception while using Array in rules template

2012-04-11 Thread Manikandan Subramanian
I am getting exception when using Array in combination with in (...).
Below is the exception
[Error: unable to resolve method: java.util.HashMap.countyName()
[arglength=0]]

and below is the template I have created

template header
stateName
countyName[]
totalPremium

package org.drools.bpmn2

template Premium
stateName
totalPremium

rule Premium_@{row.rowNumber}
ruleflow-group insurance premium

  when

  Input(stateName == @{stateName}, countyName in (@{countyName}))

  then
  System.out.println(total premium  + @{totalPremium});
end
end template

the excel sheet is having the data, the column corresponds to countyName as
CSV value with variable number of variables either empty or 1 or 2 and so
on.

If I give the when like below it works (with countyName0 instead of
countyName).

  when

  Input(stateName == @{stateName}, countyName in (@{countyName0}))

Do I need to use foreach to generate the countyName sequence like
countyName0, countyName1 .. etc to put it in the in (...) condition?

I didnt find much documention about templates that covers foreach with in.
Please help.  Any examples or samples would be helpful.
-- 
Thanks,
Mani
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users