1. Home
  2. FlexRule Server
  3. Workbench
  4. Execute in FlexRule Workbench
  1. Home
  2. FlexRule Server
  3. Service Execution
  4. Execute in FlexRule Workbench

Execute in FlexRule Workbench

◷ Reading Time: 2 minutes

After deploying the package on the FlexRule Server, you should first ensure that it runs successfully.

1. Once you deploy the example, you can see it as a service under Execution Server –> Services.

Click on Test Run under Actions.

2. Under Info, change the Client Secret to the App1 password that you defined during the Default Account setting in FlexRule Server Master configuration.

4. Under Inputs, enter the input JSON.

 [
  {
    Name: "car",
    Value: {
      Airbags: "Driver, FrontPassenger",
      ModelYear: 2007,
      Made: "Hyundai",
      Model: "IX35",
      Style: "Sedan"
    }
  }
 ]

If your input parameter is a JSON, but you have not specified a type in your deployed project, you must use Type: "json" in the input JSON.

e.g.
[
{
Name: “InputJson”,
Type: “json”
Value: {
……

5. Click Test Drive to run the test.

6. Under Results, the output will be shown.

After a ‘Test Run’, Service URL will be shown at the beginning of the Test Run page. This is the URL you should use in your application to call the deployed package.

Updated on May 16, 2022

Was this article helpful?

Related Articles