diff --git a/typescript/api/services/RecordsService.ts b/typescript/api/services/RecordsService.ts index 164d51f79..e595952d0 100644 --- a/typescript/api/services/RecordsService.ts +++ b/typescript/api/services/RecordsService.ts @@ -142,6 +142,7 @@ export module Services { 'exportAllPlans', 'storeRecordAudit', 'exists', + 'transitionWorkflowStep', 'setWorkflowStepRelatedMetadata', 'transitionWorkflowStepMetadata', 'triggerPreSaveTransitionWorkflowTriggers', @@ -955,6 +956,10 @@ export module Services { return await this.storageService.createRecordAudit(record); } + public async transitionWorkflowStep(currentRec: any, recordType: any, nextStep: any, user: any, triggerPreSaveTriggers: boolean = true, triggerPostSaveTriggers: boolean = true) { + throw new Error("Use separate calls to 'transitionWorkflowStepMetadata', 'triggerPreSaveTransitionWorkflowTriggers', and 'triggerPostSaveTransitionWorkflowTriggers' instead.") + } + public setWorkflowStepRelatedMetadata(currentRec: any, nextStep: any) { sails.log.warn('Deprecated call to setWorkflowStepRelatedMetadata. Use transitionWorkflowStepMetadata instead.'); return this.transitionWorkflowStepMetadata(currentRec, nextStep);