<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: RuleEngine - Use more then one object within one decision table.</title><link>https://answers.axonivy.com/questions/2628/ruleengine-use-more-then-one-object-within-one-decision-table</link><description>&lt;p&gt;In your example from the ivy demos, you show how to apply an decision table.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/*
 * We need to create a rule session to execute the rules.
 * 
 * 'out.member' is the input object that stores the information of a member.
 * This object will be modified during the rule execution.
 */
in.ruleBaseForDecisionTable.createSession().execute(out.member);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is it also possible, to use more the  one object, for example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;in.ruleBaseForDecisionTable.createSession().execute(out.member1,out.member2,out.member3);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Or is  that not provided?&lt;/p&gt;
&lt;p&gt;regards, Stefan&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2628/ruleengine-use-more-then-one-object-within-one-decision-table" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 22 May 2017 05:57:13 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2628/ruleengine-use-more-then-one-object-within-one-decision-table/2634</link><description>&lt;p&gt;You can easily execute the rule on multiple objects of the same type:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;List&amp;lt;Member&amp;gt; members = Arrays.asList(out.member1,out.member2,out.member3);
in.ruleBaseForDecisionTable.createSession().execute(members);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See the Public API for details: &lt;a href="http://developer.axonivy.com/doc/latest/PublicAPI/ch/ivyteam/ivy/rule/engine/api/runtime/IStatelessRuleSession.html#execute-java.lang.Iterable-"&gt;http://developer.axonivy.com/doc/latest/PublicAPI/ch/ivyteam/ivy/rule/engine/api/runtime/IStatelessRuleSession.html#execute-java.lang.Iterable-&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 22 May 2017 05:57:13 -0400</pubDate><guid>https://answers.axonivy.com/questions/2628/ruleengine-use-more-then-one-object-within-one-decision-table/2634</guid></item></channel></rss>