Question

Time Interval as non deployable component

Hey Guys,

I've a requirement to automatic retry a service on failure after 30 minutes. The catch it, this time interval should be reconfigurable without deployment (something similar to a Dynamic System Settings concept) . The wait shape's Time Interval falls out of scope (as in order to change the interval the latest version should be migrated to prod)

Is there anyway for the flow to wait for sometime with the time interval being a non deployable component?

Thanks

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

December 20, 2017 - 1:39am

Hi Aparna,

Can we re-trigger this based on local action with below config:-

Have  a textbox for the desired time interval
Have a activity as post action on certain button that would use that interval and wait for that time before calling service method.

Thanks,
Ujjwal

December 21, 2017 - 4:24am
Response to UjjwalShukla_GCS

Hi Ujjwal,

This would have worked, had it not been automatic re-trigger of service. 

 

December 21, 2017 - 5:01am
Response to AparnaGopakumar

Hi Aparna,
Even if you make things automatic, you have to have a manual intervention for wait duration.
The question is how would PRPC understand what interval it would need to consider.

Thanks,
Ujjwal
 

December 29, 2017 - 2:37am

Hi Ujjwal,

What I meant by automatic re-trigger of service was - once the service fails, the flow should loop back to the service call, with a wait duration.

Would the activity with Wait method work with property reference(instead of giving a time figure)?

<Have attached the flow for better understanding> 

 

December 29, 2017 - 2:50am
Response to AparnaGopakumar

Hi Aparna,

You can use When condition in activity to have your scenario run based on property reference.

Thanks,
Ujjwal

December 29, 2017 - 8:11am
Response to UjjwalShukla_GCS

A When rule would be a deployable component, as in, if there is any future change in the reference value, When rule has to be modified and deployed to higher environments.

I tried with Wait shape using Future DateTime and using a DSS property to get +30 minutes. Strangely Wait shape doesnt work with DSS value even though giving the same value in the Wait configuration works.

@DateTime.addToDate(@CurrentDateTime(),"0","0","30","0").

Please find attached 

December 31, 2017 - 8:02am

Can you try to use the DSS in place of  "30" inside the addToDate function? I hope it should work then.And, this DSS should specify only the timelimit( ex. 30) and not an expression in it.Hope you get where you are going wrong.