Skip to content

Connect your software. Follow every run.

Set the steps, inspect their inputs and retry a failed call without redoing finished work.

What the animation shows:
  1. The shop's webhook sends order CV-1045, and a run starts.
  2. The run calls the ERP to create the sales order.
  3. The ERP gives no answer within 30 s, so attempt 1 times out.
  4. After a 1 s pause the run opens attempt 2 itself, with the order it already holds.
  5. The ERP answers in 2 s and returns sales order CV-1045.
  6. CRM and WMS start together.
  7. WMS answers in 2 s. CRM is still answering, and the run waits for it before it checks the total.
  8. Waiting for CRM: the run checks the total once CRM answers.

Integrations

Order processing · v1

Flow

Arrow keys move between nodes. Enter selects.

  1. Sends to: Create in ERP
  2. Sends to: Start CRM and WMS
  3. Sends to: Update CRM, Prepare in WMS
  4. Sends to: Check order total
  5. Sends to: Check order total
  6. Sends to: Approve order, Cancellation window
  7. Sends to: Cancellation window
  8. Sends to: Order processed

Create in ERP

Call

Sends to
Start CRM and WMS
Receives from
New order
  1. New orderTriggerSends to: Create in ERP
  2. Create in ERPCallSends to: Start CRM and WMS
  3. Start CRM and WMSParallelSends to: Update CRM, Prepare in WMS
  4. Update CRMCallSends to: Check order total
  5. Prepare in WMSCallSends to: Check order total
  6. Check order totalBranchSends to: Approve order (Above 2,500.00 RON), Cancellation window (2,500.00 RON or less)
  7. Approve orderApprovalSends to: Cancellation window
  8. Cancellation windowWaitSends to: Order processed
  9. Order processedEnd
Retries
2
Time limit
30 s
Pause between attempts
1 s

Attempts

CV-1045
  • 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

StepCreate in ERP
Retries2
Time limit30 s
Pause between attempts1 s

Create in ERP

run-e2d8a7
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

  1. New order
    • Kept: its output is reused, not repeated
  2. Create in ERP
    • Attempt 1 · 09:11:22 · timed out after 30 s
    • Attempt 2 · 09:11:53 · completed in 2 s
  3. Start CRM and WMS
    • CRM and WMS start together
  4. Update CRM
    • Attempt 1 · 09:11:55 · running

Start a run from your code

curl

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"
    }
  }
}'

Response202 Accepted

{
  "operationId": "33a22ec0-f0af-4498-a388-123456789abc",
  "status": "accepted",
  "aggregateRevision": 1,
  "aggregateId": "run-b73a02"
}

What each kind of step guarantees

Step rules
Kind of stepTime limitRetriesOn failure
Trigger—NoneA missing order number keeps the step from starting, so no call is made.
Call30 s2 retries, 1 s pauseAfter 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—NoneEach side fails on its own, and the other keeps its result.
Branch—NoneNothing fails here: a total above 2,500.00 RON goes to approval, a total at or below it skips approval.
Approval4 hNoneA rejection or a missed time limit stops the run here, and the order cannot be approved afterwards.
Wait1 hNoneThe step cannot finish before 10 min have passed; at its time limit the run times out here.
End—NoneThe run completes only here, so an earlier failure never leaves it marked complete.

One order, through three systems

Step 1 of 8

  1. Online shop, outside the company
  2. Integrations, product
  3. ERP, product
  4. CRM, product
  5. WMS, product

Approved and completed

  1. 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
  2. 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
  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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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

  1. 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
  2. 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
  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
  4. 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
  5. 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
  6. 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

  1. 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
  2. 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
  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
  4. 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
  5. 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
  6. 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

Approved and completed
StepRecord created or changed
1 Receive the orderRun run-a07c52, with order CV-1036 attached
2 Create the sales orderSales order CV-1036 in ERP
3 Update the sales recordSales record OP-1036 in CRM
4 Prepare the deliveryDelivery LIV-2026-01836 in WMS
5 Check the order totalRun run-a07c52: the approval exit is taken
6 Wait for the approvalApproval decision on run run-a07c52: approved
7 Hold the cancellation windowRun run-a07c52: waiting step finished
8 Close the runRun run-a07c52: completed
ERP times out and is retried
StepRecord created or changed
1 Receive the orderRun run-e2d8a7, with order CV-1045 attached
2 Reach the time limitAttempt 1 of the ERP step on run run-e2d8a7: timed out
3 Open the second attemptAttempt 2 of the ERP step on run run-e2d8a7
4 Create the sales orderSales order CV-1045 in ERP
5 Update the sales recordSales record OP-1045 in CRM
6 Prepare the deliveryDelivery LIV-2026-01845 in WMS
Waiting for approval
StepRecord created or changed
1 Receive the orderRun run-9a65d3, with order CV-1042 attached
2 Create the sales orderSales order CV-1042 in ERP
3 Update the sales recordSales record OP-1042 in CRM
4 Prepare the deliveryDelivery LIV-2026-01842 in WMS
5 Check the order totalRun run-9a65d3: the approval exit is taken
6 Wait for a person’s decisionApproval 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.

Request a proposal