Windows 4.0 Workflow InstancePersistenceCommand Instance Error

I have a wcf workflow that has three receive actions ordered in a sequential manner. i.e

1. get the application 2. Approval of Manager1 3. approval of the final manager my problem is that I can use the workflow from my client application and call the first one (receive application activity), however, when I try to call the second one (receive manager1 approval activity ), I get the following error

InstancePersistenceCommand instance was aborted because the instance '16c3dae0-92f5-45e8-bdaf-d6f4051a0a39' is not yet stored in the instance store.

I checked the database (instance storage table) and the record seems to exist. I also set Correlation as indicated in this article. Please help, this is urgent.

+3
source share
2 answers

Hi guys, I finally figured out what the problem is. (it took me three days). I just need to add the following

<serviceBehaviors>
    <behavior>
    <workflowIdle timeToUnload="0"/>
</behavior>

You can get more detailed information in this NB article: My workflow received a default timeToUnload value of 1 minute (from the machine configuration). Meaning, when I called the next receive operation in my workflow, the workflow was still in memory (really weird)

+4
source

GUID ? WF4 GUID, , . . , , XAML .

0

Source: https://habr.com/ru/post/1784657/


All Articles