Windows Workflow - PersistableIdle

In our company, we have a business process that needs to:

  • Get data from X
  • Wait for user Y to do the research.
  • Get data from Z based on the data from step 2.

When researching this, there seem to be several options for implementing this in the workflow.

  • Add a delay activity between Step 1 (workflow operation) and Step 3 (workflow operation). Then, during the PersistableIdle event, unload worklow. When the user completes step 2, reload the workflow from the database.
  • Same as # 1 except using bookmarks instead of delay activity.

Is there a better way (1, 2 or another option)?

All of our other actions are AsyncCodeActivities, so I'm sure that they will not fire the PersistableIdle event (since they are in the zone without repeating), but I want to make sure that the workflow is not accidentally unloaded in other cases. Is there any risk here? Is there a way to create activity that forces the workflow to unload?

+5
source share
1 answer

Is there a better approach (1, 2 or another option)?

, # 2 . ( - , Receive) , . Y, ( ).

, , , , ( , , ..).

? , # 3:

Pick Activity - . PickBranch Delay PickBranch, , , - Y -.

, , - " , , , - , "?

, . WorkflowServiceHost, , WorfklowServiceHost , , ( ).

WorkflowServiceHost, , , , , - - , , WorkflowApplication

: - , . , -, , , NoPersistZone activity.

- "", "". , , , .

+5

All Articles