%% Inbound
sequenceDiagram
participant Programs
participant ListMerge
participant Orchestration
participant AMS
participant App
activate Orchestration
activate App
loop as many pages as necessary
App->>Orchestration: data (JSON)
Orchestration->>AMS: Get fields, config, etc.
activate AMS
AMS-->>Orchestration: config
deactivate AMS
Orchestration->>ListMerge: Add to temp table
activate ListMerge
ListMerge-->>Orchestration: OK
deactivate ListMerge
Orchestration-->>App: OK
end
deactivate App
Orchestration->>ListMerge: Import temp table
deactivate Orchestration
activate ListMerge
ListMerge--xPrograms:AppCloud Evt Msg (ETV, advance)
deactivate ListMerge
activate Programs
Programs->>Programs: Import ETVs
Programs->>Programs: Advance Workflow if requested
deactivate Programs