I have 2 arraylist of type TYPE1 (let's say it) as ruleset parameters on my Rule Project. One for IN another one for OUT. On my ruleflow I have an initial action task that initializes the OUT ruleset parameter. Since we have an arrayList as input I will have to "iterate" over it which I know how to do it.
My problem comes after. In the next task of my ruleflow I have a rule task where I added all my decision tables that have some preconditions. On most decision tables more than one rule can be fired. What I want to achieve is for each rule fired I want to add a new object of type TYPE1 to the output arraylist. The problem comes here. If I have 3 rules firing I in fact have 3 objects of type TYPE1 being added to the output arraylist but all 3 come with the same values. Looks like all are "pointing" to the same object.
My question is, is there any way on an action column to create a new object (call the constructor) of type TYPE1 so when executing the rest of the actions of the rule it writes on that new object of TYPE1 ? I know I can achieve this if I create as many ruleset variables of type TYPE1 as many rules I have and use each one for each rule, but this way my table gets huge (sideways) and it's not the way we want it.
Both TYPE1 and the arraylists are BOM members.
Edit: Forgot to mention that I'm using RetePlus algorithm, with "none" as exit criteria and ordering and dynamic BAL for the run time rule selection.
I hope I explained myself good enough for someone to be able to help me. Thanks in advance.