Rule Editor

How To Use

  • Install VS Code Rule Engine Editoropen in new window.
  • Create new foo.rule and open file in VS Code editor.
  • Drag the step elements from the toolbar to the canvas and connect them with lines. Any pipeline should begin with a start step and end with an end step.
  • Save changes and compile foo.rule file in javascript.

If you are using webpack loaderopen in new window or rollup pluginopen in new window to compile the rule file into javascript code, just import and call the asynchronous execute method:

import foo from './foo.rule';

const context = {};
foo.execute(context).catch(e => console.error(e));

Or install VS Code Rule Engine Compileropen in new window and right-click on the foo.rule file and select the menu Rule Engine: Compile. File foo.js will be created in the same directory. Next, import the file in your code and call the asynchronous execute method:

import foo from './foo.js';

const context = {};
foo.execute(context).catch(e => console.error(e));
Last Updated:
Contributors: Nikolay Naumenkov