◷ Reading Time: 7 minutes
Introduction
Once a continuous decision is created, you can upload it to the server and test in Workbench. The following steps will show how to successfully deploy and test a continuous decision in workbench.
Build and Upload a Continuous Decision
- First, the package should be built and uploaded to the server using FlexRule Designer Package Builder.
- The uploaded continuous decision can be seen under Execution Server > Lifecycles.

Provide Permissions to the Role to Run Continuous Decisions
- Go to Administration > Roles.
- Click on Details of the Application role.

- Search for Work under Action Name and allow the actions related to Workflow.

Test Run the Continuous Decision
Once you make the initial request for a continuous decision, it goes to a waiting stage. After that, if there is any human interaction or receive task option, you can resume whenever it is necessary.
The Initial Request
- Go to Execution Server > Services
- Click on Test Run of the continuous decision you want to run

- Enter the application login information under Info.

- Enter the sample input under the Inputs tab.

Or if there is no input, you can keep it empty with [ ].

- Click on Run.
- If both Authentication and Execution are successful, you will see the output as a success under the ‘Results’ tab.

Resume the Continuous Decision
- If you see a receivers tag in the Execution section after the test run, that indicates that the workflow is waiting for human interaction.

- If so, copy the workflowInstanceId and title.

- And title of reciever to be used, as well as it’s outcome name if there is one

- Select the info tab of the test run screen

- Paste them in Lifecycle Resume section
- Enter the human interaction option in Outcome.
In this example, it is a single outcome for the task (CTA Activated (Display offer in Home tile)).

- Delete the input under the Inputs tab.

- Click on Run.
- You will see the output accordingly.

If you go to Lifecycles and click on the continuous decision, you will see its status.

In the actions column you can view the continuous decision’s history, or delete it.

Troubleshooting
The following methods can be used to troubleshoot.
Turn on Debug Trace
If there is any error, you can see it in the test results.

You can turn on the debug trace to see the full trace. This option is under the Info tab.

Turn on the above debug trace and Run the service again to see the full trace.

Download Service Log
Once you run the continuous decision, if there is any error, you can see it on Execution Server > Services page under each service.

You can view errors by clicking on the Actions drop-down and choosing the Last 10 Errors.
