实现自定义InstanceStore [英] Implementing custom InstanceStore

查看:121
本文介绍了实现自定义InstanceStore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

有许多InstancePersistenceCommand派生的命令可以被执行".反对商店.我找不到可以回答以下问题的文档:

There are a bunch of InstancePersistenceCommand derived commands that could be "executed" against the store. I can't find documentation that answers questions like:

-自定义实例存储必须处理哪些命令?

- Which commands *must* be handled by a custom instance store?

-每个命令的合同"预期行为是什么?

- What is the "contract", expected behavior for each command?

-如何处理错误并将错误报告给呼叫者?

- How are errors to be handled and reported to callers?

我已经看过XmlWorkflowInstanceStore,但是它没有给出完整的图片.

I've looked at the XmlWorkflowInstanceStore but it does not give the whole picture.

谢谢.

tjk:)

推荐答案

特别是,SaveWorkflowCommand具有InstanceData,InstanceKeysToAssociate,InstanceKeysToComplete和其他一些集合. XmlWorkflowInstanceStore仅困扰于InstanceData成员.那其他人呢?如何使用它们?什么时候 他们用? sql持久性存储的存储过程当然会尝试执行某些操作,但是我的KeysTable始终为空(对于我使用的工作流程).

In particular, the SaveWorkflowCommand has InstanceData, InstanceKeysToAssociate, InstanceKeysToComplete, and a few more collections. The XmlWorkflowInstanceStore only bothers with the InstanceData member. What about the others? How are they used? When are they used? The stored procedures for the sql persistence store certainly try to do something, but my KeysTable is always empty (for the workflows I've used).

同类问题适用于InstancePersistenceContext上的LoadedInstance()方法. InstancePersistenceContex的文档在哪里?需要叫什么?什么时候?以什么顺序?

The same kind of questions apply for the LoadedInstance() method on InstancePersistenceContext. Where is the documentation for InstancePersistenceContex? What needs to be called? When? In what order?

最后,当调用SaveWorkflowCommand时,如何计算工作流实例再次可运行的时间?我找不到记录在哪里?

Lastly, when SaveWorkflowCommand is called, how would I figure the time when the workflow instance would be runnable again? I can't find where this is documented?

tjk:)


这篇关于实现自定义InstanceStore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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