0

Please help with a diagram in which there are sequential requests.

The logic is the following:

Service 1 sends a PUT Trigger an export request to Service 2

If the response is 200 OK, then after 10 seconds sends a GET Retrieve an export request until the status is COMPLETED or ERROR

I don't show the 400 response.

If the status is COMPLETED, then Service 1 sends a PUT Directly download an export request to Service 2

If the status is error, then Service 1 does nothing.

What mistakes did I make? I will be grateful for your recommendations!

enter image description here

1 Answer 1

0

First of all, rather than having the combined fragments of success (on two levels) and error (inside the loop only) you should use opt for the one outside the loop and alt with tho alternatives (one for success and one for error). Obviously, the success/error is a condition in this case.

If you keep it like that, within the loop you actually expect to first success and then error happen in every iteration of the loop.

Now the second issue is, I don't see the loop anywhere in the description. There is just conditional flow where you may either have success or an error. There is nothing about repetition of the GET call. You also do not indicate properly the timing between the 200 response and the GET (there is a notation to show timing).

While technically this is not wrong, you may consider using the combined fragment of break for handling errors. rather than alt. But that's just an idea.

I may have missed something.

Disclaimer. I'm not pointing you to specific documentation for a reason. I'm just bringing to your attention what errors you have and what should you look for. Searching for the proper notification facilitates learning and this clearly is some sort of a homework. So a rod instead of a fish.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.