2023-06-23 11:47:20 +01:00
|
|
|
import { ProcessesService } from "src/app/services/processes.service";
|
2023-06-23 12:14:24 +01:00
|
|
|
import { GenericBehaviorProcess } from "./GenericBehaviorTaskActions";
|
2023-06-23 11:47:20 +01:00
|
|
|
|
|
|
|
|
// check 1
|
|
|
|
|
export class DiplomaGenerates {
|
|
|
|
|
|
|
|
|
|
processes: ProcessesService
|
|
|
|
|
|
|
|
|
|
/**
|
2023-06-23 13:56:34 +01:00
|
|
|
* @activityInstanceName 'All'
|
2023-06-23 11:47:20 +01:00
|
|
|
* @returns
|
|
|
|
|
*/
|
2023-06-23 12:14:24 +01:00
|
|
|
async SendDiploma({note = '', docs = [], serialnumber}) {
|
2023-06-23 11:47:20 +01:00
|
|
|
let body = {
|
|
|
|
|
"serialNumber": serialnumber,
|
|
|
|
|
"action": "Enviar diploma",
|
|
|
|
|
"ActionTypeId": 104,
|
|
|
|
|
"dataFields": {
|
|
|
|
|
"ReviewUserComment": note,
|
|
|
|
|
},
|
|
|
|
|
"AttachmentList" : docs,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return await this.processes.CompleteTask(body).toPromise();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2023-06-23 13:56:34 +01:00
|
|
|
* @activityInstanceName 'All'
|
2023-06-23 11:47:20 +01:00
|
|
|
* @returns
|
|
|
|
|
*/
|
2023-06-23 12:14:24 +01:00
|
|
|
delegate(task: any, note, EmailAddress) {
|
|
|
|
|
return GenericBehaviorProcess.Delegate(task, note, EmailAddress)
|
2023-06-23 11:47:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2023-06-23 13:56:34 +01:00
|
|
|
* @activityInstanceName 'All'
|
2023-06-23 11:47:20 +01:00
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
async sendExpedienteToPending(serialnumber) {
|
|
|
|
|
|
|
|
|
|
this.processes.SetTaskToPending(serialnumber).toPromise();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* need to work on
|
2023-06-23 13:56:34 +01:00
|
|
|
* @activityInstanceName 'All'
|
2023-06-23 11:47:20 +01:00
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
static async setUpMeeting() {}
|
|
|
|
|
}
|