[Going deeper into WF] -- the transformation of the card ring-bookmarks

Source: Internet
Author: User

Past life-card ring

Basic concepts:Token-Ring is a LAN access method defined in the IEEE 802.5 standard.

The basic principle of the Ring-based network is to use a token (representing the license for sending a signal) to avoid conflicts in the network, and improve the network data transfer rate compared to the Ethernet using the conflict detection algorithm CSMA/CD. In addition, you can set the transmission priority.

Transmission Method:When data is transferred, data is sent first by the computer with the knowledge of token. The computer that receives the data will check the frame header. If it is sent to itself, it will process it. Whether it is sent to you or not, it will be passed on again. After passing a circle, check whether the data is the same to determine whether the data is transmitted incorrectly. After the data is sent, you can adjust the token priority (lower than your own priority) as needed, and then pass the token to the next computer. If you receive a token with a higher priority, you must pass the token to the next computer.

Remarks: The above is taken from Wikipedia.

Http://zh.wikipedia.org/zh-cn/%E4%BB%A4%E7%89% 8C % E7 % 8E % AF

This life-bookmarks

Concept: The Bookmark mechanism can suspend the activity at the position of the Bookmark and wait for restoration. If we need to provide additional data when the activity is not completed

You can register a bookmark for the activity. We need to use the CreateNamedBookmark method to create a bookmark. This method has three parameters, one name and one BookmarkCallback delegate. When

The task is executed when the activity is resumed. And BookmarkOptions. Runtime maintains a Bookmarks List for each workflow instance. check is returned every time a Bookmark is restored.

Bookmark is also responsible for some of the previous CorrelationToken responsibilities.

Bookmark can use the process Idle and the OnIdle that triggers the process

Member:

Use IList bookmarks = instance. GetAllBookmarks (); to obtain all bookmarks.

Resume the execution of the activity through instance. ResumeBookmark (name, str.

No return value for Bookmark

Bookmark returns a value.

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.