如何访问持久化实例的变量值?

问题描述:

是否可以从持久实例中获取变量值?我有一个接受订单的工作流,并且有一个名为CustomerNumber的变量.订单初始化后,它等待订单批准.我想计算特定客户的等待工作流程. 我可以使用提升值或跟踪.如果在实例化工作流之前先构建它们,则此方法有效.在数百个工作流运行并持续存在之后,如果我决定访问另一个变量OrderDate,则跟踪和提升的价值将无法正常工作.

is it possible to get variable values from persistent instance? i have a workflow that accepts orders and have a variable called CustomerNumber. after order initialized it waits for order approve. i want to count waiting workflows for a specific customer. i can use promoted values or tracking. this methods work if i build them before i instantiate workflows. after hundreds of workflow run and persisted, if i decide to access another variable OrderDate tracking and promoted value will not work.

查询(访问变量值)持久化实例的最佳方法是什么?

what is the best way to query(access variable values) persisted instances?

atmuc

如果修改后的值不起作用,请尝试反序列化实例属性

If the pormoted value won't work,  try desserialize instance property

如何:反序列化实例数据属性

How to: Deserialize Instance Data Properties

http://msdn.microsoft.com/en-us/library/ee960223.aspx