<p><span style="color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;">The Decision Management Community (DMCommunity.org) provides resources for DM practitioners, listing tools, news, providing examples and also giving monthly challenge. As a vendor that always seek improvement, Trisotech took January challenge using Trisotech DMN Modeler (Trisotech.com)</span></p>
<p style="color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;">The January challenge is to create the best possible decision tables to represent the following statements, provided by Prof. Jan Vanthienen who is one of the best known experts in decision tables and a member of the DMN Task Force.</p>
<p style="color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;"><img src="https://dmcommunity.files.wordpress.com/2016/01/vacationdaysproblem.jpg?w=640" alt="VacationDaysProblem" /></p>
<p><strong>Challenges</strong></p><ul></ul>
<p>Only employees younger than 18 or at least 60 years, or employees with at least 30 years of service will receive 5 extra days.</p>
Age
>=14
Years of Service
>=0
<18
-
5
>=60
-
5
-
>=30
5
[18..60)
<30
0
<p>Employees with at least 30 years of service and also employees of age 60 or more, receive 3 extra days, on top of possible additional days already given.</p>
Age
>=14
Years of Service
>=0
-
>=30
3
>=60
-
3
-
-
0
<p>If an employee has at least but less than 30 years of service, 2 extra days are given. These 2 days are also provided for employees of age 45 or more. these 2 extra days cannot be combined with the 5 extra days.</p>
Age
>=14
Years of Service
>=0
>=45
-
2
-
[15..30)
2
-
-
0
<p>Problem Statements:<br />The number of vacation days depends on age and years of service.</p>
<p>Every employee receives at least 22 days.<br />Additional days are provided according the following criteria:</p>
<ol>
<li>Only employees younger than 18 or at least 60 years, or employees with at least 30 years of service will receive 5 extra days.</li>
<li>Employees with at least 30 years of service and also employees of age 60 or more, receive 3 extra days, on top of possible additional days already given.</li>
<li>If an employee has at least but less than 30 years of service, 2 extra days are given. These 2 days are also provided for employees of age 45 or more. these 2 extra days cannot be combined with the 5 extra days.</li>
</ol>
Five extra days Rule
>0
22+Five extra days Rule+Three extra days Rule
0
22+Two extra days Rule+Three extra days Rule
Problem Statements:
The number of vacation days depends on age and years of service.
Every employee receives at least 22 days.
Additional days are provided according the following criteria:
1) Only employees younger than 18 or at least 60 years, or employees with at least 30 years of service will receive 5 extra days.
2) Employees with at least 30 years of service and also employees of age 60 or more, receive 3 extra days, on top of possible additional days already given.
3) If an employee has at least but less than 30 years of service, 2 extra days are given. These 2 days are also provided for employees of age 45 or more. these 2 extra days cannot be combined with the 5 extra days.