jembi / openhim-mediator-mapping

An OpenHIM mediator for mapping incoming content to a different format
https://jembi.github.io/openhim-mediator-mapping/
MIT License
3 stars 6 forks source link

How could we cater for an initial endpoint state #137

Open MattyJ007 opened 3 years ago

MattyJ007 commented 3 years ago

If logic within the config requires data from the state object, the first request to the endpoint would fail. Depending on the state set up the failed state captured might not be sufficient either - to by-pass this currently you would need to manually add a state record to the MongoDB directly to set an initial state.