Asynchronous Task List Processing

Asynchronous Task List Processing

 

Introduction

This articles details a Forum Sentry use case for utilizing the Asynchronous function within the Task List. 

The general idea for the Asynchronous functionality is allow the user the ability to process multiple Tasks within a Task List simultaneously in order to speed up the overall process of the Task List as a whole. This is done by processing each individual task within the Task List in parallel and then merging the responses together, once completed, to form one complete response. 

 

Step 1. Create an XML Policy

blobid13.png

 

Start by creating a new XML Policy. Within the policy create a new device ip listener and set the port to 86. 

 



Step 2. Add a Task List

blobid14.png

 

 

Next we need to build a new Task List to be assigned to our XML policy created above. When creating the new Task List make sure to check the “Asynchronous” checkbox in order to process the tasks within this task list in parallel. 

 

Step 3. Within the Task List Create 2 new tasks and configure each one

 

mceclip0.png

 

For this example we need to create a New Task within our Task List to map a constant to the Request Header. We will using a Source Type as Constant, a Source Name as “TEST1”, a Target Type as Request Header, and a Target Name as “TestHeader”. 

 

mceclip1.png

 

Create a second task within our Task List to map a constant to the Request Header. We will using a Source Type as Constant, a Source Name as “TEST2”, a Target Type as Request Header, and a Target Name as “TestHeader2”. 

 

mceclip2.png

 

Next, create a New Task and select the task as Delay Processing. This will all some time between the tasks for processing. 

 

 

Step 4. Test the new Task List within the Test Utility for Results

mceclip3.png

 

Using the Test Utility, you can run the task list to ensure that the 2 responses from the Asynchronous Task List that we created above are merged together in one response. 

 

Sample Policies

Attached is the Sentry policies (FSG) that can be used to test this use case.

 

0 Comments

Article is closed for comments.