Interpreting the core principles of WF through AEC (1) Copy of activity

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.