Create method: WorklistEntry class
Syntax
Create()
Description
Use the Create method to create a new WorklistEntry object.
This method is not the same as the Create constructor. The Create constructor only creates an instance of the WorklistEntry class. To add the entry to the database, you must use this method.
The following properties must be set before calling this method:
-
busactivity
-
buseventname
-
busprocname
-
worklist
If this method completes successfully, the following properties are populated:
-
instanceid
-
transactionid
Parameters
None.
Returns
This method returns a numeric value: 0 if there is an error, nonzero if entry created successfully.
Example
import PT_WF_WORKLIST:*;
Local WorklistEntry &worklist;
Local Number &Rslt;
&worklist = create WorklistEntry();
&worklist.busprocname = "Administer Workflow";
&worklist.busactivity = "Send Note";
&worklist.buseventname = "Worklist Note";
&worklist.worklistname = "Worklist Note";
&Rslt = &worklist.Create();