How to find current value of variable from logic app instance?

别说谁变了你拦得住时间么 提交于 2020-01-05 04:00:13

问题


Inside my logic app, I am initializing a variable and this variable's value can change over the course of logic app execution. While logic app is still in running mode (waiting for external event to happen) I want a way to find the current value of the variable in logic app.

I can always store value of this variable in data store like SQL server or blob storage and read it from there but I don't want to use external storage. Given that logic apps are kind of stateful in a way, I am wondering if there is a way to get variable value.


回答1:


So, there isn't a way to peek at the state of a Logic App while it's running. Some data might be available in the Run History, but that's not necessarily real-time and there no easy way to correlate it with any external info.

That means an external mechanism is you're only practical solution, but there's nothing wrong with that.

My suggestion would be an Azure Function + Redis Cache. The Logic App can update its state periodically by some key value, [LogicAppName]+[OrderID] for example, then another client can query on that same pattern.

Eventually, you may want to elevate this to Application Insights if you fine the need to track the entire app or business processes.



来源:https://stackoverflow.com/questions/48573610/how-to-find-current-value-of-variable-from-logic-app-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!