Custom workflow task control

Source: Internet
Author: User
Read the custom workflow task control in the moss SDK.
Custom workflow task control: allows you to create, modify, delete, and complete a task. It also defines the historical records of these four actions.
Encapsulate attributes in custom mode:
1. encapsulate task attributes
Istaskcomplete Determine whether the task is completed;

IstaskidsetJudge a taskIDSet or not;

TaskidTaskID;

TaskcreatedbyTask creator;

TaskassignedtoTask Allocator;

TaskassignedtostringThe value of the task allocator;

DuedatestringExpiration time value;

TaskchangedbyTask modifier;

TaskchangedbystringThe value of the task modifier;

IstaskdeletedDetermine whether the task has been deleted;

TaskdeletedbyWho deleted the task;

TaskdeletedbystringThe value of the task owner;

TaskcompletedbyWho has completed the task;

2. Encapsulation Create task attributes
Besides Taskid Besides Taskproperties , Listitemid , Specialpermissions (Permission ), Methodinvoking (Method), these attributes and methods are visible in the serialization of the designer ( Designerserializationvisibility . Visible ); Taskid Is invisible;

3. encapsulation taskchanged attribute
ontaskchanged_afterproperties stores the attributes of the current task.

Ontaskchanged_taskidIndicatesGuid;

Ontaskchanged_beforepropertiesStores updated task attributes;

The preceding three items are not displayed;

Ontaskchanged_executorUpdate the logon name of the task user;

Ontaskchanged_rolesVerify the role when an event is passed in;

4. Encapsulation Delete task attributes and Taskchanged Same attributes
Afterproperties , Taskid Not displayed.

5. EncapsulationCompleted task attributes
Completetask_taskoutcomeEnter the task result;

TaskidDo not display, others must be displayed;
Sample download

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.