Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

Overview

  • Most DDE rules start with a Real Time Input

  • This is the plugin that pulls in the real-time data into the Rule

  • It contains JSON messages that are relevant to the rule

  • A Decode JSON step would typically follow this step

Example:

A rule has been created that requires Customer information to be stored. The following JSON message will be passed to the rule from a website:

{
  "Customer Id": 1,
  "Email Address": "ExampleOne@domain.com",
  "Customer Name": "Example One"
}

The Realtime Input will receive this JSON.

Plugin Configuration

General Settings

Within the General Settings tab:

The following settings can be configured:

Setting

Description

Timeout (ms)

The time in milliseconds, after which the default value should be returned if the rule times out

Default Value

The value to return after a time out

Overflow protection

If running in DDE drop the row of data if the processing timeout has expired. Only used if the rule contains a Realtime Output Step

Use test data

When the rule starts then process the data within the “Test Data” tab. It is worth noting that the test data will always be used when started within Spoon

Repeat test data

Used in conjunction with the “Use test data” setting, this setting keeps processing the same set of test data indefinitely. This is useful for running third-party GET requests on a schedule for example

Other fields

Other fields that may also available can be found here. ClientIP allows a field containing the browsers IP address to be passed into a field.

Invoke_Method is useful when the an API uses a single DDE URL endpoint for multiple invoke methods. This field allow the invoke method to be added to a field and each treated independently in a single Rule.

Test Data

Within the Test Data tab:

The following settings can be configured:

Setting

Description

Delay Time (ms)

The time delay in milliseconds between each row of test data being output

Message

JSON messages to be used for testing the DDE rule. It is recommended that all JSON variances should be tested before deploying to DDE.

Default Output

Within the Default Output tab:

The following settings can be configured:

Description

HTTP Code

This HTTP code is used in Realtime output steps added by Rule Designer as the standard response.

Static Value

This value is used where control groups are configured. This is used as the default value for those persons in the control group as the “response” from the rule.

Response Content Type

A suitable response content type is automatically selected. Other commonly used options are available for selection

Timeout Settings

Within the Timeout Settings tab:

The following settings can be configured:

Description

Description

Timeout (ms)

The time in milliseconds, after which the default value should be returned if the rule times out

HTTP Code

The Default value to return after a timeout

Static Value

A static value that can also be returned after a timeout

Priority

Allows the priority to be configured

Scenarios

Running Simulation Tests

  • It is possible to run simulation tests in DDE

  • The Real Time Input Step allows you to push test data through the rule periodically

  • This method can also be used to schedule rules to run every x milliseconds

Running a Rule on a Schedule

It is possible to schedule a rule to run every x milliseconds. The below example shows how to configure the Realtime Input to run every 5 minutes:

  • Enable "Use test data"

  • Enable "Repeat test data"

  • Have a dummy test data record

  • Set the delay to the required time e.g. 5 mins = 300,000 milliseconds

  • The proceeding step, runs what you need (e.g. Call a third-party web request)

  • No labels