Class Reference
EnsPortal.RuleEditor
|
|
![]() |
|||
Private Storage |
|
|
|
User needs WRITE permissions on one of the following resources to make changes on this page: %Ens_Rules, %Ens_RoutingRules, %Ens_BusinessRules or %Ens_Code
Comma-separated list of additional JS include files for the page.
Displayed name of this page.
User needs READ permissions on one of the following resources to view this page: %Ens_Rules, %Ens_RoutingRules, %Ens_BusinessRules or %Ens_Code
|
height of the text box
The condition to be parsed
radius of the delete and insert circles
margin spacing for the frame box. if FRAMEMARGIN is 0, no frame box is drawn
distance of the horizontal indentation for condition graph
distance of the horizontal indentation
length of the horizontal connecting lines
Page invoked to create new rule
The name of the default production name
radius of the rounded corners
The name of the rule to open
spacing between boxes
height of the total tab header
height of the tabs
the column width of the ruleSetTable
the minimum first column width of the ruleSetTable
the row height of the ruleSetTable
the row height of the ruleSetTable
the x-margin of the ruleSetTable
the x-cellpadding of the ruleSetTable
the x-cellspacing of the ruleSetTable
the y-cellspacing of the ruleSetTable
the maximum width of the tabs (from bottom to bottom)
the amount the top tab covers the bottom tab
the radius of the tab side curve
the margin of tha tab text
The amout the tab top width is smaller than the bottom width
size of the margin of the text inside the text box
distance of the vertical offset for the text y-attribute
Flag to indicate whether the user is permitted to test
Flag to indicate whether the user is permitted to view body contents of stored data.
Flag to indicate whether the user is permitted to view Rule logs for testing
User entered message data serialized
Where to find test data - Header, Body or Paste
This is the class used for data - either the context class or the Document class is a routing rule
If source of data is from a message header's message body
Id of message body used for data source
Comma-delimited list of states (1/true=contracted, 0/""/false=expanded=default) of rules in the ruleSet
Flag to show message contents or not
test Result error message As %String
Flag to indicate if a routing rule
HTML rendition of the test message contents
Indicate if test message needs HTML escaping before writing to current device
Indicates if the test ran without an error (an error in the Rule counts as OK)
test Result as JSON
User entered production source item for the test
|
Return the array of links to show in the locator bar.
pLink(n)=$LB(caption,link)
Ensure the timestamp for the current BPL is loaded and sent out to the client.
Add the EnsException error handling on the client.
Get the (localized) name of the page.
Get the (localized) title string for the page.
Create a new Rule class.
Method to draw any error of results.
Method to draw the Message
Method to draw the Rule Debug
Method to draw the Rule log
Callback to return a list of resources required for a specific HyperEvent. The user must have sufficient privileges on one of the resource/permission pairs to be permitted to execute the hyperevent. An empty string implies the user already has sufficient privileges for the ZenMethod specified in pMethod.
Return the internal name of the current document.
This is called in the middle of rendering the tool ribbon. Subclasses can inject their own content into the ribbon by writing it out in this method. This content should be wrapped within a td element.
Get information to display in the ribbon bar.
This returns 1 if a production is not running. Returns 2 if a production is running and testing enabled Returns 0 if a production is running and testing not enabled
What to do when the user selects a new testContextSource value.
Handle a source control menu selection.
Collapse (if argument is true) or expand (if argument is false) all rules of first level
Collapse (if argument is true) or expand (if argument is false) all rules of first level
Collapse or expand a rule (flip state)
Collapse a rule
Used to configure test data entry pane
Delete the class definition for a Rule that a user might have created with the New option, not saved and then renamed using Save As.
draw an elbow line between (x1,y1) and (x2,y2) we assume x1 method drawFrameBox(svg, x, y, width, height, disabled) [ Language = javascript ] method drawHPath(svg, x1, x2, y) [ Language = javascript ]draw horizontal path, with a rounded elbow method drawLine(svg, x1, y1, x2, y2, drawInFront) [ Language = javascript ] method drawOneTab(index, tabwidth, isActive) [ Language = javascript ] method drawPlusMinus(svg, cx, cy, object) [ Language = javascript ]draw the plus or minus for rule collapsing method drawRuleDefinition() [ Language = javascript ] method drawRuleHeader() [ Language = javascript ] method drawRuleSet(skipLoseFocus) [ Language = javascript ]drawRule method drawRuleSetsTable() [ Language = javascript ] method drawRuleType() [ Language = javascript ] method drawSpiderLine(svg, xbase, ybase, width, height, xtarget, ytarget) [ Language = javascript ]we draw a connect line from a box to the target the starting points can be the middle-top, middle-bottom or the right-middle method drawTableCell(count, x, y, width, height, caption, classsuffix, focusable, dragable) [ Language = javascript ] method drawTableRow(count, width, name, begin, end) [ Language = javascript ] method drawTabs() [ Language = javascript ] method drawTestPanel(show) [ Language = javascript ] method drawTextBox(svg, isEnabled, x, y, jsonObject, jsonProperty, jsonRuleObject, jsonParentObject, jsonParentArrayObject, jsonParentArrayIndex, jsonChildrenArrayObject, jsonParentLoopObject) [ Language = javascript ] method encounteredError(pHTMLText As %String = "") as%Boolean classmethod evaluateRule(pContext As %RegisteredObject , pRuleName As%String , Output pRuleLogData As%String = "", pDebugFlags As%String = "crd", pSelectMode As%Integer = 2) as%Status Given a context object evaluate the rule and create result output as JSON method expandRuleObject2(jObject) [ Language = javascript ]Expand a rule method findRuleNo(object) [ Language = javascript ] method getClientModel() [ Language = javascript ]Get the JSON model on the client. method getCurrentName() [ Language = javascript ]Return the current name of the class/object being modified method getFocus(id) [ Language = javascript ] method getPropertyErrorText(jsonObject, jsonProperty) [ Language = javascript ] method getRuleContext(context) [ Language = javascript ] method getSegment(pathString) [ Language = javascript ] method getSelection(ctrl) [ Language = javascript ] method headerPopulateComboBoxes() [ Language = javascript ] method hideAllHelpPanelActions(imagesToo) [ Language = javascript ] method initialize() [ Language = javascript ] method insertMainMap(svgRectObject, svgTextObject, jsonObject, jsonProperty, jsonRuleObject, jsonParentObject, jsonParentArrayObject, jsonParentArrayIndex, jsonChildrenArrayObject, jsonParentLoopObject) [ Language = javascript ] method isRuleCollapsed(object) [ Language = javascript ]Return true if rule state is collapsed method isRuleCollapsed2(object) [ Language = javascript ] method jsonNewObject(type) [ Language = javascript ] method loseFocus() [ Language = javascript ] method menuAddClear() [ Language = javascript ] method menuAddInsertPick(caption, keyword) [ Language = javascript ] method menuAddInsertSeparator() [ Language = javascript ] method menuAddSelected(menuSelection) [ Language = javascript ] method menuAddUpdateGeometry() [ Language = javascript ] method menuHide() [ Language = javascript ] method menuOnClose(event) [ Language = javascript ] method menuShow(menu, x, y) [ Language = javascript ] method menuZoomChanged(objMenu) [ Language = javascript ] method mouseDown(event, image) [ Language = javascript ] method mouseOut(image) [ Language = javascript ] method mouseOver(image) [ Language = javascript ] method mouseUp(event, image) [ Language = javascript ] method newObject(objType) [ Language = javascript ] method newRule(ruleName) [ Language = javascript ] method objectClicked(event, isDoubleClick) [ Language = javascript ] method onDocumentReload(reason) [ Language = javascript ]Ensure we redraw the diagram if a reload was requested method onDocumentSaveComplete(contentUpdated) [ Language = javascript ]Ensure we redraw the diagram if the model was updated. method onPopupAction(popupName, action, value) [ Language = javascript ]This client event is fired when the a popup page launched from this page fires an action. method onlayoutHandler(load) [ Language = javascript ]This client event, if present, is fired when the page is first loaded or whenever it is resized.
If this is called at load time, then load will be true. method onmousedown(event) [ Language = javascript ] method onmousemove(event) [ Language = javascript ] method onmouseout(event) [ Language = javascript ] method onmouseup(event) [ Language = javascript ] method openRule() [ Language = javascript ] method point(x, y) [ Language = javascript ] method populateMenuAddAction(prefix) [ Language = javascript ] method populateMenuAddForEach(prefix) [ Language = javascript ] method populateMenuAddWhen(prefix, isFirst, includeOtherwise) [ Language = javascript ] method removeClassFromElement(elem, classToRemove) [ Language = javascript ] method ruleAssistClassChanged() [ Language = javascript ] method ruleTypeChanged() [ Language = javascript ] method runTest() as [ ZenMethod ]%Boolean run the test. Returns 1 if OK and 0 if not OK viaencounteredError method saveRule(showDialog, oldName) [ Language = javascript ] method selectContextClass() [ Language = javascript ] method serializeMessageAsHTML(pMessageObject As %RegisteredObject , Output pSC As%Status = $$$OK, Output pNeedsHTMLEscaping As%Boolean = 1) as%Stream.TmpCharacter Given an object create an HTML serialization of the object. method setComboOptions(combo, options, insertBlank) [ Language = javascript ] method setComboValue(combo, value) [ Language = javascript ] method setReadOnly(readOnly) [ Language = javascript ]SetreadOnly to the value of readOnly. Subclasses MUST implement this method to update the controls on the page so that the page's behaviour actually matches the value of the readOnly flag. method setSelection(ctrl, pos1, pos2) [ Language = javascript ] method showMsgBox(pShow) [ Language = javascript ]Show or hide message box. method showSCMenu() [ Language = javascript ]CallUpdateSCMenu () first in case the document has been modified elsewhere, then display the source control menu based on the contents of the _sourceControlMenu data created byUpdateSCMenu (). method stopDrag() [ Language = javascript ] method sufficientTestData(Output pErrorText As %String = "") as%Boolean method tabClicked(index) [ Language = javascript ] method testSourceLookup() [ Language = javascript ] method textEditorKeypress() [ Language = javascript ] method textOKClicked() [ Language = javascript ] method toggleHelp() [ Language = javascript ]Hide/show assist panel. method toggleMessageDiv(show) [ Language = javascript ] method toggleSVGElements(show) [ Language = javascript ]Helper method to hide or show SVG elements when opening a popup. This is primarily to ensure that we don't run into issues with IE8 and the Adobe plugin when the popup window also uses SVG. The approach used to "hide" the SVG embed is to reduce its wrapping div to 1px by 1px during the modal. We use the wrapping div to avoid having the SVG re-rendered after we re-expand after the modal ends. We don't use style.display = 'none'/'block' as this makes the SVG non-interactive after the SVG is set back to 'block'. method transferEditorData() [ Language = javascript ] method undoStackInit() [ Language = javascript ] method undoStackPop() [ Language = javascript ] method undoStackPush(dataChanged) [ Language = javascript ] method undoStackRedo() [ Language = javascript ] method undoStackResetModified() [ Language = javascript ] method updateButtons() [ Language = javascript ] method updateHelpPanel() [ Language = javascript ] method updateMenuAdd() [ Language = javascript ] method validateRule() [ Language = javascript ] method variablesChanged(newlist) [ Language = javascript ] method xyzDoAction() [ Language = javascript ] method xyzEditorKeyPressed(event) [ Language = javascript ] method xyzEditorLostFocus() [ Language = javascript ] method xyzEditorOnBlur(event) [ Language = javascript ] method xyzGrayTextGotFocus(event) [ Language = javascript ] method xyzLoadData(xyzBase) [ Language = javascript ] method xyzOKClicked() [ Language = javascript ] method xyzSelectorChanged() [ Language = javascript ] method xyzSelectorDblClicked() [ Language = javascript ] method xyzSelectorFocused() [ Language = javascript ]