Issue 2216: Issue with the algorithm for evaluating $<variable> expressions (notif_service-rtf) Source: (, ) Nature: Uncategorized Issue Severity: Summary: Summary: The algorithm for evaluating $<variable> expressions does not allow for $domain_name and $type_name to be used. Resolution: Added text to middle of 2nd to last paragraph in section 2.4.5 (the 1st change bar on page 47) Revised Text: Actions taken: November 17, 1998: received issue November 16, 1999: closed issue Discussion: Synopsis: Section 2.4.5 describes an algorithm for evaluationg $<variable> expressions. As currently stated, the algorithm would not allow for $domain_name and $type_name to be used, since the text states that it can only be applied to resolve simple-typed members of $.header.fixed_header, when in fact the domain_name and type_name members of the fixed header are nested within the EventType structure, and are therefore non-simple-typed members. The proposed resolution is to re-word the relevant text to state the the algorithm can resolve $domain_name, $type_name, and $event_name to $.header.fixed_header.event_type.domain_name, $.header.fixed_header.event_type.type_name, and $.header.fixed_header.event_name, respectively. Disposition: I agree with the issue and the proposed resolution. The current text is legacy from before the fields in question were made part of a complex data type. VOTE: YES means to re-word the text as recommended; NO means to do nothing End of Annotations:===== Return-Path: To: issues@omg.org Cc: notif_service-rtf@omg.org Subject: Notification Service Issue X-face: *A\_v+D,~Jx_g]`m,s61-x|*;H4hgZeE= Issue: The algorithm for evaluating $ expressions does not allow for $domain_name and $type_name to be used. "The following rules govern translation of a run-time variable, '$variable', into a specific event field. If the run-time variable is reserved (e.g., $curtime) this translation takes precedence. Next, the first matching translation is chosen respectively from: a simple-typed member of $.header.fixed_header, properties in ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ $.header.variable_header, and properties in $.header.filterable_data. If no match is found, the translation defaults to $. variable." As domain_name and type_name are now nested in the (non-simple) type EventType which is a member of the 'event_type' field of the header.fixed_header they are inaccessible using this definition. Suggested fix: The text should be reworded: The following rules govern translation of a run-time variable, '$variable', into a specific event field. If the run-time variable is reserved (e.g., $curtime) this translation takes precedence. The variables $domain_name, $type_name and $event_name are substituted by $.header.fixed_header.event_type.domain_name, $.header.fixed_header.event_type.type_name and $.header.fixed_header.event_name respectively. Next, the first matching translation is chosen from properties in $.header.variable_header and then properties in $.header.filterable_data. If no match is found, the translation defaults to $. variable. -- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Keith Duddy : dud at dstc.edu.au : http://www.dstc.edu.au/AU/staff/dud CRC for Distributed Systems Technology (DSTC) General Purpose South, University of Queensland, 4072, Australia ph: +61 7 336 5 4310 :: fx: +61 7 336 5 4311 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 2nd edition of my book ``Java Programming with CORBA'' now in bookshops >>> http://www.wiley.com/compbooks/vogel <<< :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::