remove properties not present in model

This commit is contained in:
Eugenio Romano 2017-10-09 16:36:38 +01:00
parent 4617a3b1cf
commit 469a745b30
2 changed files with 0 additions and 5 deletions

View File

@ -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 || '';
} }
} }
} }

View File

@ -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