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

Version 1 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

Header names

The header names and data types are are expected to be passed in

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.

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