<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoPlainText>I have a bunch of decision tables with two columns of
action, like:<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=786
style='width:589.2pt;border-collapse:collapse'>
<tr>
<td width=110 valign=top style='width:82.8pt;border:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>RuleSet<o:p></o:p></p>
</td>
<td width=134 valign=top style='width:100.8pt;border:solid black 1.0pt;
border-left:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>ED_Notification<o:p></o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border:solid black 1.0pt;
border-left:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border:solid black 1.0pt;
border-left:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
</tr>
<tr>
<td width=110 valign=top style='width:82.8pt;border:solid black 1.0pt;
border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>Import<o:p></o:p></p>
</td>
<td width=134 valign=top style='width:100.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>...Visit<o:p></o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
</tr>
<tr>
<td width=110 valign=top style='width:82.8pt;border:solid black 1.0pt;
border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
<td width=134 valign=top style='width:100.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
</tr>
<tr>
<td width=245 colspan=2 valign=top style='width:183.6pt;border:solid black 1.0pt;
border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>RuleTable Triggers<o:p></o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
</tr>
<tr>
<td width=110 valign=top style='width:82.8pt;border:solid black 1.0pt;
border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>CONDITION<o:p></o:p></p>
</td>
<td width=134 valign=top style='width:100.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>CONDITION<o:p></o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>ACTION<o:p></o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>ACTION<o:p></o:p></p>
</td>
</tr>
<tr>
<td width=786 colspan=4 valign=top style='width:589.2pt;border:solid black 1.0pt;
border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>$visit:Visit<o:p></o:p></p>
</td>
</tr>
<tr>
<td width=110 valign=top style='width:82.8pt;border:solid black 1.0pt;
border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>Facility<o:p></o:p></p>
</td>
<td width=134 valign=top style='width:100.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>age >= $1, age <= 115<o:p></o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>$visit.setTriggerStatus($param);<o:p></o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>$visit.setRuleTriggered($param);<o:p></o:p></p>
</td>
</tr>
<tr>
<td width=110 valign=top style='width:82.8pt;border:solid black 1.0pt;
border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>4116<o:p></o:p></p>
</td>
<td width=134 valign=top style='width:100.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>70<o:p></o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText><o:p> </o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>Over_70<o:p></o:p></p>
</td>
</tr>
<tr>
<td width=110 valign=top style='width:82.8pt;border:solid black 1.0pt;
border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>4166<o:p></o:p></p>
</td>
<td width=134 valign=top style='width:100.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>80<o:p></o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>New<o:p></o:p></p>
</td>
<td width=270 valign=top style='width:202.8pt;border-top:none;border-left:
none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoPlainText>Over_80<o:p></o:p></p>
</td>
</tr>
</table>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Note that not every row has an entry in the first ACTION
column.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Is there any way to get the spreadsheet compiler to put
all the ACTION columns into a modify() block, or some other equivalent
construct, so that the changes to the visit object get propagated?<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>I’ve tried making by ACTIONS be:<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>modifyRetract($visit);$visit.setTriggerStatus($param)<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>and<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>$visit.setRuleTriggered($param);modifyInsert($visit);<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>But when there’s no value in the first ACTION column, the
compiler doesn’t put in the retract. I suppose I could wrap each of the actions
in a modify() block, but I’m concerned about the performance of taking every
object in and out of the working memory twice.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> - irving -<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
</div>
</body>
</html>