Skip to content

Concatenation of mediators #1107

Open
Open
@delcroip

Description

@delcroip

We were wondering if there is a way to concatenate mediators or routes with openHIM functionality so that e.g. the success of the first mediator triggers the execution of the second one.

We have tried something now by having two mediators A and B where mediator A executes its expression and passes the result to mediator B with a POST request which finalizes the process by also executing its expression and sending back a response but this approach have a performance toll because it generate more traffic (8) isntead of (6)

Traffic using the workarround described

  1. Ext system --> openHIM
  2. openHIM --> A
  3. (2nd Mediator)A --> openHIM
  4. (2nd Mediator) openHIM --> B
  5. (2nd Mediator) B --> openHIM
  6. (2nd Mediator) openHIM -->A
  7. A --> openHIM
  8. openHIM --> Ext system

Traffic that should happen

  1. Ext system --> openHIM
  2. openHIM --> A
  3. A --> openHIM
  4. (2nd Mediator) openHIM --> B
  5. (2nd Mediator) B --> openHIM
  6. openHIM --> Ext system

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions