The Inbound Simulator allows you to manually send inbound messages to ONEiO without requiring the source system to generate them. This makes it easier to test integration configurations, validate routing rules, and troubleshoot message processing directly within ONEiO.
If you have any questions after reading this article, please contact us at support@oneio.cloud.
Overview
- How does the Inbound Simulator work?
- Creating your own simulated message
- Using an existing message to simulate a message
- Important considerations
How does the Inbound Simulator work?
The Inbound Simulator is available in the QA environment and allows you to manually simulate inbound messages as if they were sent from the actual source system (inbound endpoint).
Note
When simulating an inbound message, ONEiO executes the configured routing rules and sends the resulting outbound messages to the corresponding outbound endpoints. This way, simulated messages can create or update records in connected systems.
How to simulate an inbound message
Creating your own simulated message
The Inbound Simulator can be accessed from the Messages feed, using the More Options (•••) menu on the right side of the filters. Select Simulate inbound to open the simulator.
The following fields are available for configuring your simulated message.
| Field | Description | Mandatory? |
|---|---|---|
| Inbound Endpoint | Select the inbound endpoint that should receive the simulated message. | yes |
| Payload Type | Select the format of the message payload: JSON, XML or SOAP | yes |
| Request URL | The request URL the message was sent to. Ex: https://rest-receiver-test.service-flow.com/api If needed, parameters can be added, like https://rest-receiver-test.service-flow.com/api?param1=aaa¶m2=bbb |
no |
| Header | Add a separate row for each HTTP header. At least the Content-Type header should be included; it is added by default. | yes |
| Payload | Enter the message payload in the format supported by the selected inbound endpoint (JSON or XML). | yes |
The Payload follows the endpoint settings, so it matches the entity type and entity ID you have configured in your selected inbound endpoint.
In the example below, an update containing a work note was simulated to a ServiceNow endpoint.
The ServiceNow endpoint is configured to identify the entity type using the ServiceNow-table element. By setting this element value to incident in the payload, ONEiO can identify the message entity as an incident.
Simulated messages are identified by the [simulated] label
Example payload:
{
"ServiceNow-table": "incident",
"number": "INC0010003",
"short_description": "this is a test",
"sys_id": "aa322cac934f0b50abeb3d5efaba10a1",
"work_notes": "Sent from Inbound Simulator"
}
In this example, the simulated message matched two routing rules, resulting in two outbound requests that were successfully sent to the connected Jira endpoint.
Info
In this example, messages with the Received Faulty status are missing the Entity Type Element (ServiceNow-table) required by the inbound endpoint configuration.
Using an existing message to simulate a message
You can also simulate a message by clicking the three-dot menu (•••) on an existing inbound message and selecting Clone to simulator.
This automatically populates all fields in the Inbound Simulator with the data from the original inbound message. You can then send the message as it is or modify the fields to test different scenarios.
Simulating an existing message from the message feed
Important considerations
- Only inbound messages are simulated. Subsequent message processing, routing, and outbound communication are executed normally.
- Connected systems may be affected. Simulated messages can trigger actual record creation, updates, or other actions in outbound systems.
- It's only possible to simulate messages in the QA environment.
-
Payload requirements still apply. Simulated messages must follow the configuration requirements of the selected inbound endpoint, including the entity type and entity ID elements.
Comments
Please sign in to leave a comment.