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