<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 12-12-13 18:11, Mats Nor&eacute;n wrote:<br>
    </div>
    <blockquote
cite="mid:CAAE3K7Xn2yNn+XtObJg0PBxH5TTWt6mRw0P_DW6mrOy-z-aUEA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi,<br>
          I've got a domain with the following entities:<br>
        </div>
      </div>
    </blockquote>
    entities? you mean classes?<br>
    <blockquote
cite="mid:CAAE3K7Xn2yNn+XtObJg0PBxH5TTWt6mRw0P_DW6mrOy-z-aUEA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>- Person (planning entity)<br>
          - Desk (planning variable)<br>
        </div>
      </div>
    </blockquote>
    a class cannot be a variable. This probably a problem fact that and
    person.getDesk() nor DeskAssignement.getPerson() is the planning
    variables.<br>
    <blockquote
cite="mid:CAAE3K7Xn2yNn+XtObJg0PBxH5TTWt6mRw0P_DW6mrOy-z-aUEA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>- DeskAssignment (solution)<br>
        </div>
      </div>
    </blockquote>
    Now I am totally confused :)<br>
    in the official examples, something called Assignment is a planning
    entity.<br>
    <blockquote
cite="mid:CAAE3K7Xn2yNn+XtObJg0PBxH5TTWt6mRw0P_DW6mrOy-z-aUEA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>All persons should be assigned to a desk according to some
          rules. <br>
        </div>
        <div>What I would like to do is to make certain Persons and
          their Desk immovable, ie, they are assigned a desk in the
          initial solution and should be fixed there. They are only
          there for the score calculation. <br>
        </div>
      </div>
    </blockquote>
    agreed, "immovable" is the correct concept to use for that<br>
    <blockquote
cite="mid:CAAE3K7Xn2yNn+XtObJg0PBxH5TTWt6mRw0P_DW6mrOy-z-aUEA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>I looked at 14.3.1 Immovable planning entities but couldn't
          really see how I would apply it to my use case. <br>
        </div>
      </div>
    </blockquote>
    Take a look at the course scheduling example.<br>
    Here's a demo of immovable planning entities in that example:<br>
    &nbsp; <a class="moz-txt-link-freetext" href="http://www.youtube.com/watch?v=4meWIhPRVn8">http://www.youtube.com/watch?v=4meWIhPRVn8</a><br>
    <blockquote
cite="mid:CAAE3K7Xn2yNn+XtObJg0PBxH5TTWt6mRw0P_DW6mrOy-z-aUEA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Why is the filter applied at the planning entity level?
          Since it's the planning variable that changes I thought that I
          should somehow filter the allowed values for the Desk. <br>
        </div>
      </div>
    </blockquote>
    Don't mix the concept of "(im)movable entities" (which is what you
    want) with the concept of "limiting value ranges per entity" or the
    concept of "filtering specific move selectors" (which is overkill
    and convoluted for your needs).<br>
    <blockquote
cite="mid:CAAE3K7Xn2yNn+XtObJg0PBxH5TTWt6mRw0P_DW6mrOy-z-aUEA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
        </div>
        <div><br>
        </div>
        <div>Regards, <br>
        </div>
        <div>Mats<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>&nbsp;<br>
        </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>