Title | Added | Status | Last reviewed |
---|---|---|---|
Task Filter Cloud Service |
v3.0.0 |
Experimental |
2019-01-09 |
Manages task filters.
- addFilter(filter:
TaskFilterCloudModel
)
Adds a new task filter.- filter:
TaskFilterCloudModel
- The new filter to add
- filter:
- deleteFilter(filter:
TaskFilterCloudModel
)
Deletes a task filter- filter:
TaskFilterCloudModel
- The filter to delete
- filter:
- getCompletedTasksFilterInstance(appName:
string
):TaskFilterCloudModel
Creates and returns a filter for "Completed" task instances.- appName:
string
- Name of the target app - Returns
TaskFilterCloudModel
- The newly created filter
- appName:
- getMyTasksFilterInstance(appName:
string
):TaskFilterCloudModel
Creates and returns a filter for "My Tasks" task instances.- appName:
string
- Name of the target app - Returns
TaskFilterCloudModel
- The newly created filter
- appName:
- getTaskFilterById(appName:
string
, id:string
):TaskFilterCloudModel
Gets a task filter.- appName:
string
- Name of the target app - id:
string
- ID of the task - Returns
TaskFilterCloudModel
- Details of the task filter
- appName:
- getTaskListFilters(appName?:
string
):Observable
<
TaskFilterCloudModel
[]>
Gets all task filters for a process app.- appName:
string
- (Optional) Name of the target app - Returns
Observable
<
TaskFilterCloudModel
[]>
- Observable of task filter details
- appName:
- getUsername():
string
Gets the username field from the access token.- Returns
string
- Username string
- Returns
- getValueFromToken(key:
string
)
Gets a named value from the access token.- key:
string
- Key name of the value
- key:
- updateFilter(filter:
TaskFilterCloudModel
)
Updates a task filter.- filter:
TaskFilterCloudModel
- The filter to update
- filter:
The methods of this service generally return an instance of TaskFilterCloudModel
or
an array of instances. For example, you could use getTaskListFilters
as follows:
this.taskFilterService.getTaskListFilters(appName).subscribe( (filters: TaskFilterCloudModel[]) => {
console.log('Task filters: ', filters);
}, error => {
console.log('Error: ', error);
});
These filters can now be used to get matching task instances for the process app.