Axon.ivy 7.0 - the Digital Business Platform - is out now...

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 at 08:35

Stefan13's gravatar image

Stefan13
11113
accept rate: 0%

edited 22.05 at 05:51

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
5.5k11032


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 at 05:57

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
5.5k11032
accept rate: 67%

Your answer
toggle preview

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:

×3

Asked: 16.05 at 08:35

Seen: 131 times

Last updated: 22.05 at 05:57