Server:Help/Workbench/Packages/Browser

From FlexRule Wiki
Jump to: navigation, search

Launching Package Browser

To browse the logic files of all decisions under a package, select Browse Logic Files from Packages list.

Wb-Packages-list-briowse-logic.png

Browser

When a package is browsed, list of files and folders of a package will be shown in a tree structure like the picture bellow.

Wb-Packages-Browser.png

The root of the tree, are the decisions of the package.

Sections

The package browser has two main tab sections:

  1. Hierarchy: This shows list of all decisions in root and the list of all the folders and logic files related to the parent decision.
  2. Viewer: This shows different viewer for a file when it is loaded.

When a file is selected in tree Hierarchy, it will be loaded into the Viewer section and the caption of the Viewer will be changed to the name of the file.

Wb-Packages-Browser-file.png

Versions

Once a logic file content and saved, server automatically associate a revision to it. Each file has two reversions

  1. Active
  2. Latest

You can pin down a specific version of a file on a service, so when the files is updated, your service end point behaviour still works with the pinned version. Once you are sure about the change, then you can promote it to the new version.

Active Revision

Active Revision is the revision of the file that will be used every time a requests come for execution of a decision. When a logic file is changed, the active revision automatically is increased to match the latest revision of the logic file.

Latest Revision

When a logic file is updated, server automatically increases the revision of the logic file.

Update Content

XML Editor

By default all the logic files will be loaded into an XML editor.

Wb-Packages-logicfile-xml-editor.png

When this XML editor is active you can simply press Wb-Packages-logicfile-xml-editor-save.png to update the content of the logic file. Please note the revision of the logic file will be updated.

Visual Editor

There are many different types of logic, not all of them provides a visual editor, but some of them provide an inline visual editor that allows you to visually modify the logic file.

To enable the visual editor on the toolbar of the Viewer click on Wb-Packages-editor-visual.png to toggle it on. If this button does not exist, mean the logic file do not have a visual editor.

The following types of logic provide visual editor:

  • Decision Table
Decision Table Editor

Decision Table supports a simple visual editor which supports some basic editing functionalities.

Wb-Packages-logicfile-DT-editor.png

With this visual editor you can:

  1. Change the order of columns and rows by dragging and dropping
  2. Add new Rows and Columns
  3. Change Decision Table properties
    1. Manage input and output parameters
    2. Change the name of decision table
    3. Manage decision table columns
      1. Delete columns
      2. Modify columns expressions

Learn more on Workbench Decision Table Editor.

If you require an advanced editor please use FlexRule Designer Decision Table Editor

Steps to Add or Modify Decision Table

In order to build a decision table in visual mode, you need first to switch to Visual. The need to make sure there are columns. Please follow the following steps:

  1. Set the decision table header by going to "Properties" and setting a name
  2. Add a new column
  3. Add a new row and add the value

Properties

A logic file has some properties that can be viewed by the property screen:

Wb-Packages-Browser-file-properties.png

Information

There are some information associated with a file:

  • Filename
  • Size
  • Created date
  • Updated date
  • UID
  • Hash
  • Revisions

Please note, by changing the revision number in the list you can navigate to different revisions of the logic file.

Pin Revision

Also you can change the revision behaviour of a file and 'Pin' a revision. This means when the file is updated, the Latest Revision of the file will be changed but during decision execution the pinned revision will be used. This feature enables you to keep updating and revision changes on a logic file, once you are certain about the change you can Pin the new revision instead of the older one.