◷ Reading Time: 2 minutes
FlexRule allows two level of integration in JavaScript platforms (i.e., Mobile apps, NodeJS, etc.).
- Authoring: Allows users to modify and add new logic from web user interface
- Execution: Allows JavaScript based application or services to run the logic
Authoring
The Web Components allows you to integrate authoring experience of rules into your JavaScript based application.
Execution
FlexRule allows execution of business logic in two ways:
- In-Proc
- Service Layer
In-Proc
FlexRule JavaScript engine allows you to execute logic in the JavaScript platform directly. This means there is no need for any server round-trip or online connectivity. You can just run the logic as part of your JavaScript application or service (e.g., Mobile app, NodeJS, etc.).
Test
You don’t need to write any web application to test the JS version of your logic. You can simply use JS Test Bed.
For more details check JS Test Bed
Service Layer
When Service Layer integration is required in the JavaScript application, you can use FlexRule Server to expose the logic as a REST API Service. When the service end point is ready, then you can use the JavaScript client to interact with the service end point.