mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-27 16:56:07 +00:00
layout
This commit is contained in:
parent
49ec5316c8
commit
6f0c8ceedf
@ -47,6 +47,7 @@ stateDiagram-v2
|
|||||||
title: Batch2 Job Work Chunk state transitions
|
title: Batch2 Job Work Chunk state transitions
|
||||||
---
|
---
|
||||||
stateDiagram-v2
|
stateDiagram-v2
|
||||||
|
[*] :
|
||||||
state READY
|
state READY
|
||||||
state GATE_WAITING
|
state GATE_WAITING
|
||||||
state POLL_WAITING
|
state POLL_WAITING
|
||||||
@ -58,29 +59,27 @@ stateDiagram-v2
|
|||||||
state FAILED
|
state FAILED
|
||||||
state COMPLETED
|
state COMPLETED
|
||||||
direction LR
|
direction LR
|
||||||
[*] --> READY : on create - normal step
|
[*] --> READY : on create - normal or step
|
||||||
[*] --> GATE_WAITING : on create - gated step
|
[*] --> GATE_WAITING : on create - gated step
|
||||||
[*] --> POLL_WAITING : on create - polling step
|
GATE_WAITING --> READY : on prior step completion
|
||||||
GATE_WAITING --> READY : on prior step completion
|
POLL_WAITING --> READY : on time expired (maint.)
|
||||||
POLL_WAITING --> READY : on time expired (maint.)
|
READY --> QUEUED : placed on kafka (maint.)
|
||||||
READY --> QUEUED : placed on kafka (maint.)
|
|
||||||
|
|
||||||
%% worker processing states
|
%% worker processing states
|
||||||
QUEUED --> on_receive : on deque by worker
|
QUEUED --> on_receive : on deque by worker
|
||||||
on_receive --> IN_PROGRESS : start execution
|
on_receive --> IN_PROGRESS : start execution
|
||||||
|
|
||||||
IN_PROGRESS --> execute: execute
|
IN_PROGRESS --> execute: execute
|
||||||
execute --> ERROR : on re-triable error
|
execute --> ERROR : on re-triable error
|
||||||
execute --> COMPLETED : success\n maybe trigger instance first_step_finished
|
execute --> COMPLETED : success\n maybe trigger instance first_step_finished
|
||||||
execute --> FAILED : on unrecoverable \n or too many errors
|
execute --> FAILED : on unrecoverable \n or too many errors
|
||||||
execute --> POLL_WAITING: on poll retry (use named exception?)
|
execute --> POLL_WAITING: on poll retry
|
||||||
|
|
||||||
%% temporary error state until retry
|
%% temporary error state until retry
|
||||||
ERROR --> on_receive : exception rollback\n triggers redelivery
|
ERROR --> on_receive : exception rollback\n triggers redelivery
|
||||||
|
|
||||||
%% terminal states
|
%% terminal states
|
||||||
COMPLETED --> [*]
|
COMPLETED --> [*]
|
||||||
FAILED --> [*]
|
FAILED --> [*]
|
||||||
```
|
```
|
||||||
|
|
||||||
Work
|
Work
|
||||||
|
Loading…
x
Reference in New Issue
Block a user