| Step | Status | Attempts | Started | Duration |
|---|---|---|---|---|
| New order | Completed | 1 | 08:33:45 | 0 s |
| Create in ERP | Timed out | 3 | 08:33:45 | 1 min 32 s |
| Start CRM and WMS | Pending | — | — | — |
| Update CRM | Pending | — | — | — |
| Prepare in WMS | Pending | — | — | — |
| Check order total | Pending | — | — | — |
| Approve order | Pending | — | — | — |
| Cancellation window | Pending | — | — | — |
| Order processed | Pending | — | — | — |
Connect your software. Follow every run.
Set the steps, inspect their inputs and retry a failed call without redoing finished work.
- The shop's webhook sends order CV-1045, and a run starts.
- The run calls the ERP to create the sales order.
- The ERP gives no answer within 30 s, so attempt 1 times out.
- After a 1 s pause the run opens attempt 2 itself, with the order it already holds.
- The ERP answers in 2 s and returns sales order CV-1045.
- CRM and WMS start together.
- WMS answers in 2 s. CRM is still answering, and the run waits for it before it checks the total.
- Waiting for CRM: the run checks the total once CRM answers.
Integrations
Flow
Arrow keys move between nodes. Enter selects.
- Sends to: Create in ERP
- Sends to: Start CRM and WMS
- Sends to: Update CRM, Prepare in WMS
- Sends to: Check order total
- Sends to: Check order total
- Sends to: Approve order, Cancellation window
- Sends to: Cancellation window
- Sends to: Order processed
Create in ERP
Call
- Sends to
- Start CRM and WMS
- Receives from
- New order
- New orderTriggerSends to: Create in ERP
- Create in ERPCallSends to: Start CRM and WMS
- Start CRM and WMSParallelSends to: Update CRM, Prepare in WMS
- Update CRMCallSends to: Check order total
- Prepare in WMSCallSends to: Check order total
- Check order totalBranchSends to: Approve order (Above 2,500.00 RON), Cancellation window (2,500.00 RON or less)
- Approve orderApprovalSends to: Cancellation window
- Cancellation windowWaitSends to: Order processed
- Order processedEnd
- Retries
- 2
- Time limit
- 30 s
- Pause between attempts
- 1 s
Runs
Runs
| Run | Status | Order total | Started | Duration | Failed step | Correlation ID | Triggered by |
|---|---|---|---|---|---|---|---|
| run-e2d8a7CV-1045 | 1,071.21 RON | 23 Nov, 09:11 | 38 s | — | shop-e2d8a7c4 | Webhook | |
| run-9a65d3CV-1042 | 2,818.41 RON | 23 Nov, 09:04 | 7 min 44 s | — | shop-9a65d3f0 | Webhook | |
| run-2c70b8CV-1044 | 399.81 RON | 23 Nov, 08:58 | 17 s | — | api-2c70b8d3 | API | |
| run-f31e6aCV-1043 | 2,536.77 RON | 23 Nov, 08:52 | 8 min 32 s | Approve order | shop-f31e6a58 | Webhook | |
| run-8d2b17CV-1041 | 2,075.40 RON | 23 Nov, 08:47 | 10 min 8 s | — | shop-8d2b1704 | Webhook | |
| run-c64f90CV-1040 | 1,276.80 RON | 23 Nov, 08:33 | 1 min 32 s | Create in ERP | api-c64f90a7 | API | |
| run-5b18d6CV-1039 | 1,605.00 RON | 23 Nov, 08:19 | 10 min 9 s | — | shop-5b18d6e1 | Webhook | |
| run-71c4beCV-1037 | 1,296.24 RON | 23 Nov, 08:12 | 2 min 51 s | Create in ERP | api-71c4be90 | API | |
| run-a07c52CV-1036 | 2,700.24 RON | 23 Nov, 07:56 | 18 min 26 s | — | shop-4f81a7c3 | Webhook | |
| run-3e9a41CV-1038 | 813.60 RON | 23 Nov, 07:30 | 10 min 9 s | — | sch-b8d1f402 | Schedule |
Run
run-c64f90
Arrow keys move between nodes. Enter selects.
- Sends to: Create in ERP
- Sends to: Start CRM and WMS
- Sends to: Update CRM, Prepare in WMS
- Sends to: Check order total
- Sends to: Check order total
- Sends to: Approve order, Cancellation window
- Sends to: Cancellation window
- Sends to: Order processed
Create in ERP
Timed out
- Sends to
- Start CRM and WMS
- Receives from
- New order
- New orderCompletedSends to: Create in ERP
- Create in ERPTimed outSends to: Start CRM and WMS
- Start CRM and WMSPendingSends to: Update CRM, Prepare in WMS
- Update CRMPendingSends to: Check order total
- Prepare in WMSPendingSends to: Check order total
- Check order totalPendingSends to: Approve order (Above 2,500.00 RON), Cancellation window (2,500.00 RON or less)
- Approve orderPendingSends to: Cancellation window
- Cancellation windowPendingSends to: Order processed
- Order processedPending
Step history
Create in ERP
- Sends to
- Start CRM and WMS
- Receives from
- New order
| Attempt | Started | Duration | Outcome |
|---|---|---|---|
| 1 | 08:33:45 | 30 s | No response within 30 s |
| 2 | 08:34:16 | 30 s | No response within 30 s |
| 3 | 08:34:47 | 30 s | No response within 30 s |
Input
{
"orderNumber": "CV-1040"
}Output
{}Attempts
- ERP 1 / 3, 0 s to 30 s
- ERP 2 / 3, 31 s to 33 s
- CRM, 33 s to 35 s, now
- WMS, 33 s to 35 s
Retry settings
Create in ERP
- Type
- Call
- Attempts
- 2 of 3
- Time limit
- 30 s
- Result
- CV-1045
A failed step, retried from where it stopped
The first ERP attempt reaches its 30 s limit. After a 1 s pause the run opens a second attempt on its own, with the order the trigger already received.
run-e2d8a7Order CV-1045 · 1,071.21 RON
- New order
- Kept: its output is reused, not repeated
- Create in ERP
- Attempt 1 · 09:11:22 · timed out after 30 s
- Attempt 2 · 09:11:53 · completed in 2 s
- Start CRM and WMS
- CRM and WMS start together
- Update CRM
- Attempt 1 · 09:11:55 · running
Start a run from your code
curl -X POST "$RDC_BASE_URL/integrations/v1/runs" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1,
"flowId": "flow-order",
"version": 1,
"correlationId": "api-b73a02d9",
"input": {
"order": {
"number": "CV-1046",
"currency": "RON",
"netTotal": "2818.41"
}
}
}'const response = await fetch(`${process.env.RDC_BASE_URL}/integrations/v1/runs`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1,
"flowId": "flow-order",
"version": 1,
"correlationId": "api-b73a02d9",
"input": {
"order": {
"number": "CV-1046",
"currency": "RON",
"netTotal": "2818.41"
}
}
}),
});
const result = await response.json();import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/integrations/v1/runs',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '33a22ec0-f0af-4498-a388-123456789abc',
'expectedRevision': 1,
'flowId': 'flow-order',
'version': 1,
'correlationId': 'api-b73a02d9',
'input': {
'order': {
'number': 'CV-1046',
'currency': 'RON',
'netTotal': '2818.41',
},
},
},
)
result = response.json()<?php
$body = <<<'JSON'
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1,
"flowId": "flow-order",
"version": 1,
"correlationId": "api-b73a02d9",
"input": {
"order": {
"number": "CV-1046",
"currency": "RON",
"netTotal": "2818.41"
}
}
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/integrations/v1/runs');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/integrations/v1/runs");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1,
"flowId": "flow-order",
"version": 1,
"correlationId": "api-b73a02d9",
"input": {
"order": {
"number": "CV-1046",
"currency": "RON",
"netTotal": "2818.41"
}
}
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response202 Accepted
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"status": "accepted",
"aggregateRevision": 1,
"aggregateId": "run-b73a02"
} What each kind of step guarantees
| Kind of step | Time limit | Retries | On failure |
|---|---|---|---|
| Trigger | — | None | A missing order number keeps the step from starting, so no call is made. |
| Call | 30 s | 2 retries, 1 s pause | After the last retry the run stops at this call; an operator can then add up to 2 attempts, and the steps already complete are kept. |
| Parallel | — | None | Each side fails on its own, and the other keeps its result. |
| Branch | — | None | Nothing fails here: a total above 2,500.00 RON goes to approval, a total at or below it skips approval. |
| Approval | 4 h | None | A rejection or a missed time limit stops the run here, and the order cannot be approved afterwards. |
| Wait | 1 h | None | The step cannot finish before 10 min have passed; at its time limit the run times out here. |
| End | — | None | The run completes only here, so an earlier failure never leaves it marked complete. |
One order, through three systems
- Online shop, outside the company
- Integrations, product
- ERP, product
- CRM, product
- WMS, product
Approved and completed
Online shop, outside the company
Receive the order
The shop’s webhook starts a run for the order.
- Order
- CV-1036
- Run
- run-a07c52
- Order total
- 2,700.24 RON
- Time
- 07:56:20
ERP, product
Create the sales order
The ERP answers and returns sales order CV-1036.
- Order
- CV-1036
- Run
- run-a07c52
- Order total
- 2,700.24 RON
- Time
- 07:56:21
- Attempt
- 1 / 3
CRM, product
Update the sales record
CRM links the order to Cofetăria Vălul Alb SRL.
- Order
- CV-1036
- Run
- run-a07c52
- Order total
- 2,700.24 RON
- Time
- 07:56:22
- Attempt
- 1 / 3
WMS, product
Prepare the delivery
WMS opens the delivery while CRM updates the record, so neither waits for the other.
- Order
- CV-1036
- Run
- run-a07c52
- Order total
- 2,700.24 RON
- Time
- 07:56:23
- Attempt
- 1 / 3
Integrations, product
Check the order total
2,700.24 RON is above the 2,500.00 RON limit, so the order goes to approval.
- Order
- CV-1036
- Run
- run-a07c52
- Order total
- 2,700.24 RON
- Time
- 07:56:23
Integrations, product
Wait for the approval
A person approves after 8 min 16 s.
- Order
- CV-1036
- Run
- run-a07c52
- Order total
- 2,700.24 RON
- Time
- 08:04:41
Integrations, product
Hold the cancellation window
The run waits 10 min, so the shop can still cancel the order.
- Order
- CV-1036
- Run
- run-a07c52
- Order total
- 2,700.24 RON
- Time
- 08:14:45
Integrations, product
Close the run
Every step is complete, so the run is marked completed.
- Order
- CV-1036
- Run
- run-a07c52
- Order total
- 2,700.24 RON
- Time
- 08:14:46
ERP times out and is retried
Online shop, outside the company
Receive the order
The shop’s webhook starts a run for the order.
- Order
- CV-1045
- Run
- run-e2d8a7
- Order total
- 1,071.21 RON
- Time
- 09:11:22
ERP, product
Reach the time limit
The ERP does not answer within 30 s, so attempt 1 ends.
- Order
- CV-1045
- Run
- run-e2d8a7
- Order total
- 1,071.21 RON
- Time
- 09:11:52
- Attempt
- 1 / 3
Integrations, product
Open the second attempt
After a 1 s pause the run opens attempt 2 itself and reuses the order from the trigger.
- Order
- CV-1045
- Run
- run-e2d8a7
- Order total
- 1,071.21 RON
- Time
- 09:11:53
- Attempt
- 2 / 3
ERP, product
Create the sales order
The ERP answers after 2 s and returns sales order CV-1045.
- Order
- CV-1045
- Run
- run-e2d8a7
- Order total
- 1,071.21 RON
- Time
- 09:11:55
- Attempt
- 2 / 3
CRM, product
Update the sales record
CRM is still answering; the run waits for it before it checks the total.
- Order
- CV-1045
- Run
- run-e2d8a7
- Order total
- 1,071.21 RON
- Time
- 09:11:55
- Attempt
- 1 / 3
WMS, product
Prepare the delivery
WMS opens the delivery while CRM updates the record, so neither waits for the other.
- Order
- CV-1045
- Run
- run-e2d8a7
- Order total
- 1,071.21 RON
- Time
- 09:11:57
- Attempt
- 1 / 3
Waiting for approval
Online shop, outside the company
Receive the order
The shop’s webhook starts a run for the order.
- Order
- CV-1042
- Run
- run-9a65d3
- Order total
- 2,818.41 RON
- Time
- 09:04:16
ERP, product
Create the sales order
The ERP answers and returns sales order CV-1042.
- Order
- CV-1042
- Run
- run-9a65d3
- Order total
- 2,818.41 RON
- Time
- 09:04:17
- Attempt
- 1 / 3
CRM, product
Update the sales record
CRM links the order to Hanul Ozana SRL.
- Order
- CV-1042
- Run
- run-9a65d3
- Order total
- 2,818.41 RON
- Time
- 09:04:18
- Attempt
- 1 / 3
WMS, product
Prepare the delivery
WMS opens the delivery while CRM updates the record, so neither waits for the other.
- Order
- CV-1042
- Run
- run-9a65d3
- Order total
- 2,818.41 RON
- Time
- 09:04:19
- Attempt
- 1 / 3
Integrations, product
Check the order total
2,818.41 RON is above the 2,500.00 RON limit, so the order goes to approval.
- Order
- CV-1042
- Run
- run-9a65d3
- Order total
- 2,818.41 RON
- Time
- 09:04:19
Integrations, product
Wait for a person’s decision
The run stays open for 4 h; after that it times out at this step.
- Order
- CV-1042
- Run
- run-9a65d3
- Order total
- 2,818.41 RON
- Time
- 09:04:20
What each step writes
| Step | Record created or changed |
|---|---|
| 1 Receive the order | Run run-a07c52, with order CV-1036 attached |
| 2 Create the sales order | Sales order CV-1036 in ERP |
| 3 Update the sales record | Sales record OP-1036 in CRM |
| 4 Prepare the delivery | Delivery LIV-2026-01836 in WMS |
| 5 Check the order total | Run run-a07c52: the approval exit is taken |
| 6 Wait for the approval | Approval decision on run run-a07c52: approved |
| 7 Hold the cancellation window | Run run-a07c52: waiting step finished |
| 8 Close the run | Run run-a07c52: completed |
| Step | Record created or changed |
|---|---|
| 1 Receive the order | Run run-e2d8a7, with order CV-1045 attached |
| 2 Reach the time limit | Attempt 1 of the ERP step on run run-e2d8a7: timed out |
| 3 Open the second attempt | Attempt 2 of the ERP step on run run-e2d8a7 |
| 4 Create the sales order | Sales order CV-1045 in ERP |
| 5 Update the sales record | Sales record OP-1045 in CRM |
| 6 Prepare the delivery | Delivery LIV-2026-01845 in WMS |
| Step | Record created or changed |
|---|---|
| 1 Receive the order | Run run-9a65d3, with order CV-1042 attached |
| 2 Create the sales order | Sales order CV-1042 in ERP |
| 3 Update the sales record | Sales record OP-1042 in CRM |
| 4 Prepare the delivery | Delivery LIV-2026-01842 in WMS |
| 5 Check the order total | Run run-9a65d3: the approval exit is taken |
| 6 Wait for a person’s decision | Approval request on run run-9a65d3, waiting for a decision |
The systems it connects
Outside systems
- Online shop
- Your own software
Questions about flows and runs
Does changing a flow change runs already started?
Each run keeps the version it started with. Changing a step creates a new version for subsequent runs.
Will retrying a failed step repeat earlier calls?
No. A call that fails or times out is retried by the run itself, up to the step’s retries (2 for each call here), after its pause. Once those are used, an operator can add up to 2 more attempts. Steps that already completed are kept and never repeated.
Can a person approve an order before work continues?
An approval step waits for an authorised person to accept or reject it within its time limit. Rejection ends the run with the approval recorded as the failed step.
What happens when an attempt takes too long?
Its time limit ends the attempt, and the run records when it started, how long it took and why it ended. If the step has retries left, the next attempt opens after the pause; if not, the run stops at that step.
How can I follow one order across its calls?
The run keeps its correlation identifier, flow version and each step’s input, output and attempts. Open the run to inspect its executed path.
Can my software start and cancel runs?
Use the API with an operation identifier and the current revision. Repeating an identical request returns its original result; a stale revision is refused.
Proposal for Integrations
Describe the systems, the records they exchange and the steps that need approval.