1

Background:

We currently use WF 4 and the SQL Workflow Instance Store to persist our workflows at each bookmark. The first time a workflow is persisted, a new record is created in the table "System.Activities.DurableInstancing.InstancesTable". On each subsequent persist, existing records are deleted and a new record inserted.

Question:

How could you modify this behavior so that on each subsequent persist, a new record would be created in the instances table?

Notes:

You can create a custom instance store, but it is "non-trivial" to do so. Is there a way you could use the System.Activities.DurableInstancing.SqlWorkflowInstanceStore class, but customize this behavior?

4

1 に答える 1

1

InstancesTable にはワークフロー インスタンスごとに 1 つのレコードが含まれているため、同じワークフロー インスタンスに対して複数のレコードが存在すると、少なくとも非常に混乱します。

追跡に InstancesTable を使用しようとしているようです。その場合は、代わりにTrackingParticipantの作成を検討する必要があります。

于 2011-12-20T15:55:41.050 に答える