编排中的补偿块中的变量没有增加 [英] variable not getting incremented in compensation block in orchestration

查看:48
本文介绍了编排中的补偿块中的变量没有增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在长时间运行的交易中有2个原子交易。所有原子事务都具有补偿形状。长时间运行的事务具有异常处理程序块,它调用自己的补偿(后者又调用原子
事务的补偿)

I have 2 atomic transactions in long running transaction. All the atomic transactions have a compensation shape. the long running transaction has exception handler block which calls its own compensation (which in turn calls the compensation of the atomic transactions)

存在一个编排整数变量"cnt"。它在所有补偿块中递增并被写入通过文件适配器发送的消息。理想情况下,每个补偿块
执行会发送一个消息文件。所以每个消息理想情况下cnt都会增加。但是它没有发生cnt总是保持"1"。在所有输出消息中。

there is an orchestration integer variable "cnt" which gets incremented in all the compensation block and gets written into a message which is sent out via file adapter. ideally there will be one message file sent out for each compensation block execution. so every message ideally the cnt will be increased. BUT IT DOES NOT HAPPEN the cnt always remains "1" in all the output messages.

请点击下面的ORCHESTRATION IMAGE(不要让我复制!!!)

PLEASE CLICK BELOW FOR THE ORCHESTRATION IMAGE (DOES NOT LET ME COPY HERE!!!)

https:// ibb.co/doNBav

https://ibb.co/doNBav

有人知道为什么会这样吗??? !!!

does anybody know why this happens ???!!!

请帮助

提前致谢

Bal

推荐答案

嗨Bala,

MSDN文章  业务流程中的可变范围 解释得很好。

The MSDN article Variable Scope in Orchestrations explains this well.

如果在阅读之后您仍然无法尝试插入业务流程屏幕截图在您的回复中使用此图标: 

If after reading it you still have trouble try to  INSERT the orchestration screen shot in your reply using this icon: 


这篇关于编排中的补偿块中的变量没有增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆