Rename processDefinition -> processDefinitionId

This commit is contained in:
Will Abson
2016-10-31 09:57:45 +00:00
parent a4cde396dd
commit 2637d4286a
2 changed files with 5 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ export class ActivitiStartProcessButton implements OnInit, OnChanges {
processDefinitions: any[] = [];
name: string;
processDefinition: string;
processDefinitionId: string;
constructor(private translate: AlfrescoTranslationService,
private activitiProcess: ActivitiProcessService) {
@@ -78,8 +78,8 @@ export class ActivitiStartProcessButton implements OnInit, OnChanges {
}
public startProcess() {
if (this.processDefinition && this.name) {
this.activitiProcess.startProcess(this.processDefinition, this.name).subscribe(
if (this.processDefinitionId && this.name) {
this.activitiProcess.startProcess(this.processDefinitionId, this.name).subscribe(
(res: any) => {
this.cancel();
},