Where action type business event is used
π― Short Answer
π Business Events defined in Action Type are used in Orchestration Rules (Policies) as triggers for the NEXT step.
π§ Where exactly they are used
π Location in UI
You will use them in:
π Orchestration → Policies (Rules)
π How they are used
Step-by-step flow:
1️⃣ Initial Business Event (starts flow)
Example:
Order Created
2️⃣ Rule triggers Action Type
IF Order Created → Execute Fulfillment Action
3️⃣ Action runs (Provider Action + Flow)
4️⃣ Action Type emits Business Event
Defined in Action Type:
-
Business Event Success →
Fulfillment Completed -
Business Event Failure →
Fulfillment Failed
5️⃣ These events are USED in next rules
IF Fulfillment Completed → Trigger Shipping
IF Fulfillment Failed → Retry or Alert
π THIS is where they are actually used.
π Full Chain (Important)
Order Created (Business Event)
↓
Rule 1
↓
Action Type (Fulfillment)
↓
Provider Action executes
↓
Fulfillment Completed (Business Event from Action Type)
↓
Rule 2 uses this event
↓
Next Action (Shipping)
π¦ Real Example (End-to-End)
Action Type config:
-
Success Event →
Inventory Reserved -
Failure Event →
Inventory Reservation Failed
Orchestration Rules:
Rule 1:
IF Order Created → Reserve Inventory
Rule 2:
IF Inventory Reserved → Send to Fulfillment
Rule 3:
IF Inventory Reservation Failed → Retry
⚠️ Important Insight
π If you don’t use these events in rules, then:
-
Flow executes
-
BUT orchestration stops there
π§ Simple Analogy
| Step | Meaning |
|---|---|
| Action Type Event | Signal raised π‘ |
| Rule | Listener π |
| Next Action | Reaction ⚡ |
✅ Final takeaway
π Action Type Business Events are not for display — they are used as triggers in subsequent orchestration rules.
They enable:
-
chaining steps
-
branching logic
-
error handling
Comments
Post a Comment