EnsPortal.BPLEditor
class EnsPortal.BPLEditor
extends
Business Process Designer.
This class should be considered as INTERNAL.
Inventory
Summary
This is a Zen Page class. It belongs to the application EnsPortal.Application .
Parameters
If this page has multiple views, this is its initial display mode.
URL for BP Designer.
User needs WRITE permissions on either the %Ens_Code or the %Ens_BPL resource to make changes on this page.
Comma-separated list of additional JS include files for the page.
Displayed name of this page.
User needs READ permissions on either the %Ens_Code or the %Ens_BPL resource to view this page.
Properties
Local copy of BPL diagram object.
Array of brief descriptions on each activity.
Target SaveAs name of Business Process used by EnsPortal.Dialog.BusinessProcessSave.
ID (full classname) of Business Process to display.
Flag to control whether code elements are checked for leading whitespace.
ID (index number, 1-based) of current selected item.
URL for designer.
Flag to indicate that the SVG diagram has been loaded.
Methods
Output an activity (for a request/response) in JSON format.
Output the contents of the given diagram to JSON.
Output a connector in JSON format.
Convert data in the given proxy object into a Diagram.
Convert a proxy object into a request or response.
Convert an array of proxy objects into a local array of shapes (pShapeIndex) and an index by parent (pParentIndex).
This class method callback is called just before the server-side page object is created.
Add the Studio API methods.
Get the (localized) name of the page. This should be implemented in a subclass.
Get the (localized) title string for the page. This should be implemented in a subclass.
Output the contents of the given property list to JSON.
Output a shape in JSON format.
Get the (localized) title string for the page. This should be implemented in a subclass.
Get BPL definition for JSON provider and write out JSON version of it.
Return the internal name of the current BPL document.
Test if a code fragment contains valid ObjectScript code.
Helper method to load BPL diagram from disk.
Add content to ribbon bar.
Get information to display in the ribbon bar.
Set a value in the preference global.
Object submit handler JSON provider. This is called when the client saves the Business Process.
User has changed an activity value.
Helper method to allow Call Builder to create valid Activity list in current window context.
User has selected a new shape to add.
Adjust sizes of components on the page.
Build a map of the properties expected in various shapes and the controls to fetch the values from.
Return true if it is possible to undo an action
Modify thecodeValidation flag and trigger validation using the new value.
Change value of a BPL editor preference.
Handle a source control menu selection.
Clear the current undo buffer.
Create a clone of an object supplied in obj. If noSVG is specified, any properties with an _ other than _type, _class and _className will not be cloned.
Launch the compile dialog.
User has changed a connector value
Copy selected shape(s). Note that we copy parents *BEFORE* children so that we can translate ParentShape references during paste.
Cut selected item(s).
Delete an action in a req/resp list.
Delete a context property.
Delete selected item(s).
Helper method to recurse through children of selected items.
Delete an XSLT parameter.
User has changed a diagram value.
Launch the action property dialog.
Launch the context property dialog.
Launch the property editor dialog.
Launch the XSLT parameter dialog.
Close off an undo block. If the undoLevel is back to 0, update icons and mark the page as modified.
Launch rule finder.
Launch the data transform finder dialog.
Return HTML for an action table.
Return the BPL definition object.
Get the jsonProvider object on the client. Subclasses MUST override this method to return the jsonProvider.
Helper method to list the names of context properties.
Called from request/response builder to get action list for current shape.
Return the current name of the class/object being modified
Helper method to invoke the correct get code in the activity map
Get the SVG window object for the diagram. This provides a way to access scripts in the SVG diagram.
Return the selected item in the editor.
Launch the finder dialog.
Create a new Business Process.
Event raised on canvas.
Ensure we redraw the diagram if a reload was requested
Ensure we redraw the diagram if the model was updated.
This client event is fired when the a popup page launched from this page fires an action.
Notification from SVG frame that its contents are loaded.
Adjust sizes of components on the page. No HyperEvents should be executed beforeinitializeSVG () is executed, as that method callscheckStudioHyperEvents () to ensure that we maintain consistent session behaviour under Studio.
Ensure tab content is correctly sized when the tab is shown.
Paste items from the clipboard. The logic is predicated on parents being copied before children.
Remove a connector definition from the model.
Update the contents of the Call Request or Response Action table.
Update the contents of the Context Properties table.
Update the contents of the XSLT parameters table.
Replace the current BPL object with the supplied BPL object. This is used by the undo framework.
Launch the save dialog.
Launch the select context super dialog.
Launch the finder for request or response messages. which should be 'Request' or 'Response'.
Set the values for an action item.
Called from diagram to set size of svg canvas.
Set the values for a context property.
Update the description (annotation) of this BP.
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.
Set the values for an XSLT parameter.
User has selected a new zoom level.
Show documentation for given activity.
Request/Response (DTL) builder.
Open DTL editor in a new window.
Open Rule editor in a new window.
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 ().
Start an undo block. If the undo level is 0, save a copy of the current BPL model including which items are selected.
Method to produce and save the XML expected by Studio.
Toggle display of settings box.
Undo change.
Update the Activities tab on the settings panel.
Update the state of icons in the toolbar.
Update the settings panel.
Method to ensure code elements contain leading whitespace. This validation can be disabled from the UI for BPs which do contain routine tags.
Validate a code expression.
Test if current shape is valid. Show error message if not.