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;
|
appDefinitionId: string;
|
||||||
processInstanceId: string;
|
processInstanceId: string;
|
||||||
processDefinitionId: string;
|
processDefinitionId: string;
|
||||||
processDefinitionKey: string;
|
|
||||||
text: string;
|
text: string;
|
||||||
assignment: string;
|
assignment: string;
|
||||||
state: string;
|
state: string;
|
||||||
@ -147,14 +146,12 @@ export class TaskQueryRequestRepresentationModel {
|
|||||||
sort: string;
|
sort: string;
|
||||||
page: number;
|
page: number;
|
||||||
size: number;
|
size: number;
|
||||||
landingTaskId: string;
|
|
||||||
|
|
||||||
constructor(obj?: any) {
|
constructor(obj?: any) {
|
||||||
if (obj) {
|
if (obj) {
|
||||||
this.appDefinitionId = obj.appDefinitionId || null;
|
this.appDefinitionId = obj.appDefinitionId || null;
|
||||||
this.processInstanceId = obj.processInstanceId || null;
|
this.processInstanceId = obj.processInstanceId || null;
|
||||||
this.processDefinitionId = obj.processDefinitionId || null;
|
this.processDefinitionId = obj.processDefinitionId || null;
|
||||||
this.processDefinitionKey = obj.processDefinitionKey || null;
|
|
||||||
this.text = obj.text || null;
|
this.text = obj.text || null;
|
||||||
this.assignment = obj.assignment || null;
|
this.assignment = obj.assignment || null;
|
||||||
this.state = obj.state || null;
|
this.state = obj.state || null;
|
||||||
@ -162,7 +159,6 @@ export class TaskQueryRequestRepresentationModel {
|
|||||||
this.sort = obj.sort || null;
|
this.sort = obj.sort || null;
|
||||||
this.page = obj.page || 0;
|
this.page = obj.page || 0;
|
||||||
this.size = obj.size || 25;
|
this.size = obj.size || 25;
|
||||||
this.landingTaskId = obj.landingTaskId || '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -127,7 +127,6 @@ export class TaskListService {
|
|||||||
private generateTaskRequestNodeFromFilter(filter: FilterRepresentationModel): TaskQueryRequestRepresentationModel {
|
private generateTaskRequestNodeFromFilter(filter: FilterRepresentationModel): TaskQueryRequestRepresentationModel {
|
||||||
let requestNode = {
|
let requestNode = {
|
||||||
appDefinitionId: filter.appId,
|
appDefinitionId: filter.appId,
|
||||||
processDefinitionKey: filter.filter.processDefinitionKey,
|
|
||||||
assignment: filter.filter.assignment,
|
assignment: filter.filter.assignment,
|
||||||
state: filter.filter.state,
|
state: filter.filter.state,
|
||||||
sort: filter.filter.sort
|
sort: filter.filter.sort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user