Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a Workflow which uses the Microsoft Persistent Database. I need the ability to create an InstanceId within a _click event, and then associate that Id with all subsequent InstanceId's created. This is so I can update the 'parent' InstanceId and all its 'children' will automatically update in the Persistent Database.

I have been trying to use OnBeginAssociateKeys() method but have not had any success.

How do I implement this method? How/when does it update the KeysTable?

Any help or info is appreciated. Thanks.

What I have tried:

The method is currently called in WorkflowHostForm class. I call the method within my workflow using, OnBeginAssociateKeys(keys, callback, state);,

but the [System.Activities.DurableInstancing].[KeysTable] does not get populated.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900