<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
when<br>
TaskAssignment($person, $taskType, $period1)<br>
TaskAssignment(same $person, same $taskType, earlier than
$period1, $period2)<br>
not TaskAssingment(same $person, same $taskType, earlier than
$period1, later period than $period2)<br>
<br>
<br>
<div class="moz-cite-prefix">Op 04-12-12 17:40, Michiel Vermandel
schreef:<br>
</div>
<blockquote
cite="mid:1354639226.42067.YahooMailNeo@web161302.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:tahoma,
new york, times, serif;font-size:10pt">
<div><span>Hi,</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
<span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><span>In my usecase I need
to plan tasks (PlanningEntity).</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><span>I have two kinds of
tasks (for example CleaningTask and InspectionTask (inspect
that cleaning was OK)).</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;">Each task<span> needs to be
assigned to a person and a period.</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><span>Person and period both
are PlanningVariables.</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><span>I need to ensure that
a person does not execute an </span><span><span>InspectionTask</span>
twice in a row.</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><span>How can I find out
what the previous task is that is assigned to a person?</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><span>It is not guaranteed
that the person had a task in the previous period
(period-1).</span></div>
<div> <br>
Thanks,<br>
<br>
Michiel<br>
</div>
<div>-----------------<br>
<a class="moz-txt-link-freetext" href="http://www.codessentials.com">http://www.codessentials.com</a> - Your essential software, for
free!<br>
Follow us at <a class="moz-txt-link-freetext" href="http://twitter.com/#!/Codessentials">http://twitter.com/#!/Codessentials</a></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>