Returns an array of all Task objects currently assigned to the user of the associated
Progress.BPM.UserSession. An assigned task is one that is assigned specifically to the user, perhaps at design time, or by the user explicitly, or by another user.
A Progress.BPM.TaskFilter object whose
Is( ) method determines whether each of the eligible
Task objects is included in the array returned by the method.
If there is an unhandled error during execution of GetAssignedTasks, including during execution of the
Is() method, the
GetAssignedTasks( ) method raises that error. The method does not return any kind of array of
Task objects, and the target of any assignment of the return of the
GetAssignedTasks( ) method is unchanged.
An array of Progress.BPM.TaskFilter objects whose
Is( ) methods determine whether each of the eligible
Tasks is included in the array returned by the method. For each
Task, the result of applying each filter is combined with the results of applying the other filters in a way determined by the
Operator argument.
If there is an unhandled error during execution of GetAssignedTasks, including during execution of the
Is() method, the
GetAssignedTasks( ) method raises that error. The method does not return any kind of array of
Task objects, and the target of any assignment of the return of the
GetAssignedTasks( ) method is unchanged.
1.
|
Define a class that implements the Progress.BPM.Filter.ITaskFilter interface, or use a built-in Progress.BPM.Filter.* class. When you are implementing the interface, the only required class member is the Is( ) method. It is likely, however, that you will add a property for storing a value.
|
The Is( ) method might then compare the value of that property to some property of its
Task parameter as part of method implementation and return a LOGICAL value indicating whether the
Progress.BPM.Task object parameter meets some set of criteria, as defined by the implementation of this method.
2.
|
Initialize the class that implements the Progress.BPM.Filter.ITaskFilter interface. This requires instantiating the class and, likely, providing one or more values to serve as the filtering criteria (possibly by passing them as constructor arguments or setting properties).
|
3.
|
Pass the Progress.BPM.Filter.ITaskFilter instance to the appropriate overloaded method of GetAssignedTasks( ) or GetAvailableTasks( ).
|
The array of Task objects returned from the
Get*Tasks call contains only those tasks that match the filter.