Rule Family Table (Table in ADOxx)Rule Family Table (Table in ADOxx)RE: Rule Family Table (Table in ADOxx)Wilfrid Utzhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1285802014-05-26T13:20:12Z2014-05-26T13:20:12ZThanks for your message. The reason for this behaviour is that in GRAPHREP the code is executed sequentially and builds upon each other. This means that the lines are actually there but behin the filled POLYGON. Please find below an update the also shows the lines.<br /><br /><div class="code"><span class="code-lines"> 1</span>GRAPHREP layer:-1<br /><span class="code-lines"> 2</span>AVAL set-row: (1) set-col:"Conclusion" dep:"Rule Family Table"<br /><span class="code-lines"> 3</span>TEXT (dep) x:-.0cm y:-2.3cm w:c:3.5cm h:t line-break:words<br /><span class="code-lines"> 4</span><br /><span class="code-lines"> 5</span>AVAL set-row: (1) set-col:"Condition n.1" dep:"Rule Family Table"<br /><span class="code-lines"> 6</span>TEXT (dep) x:-.0cm y:-.8cm w:c:3.5cm h:t line-break:words color: black<br /><span class="code-lines"> 7</span><br /><span class="code-lines"> 8</span>AVAL set-row: (1) set-col:"Condition n.2" dep:"Rule Family Table"<br /><span class="code-lines"> 9</span>TEXT (dep) x:-.0cm y:0.8cm w:c:3.5cm h:t line-break:words<br /><span class="code-lines">10</span><br /><span class="code-lines">11</span>#=====================================================<br /><span class="code-lines">12</span><br /><span class="code-lines">13</span># select type for color<br /><span class="code-lines">14</span>AVAL atype:"Type"<br /><span class="code-lines">15</span><br /><span class="code-lines">16</span><br /><span class="code-lines">17</span>IF (atype = "DRF")<br /><span class="code-lines">18</span>{<br /><span class="code-lines">19</span> FONT h:0.3cm color: black bold<br /><span class="code-lines">20</span> TEXT "DRF" x:-1.5cm y:1.5cm w:c<br /><span class="code-lines">21</span>}<br /><span class="code-lines">22</span><br /><span class="code-lines">23</span>ELSIF (atype = "RF")<br /><span class="code-lines">24</span>{<br /><span class="code-lines">25</span> FONT h:0.3cm color:red bold<br /><span class="code-lines">26</span> TEXT "RF" x:-1.5cm y:1.5cm w:c<br /><span class="code-lines">27</span>}<br /><span class="code-lines">28</span><br /><span class="code-lines">29</span> <br /><span class="code-lines">30</span>PEN w:0.1cm color:black<br /><span class="code-lines">31</span>FILL color:lightgreen<br /><span class="code-lines">32</span>POLYGON 7<br /><span class="code-lines">33</span> x1:2cm y1:2cm<br /><span class="code-lines">34</span> x2:-2cm y2:2cm<br /><span class="code-lines">35</span> x3:-2cm y3:-2cm<br /><span class="code-lines">36</span> x4:-1cm y4:-3cm<br /><span class="code-lines">37</span> x5:1cm y5:-3cm<br /><span class="code-lines">38</span> x6:2cm y6:-2cm<br /><span class="code-lines">39</span> x7:2cm y7:1cm<br /><span class="code-lines">40</span><br /><span class="code-lines">41</span>PEN w:0.05cm color:gray<br /><span class="code-lines">42</span>LINE x1:1cm y1:-1.5cm x2:-1cm y2:-1.5cm<br /><span class="code-lines">43</span><br /><span class="code-lines">44</span>PEN w:0.02cm style:dash color:black<br /><span class="code-lines">45</span>LINE x1:1cm y1:0.3cm x2:-1cm y2:0.3cm<br /><span class="code-lines">46</span><br /><span class="code-lines">47</span><br /><span class="code-lines">48</span>#===============================================================<br /></div>Wilfrid Utz2014-05-26T13:20:12ZRE: Rule Family Table (Table in ADOxx)https://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1240392014-05-21T08:04:41Z2014-05-21T08:03:53ZDear ADOx.org Team,<br />Thank you very much for your time and help in answering my question.<br />I would like to ask another question about the FILL color. I tried to use the "FILL color:lightgreen", because I would like to have the base colore for this shape but after added it, I cannot see the separation lines. How can solve this problem?2014-05-21T08:03:53ZRE: Rule Family Table (Table in ADOxx)Wilfrid Utzhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1206212014-05-15T08:56:34Z2014-05-15T08:56:34ZIn order to accomplish this, please have a look at the GRAPHREP section (<a href="http://www.adoxx.org/live/graphrep">http://www.adoxx.org/live/graphrep</a>) of the documentation page and the GRAPHREP repository (<a href="http://www.adoxx.org/live/adoxx-graphrep-repository">http://www.adoxx.org/live/adoxx-graphrep-repository</a>).<br /><br />We propose the following approach:<br />1. Access table content using AVAL and set-row, set-col statements in GRAPHREP<br />2. Represent it in the GRAPHREP implementation of the object<br /><br />Attached a sample implementation of the proposal as an ABL and also the GRAPHREP code:<br /><br /><br /><div class="code"><span class="code-lines"> 1</span>GRAPHREP layer:-1<br /><span class="code-lines"> 2</span>AVAL set-row: (1) set-col:"Conclusion" dep:"Rule Family Table"<br /><span class="code-lines"> 3</span>TEXT (dep) x:-.0cm y:-2.3cm w:c:3.5cm h:t line-break:words<br /><span class="code-lines"> 4</span><br /><span class="code-lines"> 5</span>AVAL set-row: (1) set-col:"Condition n.1" dep:"Rule Family Table"<br /><span class="code-lines"> 6</span>TEXT (dep) x:-.0cm y:-.8cm w:c:3.5cm h:t line-break:words color: black<br /><span class="code-lines"> 7</span><br /><span class="code-lines"> 8</span>AVAL set-row: (1) set-col:"Condition n.2" dep:"Rule Family Table"<br /><span class="code-lines"> 9</span>TEXT (dep) x:-.0cm y:0.8cm w:c:3.5cm h:t line-break:words<br /><span class="code-lines">10</span><br /><span class="code-lines">11</span>#=====================================================<br /><span class="code-lines">12</span><br /><span class="code-lines">13</span># select type for color<br /><span class="code-lines">14</span>AVAL atype:"Type"<br /><span class="code-lines">15</span><br /><span class="code-lines">16</span><br /><span class="code-lines">17</span>IF (atype = "DRF")<br /><span class="code-lines">18</span>{<br /><span class="code-lines">19</span> FONT h:0.3cm color: black bold<br /><span class="code-lines">20</span> TEXT "DRF" x:-1.5cm y:1.5cm w:c<br /><span class="code-lines">21</span>}<br /><span class="code-lines">22</span><br /><span class="code-lines">23</span>ELSIF (atype = "RF")<br /><span class="code-lines">24</span>{<br /><span class="code-lines">25</span> FONT h:0.3cm color:red bold<br /><span class="code-lines">26</span> TEXT "RF" x:-1.5cm y:1.5cm w:c<br /><span class="code-lines">27</span>}<br /><span class="code-lines">28</span><br /><span class="code-lines">29</span> <br /><span class="code-lines">30</span>PEN w:0.05cm color:gray<br /><span class="code-lines">31</span>LINE x1:1cm y1:-1.5cm x2:-1cm y2:-1.5cm<br /><span class="code-lines">32</span><br /><span class="code-lines">33</span>PEN w:0.02cm style:dash color:black<br /><span class="code-lines">34</span>LINE x1:1cm y1:0.3cm x2:-1cm y2:0.3cm<br /><span class="code-lines">35</span><br /><span class="code-lines">36</span>PEN w:0.1cm color:black<br /><span class="code-lines">37</span>POLYGON 7<br /><span class="code-lines">38</span> x1:2cm y1:2cm<br /><span class="code-lines">39</span> x2:-2cm y2:2cm<br /><span class="code-lines">40</span> x3:-2cm y3:-2cm<br /><span class="code-lines">41</span> x4:-1cm y4:-3cm<br /><span class="code-lines">42</span> x5:1cm y5:-3cm<br /><span class="code-lines">43</span> x6:2cm y6:-2cm<br /><span class="code-lines">44</span> x7:2cm y7:1cm<br /><span class="code-lines">45</span><br /><span class="code-lines">46</span><br /><span class="code-lines">47</span>#===============================================================<br /></div>Wilfrid Utz2014-05-15T08:56:34ZMoved to implementation team category.Wilfrid Utzhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1200812014-05-12T15:14:40Z2014-05-12T15:14:40ZMoved to implementation team category.Wilfrid Utz2014-05-12T15:14:40ZRule Family Table (Table in ADOxx)https://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1197522014-05-12T12:59:20Z2014-05-12T12:59:20ZDear ADOx.org Team,<br />I would like to ask some questions. I created the Decision Model Diagram on based of the Decision Model of Barbara von Halle and Larry Goldberg. In this diagram there is an octagonal shape that called, "Business Decision". The Business Decision is connected to different hexagonal shapes that called, "Rule Family". Moreover, the Rule Family shape is connected to the table that called "Rule Family Table" by using an attribute of the type "Intermodel reference". In the Rule Family-GraphRep I used the option TEXT and I inserted the names in general; Conclusion, Inferred Conditions and Conditions. (As Figure shows)<br /><br />My questions are:<br />1) How can have the possibility to insert the names in this shape during the use of ADOxx Modelling Toolkit, instead of having fix names. That menas the shape have to be divide in 3 parts:<br />- First part shows Conclusion name<br />- Second part shows differenet Conditions names (Inferred Conditions)<br />- Third part shows different Conditions names (Another kind of Conditions) <br /><br />For example instead of having the general name of "Conclusion" in the shape, I could have the possibility to write the name as "Policy Renewal Override", thus in this way I can reuse this shape several time. The same of Conditions as well. <br /><br />2) And if there is any possibility for inserting the names in this shape, how can it appear this change automatically in the Rule family Table in the first row?<br /><br /><br />Thank you2014-05-12T12:59:20Z