◷ Reading Time: 5 minutes
Launching Package Browser
To browse the logic files of all decisions under a package, select Browse Logic Files from Packages list.
When a package is browsed, a list of files and folders of a package will be shown in a tree structure like the picture below.
The root of the tree, are the decisions of the package.
The package browser has two main tab sections:
- Hierarchy: This shows list of all decisions in root and the list of all the folders and logic files related to the parent decision.
- 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.
Once a logic file content and saved, server automatically associate a revision to it. Each file has two reversions
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 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.
When a logic file is updated, server automatically increases the revision of the logic file.
By default all the logic files will be loaded into an XML editor.
When this XML editor is active you can simply press to update the content of the logic file. Please note the revision of the logic file will be updated.
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 to toggle it on. If this button does not exist, mean the logic file does not have a visual editor.
The following types of logic provide visual editor:
Decision Table supports a simple visual editor which supports some basic editing functionalities.
With this visual editor you can:
- Change the order of columns and rows by dragging and dropping
- Add new Rows and Columns
- Change Decision Table properties
- Manage input and output parameters
- Change the name of decision table
- Manage decision table columns
- Delete columns
- 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:
- Set the decision table header by going to “Properties” and setting a name
- Add a new column
- Add a new row and add the value
A logic file has some properties that can be viewed by the property screen:
There are some information associated with a file:
- Created date
- Updated date
Please note, by changing the revision number in the list you can navigate to different revisions of the logic file.
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.