mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
remove properties not present in model
This commit is contained in:
parent
4617a3b1cf
commit
469a745b30
@ -139,7 +139,6 @@ export class TaskQueryRequestRepresentationModel {
|
||||
appDefinitionId: string;
|
||||
processInstanceId: string;
|
||||
processDefinitionId: string;
|
||||
processDefinitionKey: string;
|
||||
text: string;
|
||||
assignment: string;
|
||||
state: string;
|
||||
@ -147,14 +146,12 @@ export class TaskQueryRequestRepresentationModel {
|
||||
sort: string;
|
||||
page: number;
|
||||
size: number;
|
||||
landingTaskId: string;
|
||||
|
||||
constructor(obj?: any) {
|
||||
if (obj) {
|
||||
this.appDefinitionId = obj.appDefinitionId || null;
|
||||
this.processInstanceId = obj.processInstanceId || null;
|
||||
this.processDefinitionId = obj.processDefinitionId || null;
|
||||
this.processDefinitionKey = obj.processDefinitionKey || null;
|
||||
this.text = obj.text || null;
|
||||
this.assignment = obj.assignment || null;
|
||||
this.state = obj.state || null;
|
||||
@ -162,7 +159,6 @@ export class TaskQueryRequestRepresentationModel {
|
||||
this.sort = obj.sort || null;
|
||||
this.page = obj.page || 0;
|
||||
this.size = obj.size || 25;
|
||||
this.landingTaskId = obj.landingTaskId || '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -127,7 +127,6 @@ export class TaskListService {
|
||||
private generateTaskRequestNodeFromFilter(filter: FilterRepresentationModel): TaskQueryRequestRepresentationModel {
|
||||
let requestNode = {
|
||||
appDefinitionId: filter.appId,
|
||||
processDefinitionKey: filter.filter.processDefinitionKey,
|
||||
assignment: filter.filter.assignment,
|
||||
state: filter.filter.state,
|
||||
sort: filter.filter.sort
|
||||
|
Loading…
x
Reference in New Issue
Block a user