In your example from the ivy demos, you show how to apply an decision table.

/*
 * 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);

Is it also possible, to use more the one object, for example:

in.ruleBaseForDecisionTable.createSession().execute(out.member1,out.member2,out.member3);

Or is that not provided?

regards, Stefan

asked 16.05.2017 at 08:35

Stefan13's gravatar image

Stefan13
(suspended)
accept rate: 0%

edited 22.05.2017 at 05:51

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958


You can easily execute the rule on multiple objects of the same type:

List<Member> members = Arrays.asList(out.member1,out.member2,out.member3);
in.ruleBaseForDecisionTable.createSession().execute(members);

See the Public API for details: http://developer.axonivy.com/doc/latest/PublicAPI/ch/ivyteam/ivy/rule/engine/api/runtime/IStatelessRuleSession.html#execute-java.lang.Iterable-

link

answered 22.05.2017 at 05:57

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4

Asked: 16.05.2017 at 08:35

Seen: 1,368 times

Last updated: 22.05.2017 at 05:57