AEC Introduction
Activityexecutioncontext is an important part of a workflow.
Well, the introduction of AEC comes first and ends with a seriesArticleI will explain in detail the core principles of AEC and WF.
Copy of activity
While and replicator can execute its subactivities repeatedly.
The while and replicator do not reset the activity to the initial state each time they reuse the activity. Instead, the original activity is cloned, and each cloned activity is managed separately. It does not interfere with other cloned activities. Each cloned activity must have its own AEC to manage the status.
Example 1
This is the expected result.
Example 2
When codeactivity is encapsulated into activity, an endless loop is obtained.
Description
Example 1
Example 2
Solution
Let Example 2 have the effect of Example 1
Summary:
AEC provides the activity copy Management Function
This article only briefly explains how while and replicator repeatedly execute its subactivities, and does not directly use activityexecutioncontext.CodeIn later articles, we will explain in detail the activityexecutioncontext, activity execution status, and WF service interface.