动态更改自定义活动属性。 [英] Changing Custom Activities Properties Dynamically.
本文介绍了动态更改自定义活动属性。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我可以动态更改自定义活动的属性,这些属性是在设计时设置的。我试过"WorkflowChanges"类,但似乎它不会再次调用工作流实例时反映更改。例如,我有一个属性"Precondition"。对于我在设计时设置的字符串类型的自定义活动,现在我想改变它在我的代码中,即。动态。如何实现。
谢谢苛刻。
Can i change the properties of a custom activity dynamically ,which are set at design time . I have tried "WorkflowChanges" class but it seems it doesnt refect the change when the workflow instance is invoked again. For example , I have a property "Precondition" for my custom activity of string type whose value i set at design time , now i want to change it In my code,i.e. Dynamically .How it can be achieved .
Thanks
Harsh.
推荐答案
Hello Harsh
当你说"它不会反映再次调用工作流实例时的更改",是指仅恢复现有实例还是实例化新实例? '因为如果您正在尝试第二个选项(新实例),那么您将不得不每次都应用更改。
Hello Harsh
When you say "it doesn't reflect the change when the workflow instance is invoked again" , do you mean just recovering an existing instance or instantiating a new one? 'Cause if you are trying the second option (new instance) then you will have to apply changes everytime.
这篇关于动态更改自定义活动属性。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文