SharePoint State Machine Workflow Solution (iii)

Source: Internet
Author: User

SharePoint state machines with built-in default process logic

As we mentioned in the previous article, SharePoint's task encapsulation mechanism determines that there are two problems with its state machine application, one is to add one eventdrivenactivity for each approver, and the other is that the approval number must be determined during the design period.

Is there any way to solve these two problems? Thanks to WF's ability to dynamically modify the process, we can inherit one of our state activities from stateactivity, and dynamically add CreateTask, EventDrivenActivity, and Ontask in the state, depending on the number of approvers before the status is executed. Changed activities.

The code logic that customizes the Execute method of the state activity.

Design period flow Chart of State machine workflow implemented by using custom states activity

Note Approval _initialization is added for the design period to show process logic, the runtime is deleted, and the approval _initialization for the runtime is regenerated.

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.