(question) How to set up screens to work with the UI-Rules?

Generating the vocabulary

Before defining any rule, you first need to generate a vocabulary containing references to the screen components.

This is done directly from the Layout Designer screen. Once a window or frame is loaded, a new ribbon block ‘UI-Rules’ will be displayed, containing a ‘Generate Vocabulary’ button:

Pressing the button, it will launch a dialog containing the vocabulary generation logic:

Currently, the available options are:

Once the options have been selected and the generation is triggered, the vocabulary .ecore file will be generated in the PASOE’s temporary directory.
This needs to be imported into Corticon.js Studio, where the rules will be defined and the rule flow will be generated.

Setting a window/frame to use a Cortion.js RuleFlow

Once the rules are defined and exported as a rule flow, you will need to set up the screen to use it.

This is done directly from the layout designer, using the window/frame’s ‘RuleBehaviour’ attribute.
This attribute needs to be specified as a JSON object supporting the following properties:

Once this attribute is set, the window will automatically load and use the specified rule flow.