Windows Workflow Foundation (III): Activity Overview

Source: Internet
Author: User

Activity. This is the core of WWF's processing of specific business logic. Osworkflow is called action.
Here we will introduce the activities and classification of WWF.
Next, we will introduce how to customize your own activity.

There are about 28 types of activities currently provided, which are divided into eight categories:
1: control flow activity: Control Flow
2: workflow lifetime activity: Workflow-related
3: Event waiting activity: event class
4: transaction and exception activity: transaction and exception handling class
5: Data-centic activity: Data (Exchange) processing class
6: WebService activity: Processing weserivice
7: The Code activity:CodeProcessing class
8: State workflow activity: state machine workflow processing class

Other, custom activity: User-defined class

Introduction:
1: control flow activity: Control Flow
Sequence activity: sequential flow
Parallel activity: Parallel Flow
Ifelse activity: Conditional judgment process
While activity: cyclic process
Conditionedactivitygroup: Condition Group
Replicator activity: self-replication. You can copy instances in the running environment.
Delay activity: delayed execution.
2: workflow lifetime activity: Workflow-related
Invokeworkflow activity: Call and execute another Workflow
Suspend activity: Pause the currently executed Workflow
Terminate activity: abort a Workflow
3: Event waiting activity: event class
Eventdriven activity: Wait for the event driver. Specify the names and parameters of the events to be processed.
Listen activity: listens for messages. This can listen on many messages at the same time. There are multiple eventdriven in a listin.
4: transaction and exception activity: transaction and exception handling class
Transaction context activity: processes the context of a transaction and supports short-term and long-term transactions.
Throw activity: throw an exception
Exceptionhandler: exception handling.
Compensate activity: compensation processing, which can only be placed in exception, processing some rollback processing, etc.
5: Data-centic activity: Data (Exchange) processing class: used for WWF to process data exchange between space and host space.
Updatedata activity: WWF updates data to the host
Selectdata activity: WWF sends a request to the host.
Waitfordata activity:
Waitforquery activity: the host is sent to WWF, and WWF returns datasource.
6: WebService activity: Processing weserivice
Invokewebservice activity: Call WebService
Webservicereceive Activity
Webserviceresponse Activity
7: The Code activity: code processing class
Code activity: You can write some code. But I don't think this is a good solution, because this logic is a bit hard to write. Program .
8: State workflow activity: state machine workflow processing class
State: status. A state machine. A workflow must have an initial state and an end state.
Stateinitialization: initial state. I have never used this.
Setstate: set the next state.

9: Custom activity: Custom status.
Such activities are almost the same as those provided by the system.
The next article mainly introduces this article.

Related Article

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.