Overview
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:
The proceeding step, runs what you need (e.g. Call a third-party web request)