-
Hello, I got a use case from a cloud customer regarding how to handle DR requirements in our specification. My understanding would be that the customer expects the action contains weight factor. Each time the service with a higher weight is invoked first, if succeed, then go to next step, If the operation fails to be invoked, the service with a lower weight is retried. However, this is only my thought when looking into this DR use case. :) .. Please let me know any ideas how to handle this use case. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I'm not sure if fully understand the requirement but to me the mentioned "weights" are just the order of actions you put in the You always have the option to chain these actions one per operation state and in onError for the raised error transition to the next operation state with next action that needs to be performed. little painful but would work. |
Beta Was this translation helpful? Give feedback.
-
Are there any patterns or specifications for DR handling that you know, @yzhao244? Maybe we could take a deep look into that to see how we can accommodate this pattern here or make it easier to implement. |
Beta Was this translation helpful? Give feedback.
-
You can now achieve that using the |
Beta Was this translation helpful? Give feedback.
You can now achieve that using the
try
task defined in the1.x.x
version of the DSL. As for defining weights, you can do so out of the box using ado
task - that defines a task to set the weight - combined to aswitch
task that determines the invocation to perform based on the defined weights.