Have you already needed to validate several tasks at the same time? Have you already needed to process data by batch? The solution exists with the APIs to be found in W4, regardless of the technology retained. The method is called CompleteTtask (note the additional T which indicates that the method requires a table of values/objects) and permits the completion of a series of tasks with only one call to the server, thus offering even better performance.
| Technology |
Prototype of the function/method |
| .NET |
TWFruntimeFactory.WFCompleteTtask(int[] taskId); |
| Java |
TWFtask.wfCompleteTtask(); |
Langage C |
WFcCompleteTtask (tWFparaCom * paraCom, tWFTid * taskId /* IN */) |
On a functional level, this permits a user to complete several tasks with only one mouse-click, provided that his or her user interface allows this. Often, this tool is called an “out tray”.
On a technical level, it should be noted that this function does not permit the modification of variables for tasks which are in the process of being concluded. Therefore, the procedure’s definition must be based on the default values on the folder level, for example, the management of validation for a conditional link.
Extract of the procedure: the out tray will be found at the step “Manager validation” and the “validation” variable will be initiated by “OK”.
For batch validation, variables which have not been modified by the “CompleteTtask()” method, the “validation” value will be “OK”, even if it has been positioned differently for individual processing. The only means to skip the refusal link is to process the task individually and to position the “validation” variable with another value, providing the manager with an opportunity to justify his or her refusal.

|