Some confusion with Start Event Type and TriggersSome confusion with Start Event Type and TriggersSome confusion with Start Event Type and TriggersPatrikhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1886722014-10-29T07:41:31Z2014-10-29T07:40:45ZHi,<br /><br />while working with the BPMN library I have noticed that there seems to be a small mistake with the Triggers in the GraphRep of the BPMN Start Event. In the AttrRep the Triggers "Error" and "Compensation" are only available for "<span style="font-size: 12px"></span><span style="font-size: 12px"></span>Event Sub-Process (interrupting)", but in the GraphRep the "big IF" (the one with the many ANDs and ORs) checks those two triggers only for "<span style="font-size: 12px"></span><span style="font-size: 12px"></span>Event Sub-Process (non-interrupting)". This in turn leads to strange behaviour in the visualization of the Start Event (i.e. in some cases when multiple triggers are selected the notation does not use the "multiple-triger" pentagon). The simplest solution for this to switch the "<span style="font-size: 12px"></span><span style="font-size: 12px"></span>Event Sub-Process (interrupting)" and the "<span style="font-size: 12px"></span><span style="font-size: 12px"></span>Event Sub-Process (non-interrupting)" in the "big IF".<br /><br />Also if anybody is interested, I tried to make the "big IF" a bit more readable in the Library that I am working on and this is what I am using there:<br /><div class="code"><span class="code-lines"> 1</span># Count how many of the triggers are set (top-level, non-interrupting<br /><span class="code-lines"> 2</span>and interrupting)<br /><span class="code-lines"> 3</span>SET topcnt:(cond(sMes = "Yes", 1, 0))<br /><span class="code-lines"> 4</span>SET topcnt:(cond(sTim = "Yes", topcnt+1, topcnt))<br /><span class="code-lines"> 5</span>SET topcnt:(cond(sCon = "Yes", topcnt+1, topcnt))<br /><span class="code-lines"> 6</span>SET topcnt:(cond(sSig = "Yes", topcnt+1, topcnt))<br /><span class="code-lines"> 7</span>SET nonintercnt:(cond(sEsc = "Yes", topcnt+1, topcnt))<br /><span class="code-lines"> 8</span>SET intercnt:(cond(sErr = "Yes", nonintercnt+1, nonintercnt))<br /><span class="code-lines"> 9</span>SET intercnt:(cond(sCom = "Yes", intercnt+1, intercnt))<br /><span class="code-lines">10</span><br /><span class="code-lines">11</span>IF (((sTyp = "Top-level") AND (topcnt > 1)) OR<br /><span class="code-lines">12</span> ((sTyp = "Event Sub-Process (non-interrupting)") AND (nonintercnt ><br /><span class="code-lines">13</span>1)) OR<br /><span class="code-lines">14</span> ((sTyp = "Event Sub-Process (interrupting)") AND (intercnt > 1)))<br /></div><br />I personaly find this version of the condition more readable. Also the same thing (the SETs which count the selected triggers) works in the AttrRep to enable the "Parallel" attribute.Patrik2014-10-29T07:40:45Z