Simple execution

This sample demonstrates how to run a ruleset in Rule Execution Server by using the REST API in a web application in Java™ Script and JQuery.

Time required

5 minutes

Prerequisites

You use the Samples Console. Ensure that the sample server is started (see Starting and stopping the sample server).

Description

In this sample, you learn how to call a decision service in a web application by using the REST API in Java Script and JQuery. It gives you the minimal packaging required to run a decision service.

In this sample, you do the following tasks:
  • Build a RuleApp by using the Build Command
  • Deploy a RuleApp to Rule Execution Server by using Ant tasks
  • Call the RuleApp in a web application by using the REST API in Java Script.
  • See how the RuleApp runs on the same application server as Rule Execution Server.