Workflow task expired

Source: Internet
Author: User

Workflow task expired

In a workflow, task expiration is an important step. Instead of leaving the process in a certain step, you must continue the process within the specified time.

We useDelayAndListenControl. UseListenTo monitor whether the task has expired. If the task has expired, the process follows:DelayBranch. The displayed page displays "the task has expired !".

SetDelayactivity1ControlTimeoutdurationAttribute. When you want the task to expire, you can set the length of time. You can directly set or create an attribute to assign an expiration value to the attribute. For example:

Create attributes:

Public timespan delayactivity1_timeoutduration1 =   Default (System. timespan );

Set the task to expire after five minutes:

Delayactivity1_timeoutduration1 =   New Timespan ( 0 , 5 , 0 );

InCodeactivity1Write settings for expired tasks, as shown in figure:

Private   Void Delaycode ( Object Sender, eventargs E)
{
Isbm= True;
This. Completetask?taskoutcome= "Task expired!";
}

RelatedSource codeAs follows:
Delay and listen

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.