mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve rules
This commit is contained in:
@@ -6,12 +6,26 @@ import { ProcessesService } from '../services/processes.service';
|
||||
})
|
||||
export class DeplomaService {
|
||||
|
||||
activityInstanceName = {
|
||||
'Revisar Diploma': [
|
||||
'Solicitar assinatura do Presidente',
|
||||
'Solicitar alteração',
|
||||
'Marcar Reunião'
|
||||
],
|
||||
'Diploma Assinado': [
|
||||
'Concluir'
|
||||
],
|
||||
'Assinar Diploma': [
|
||||
'Assinado'
|
||||
]
|
||||
}
|
||||
|
||||
constructor(
|
||||
private processes: ProcessesService,
|
||||
) { }
|
||||
|
||||
|
||||
async askSignature({note, documents, serialNumber}) {
|
||||
async askSignature({note, documents, serialNumber, activityInstanceName}) {
|
||||
let body = {
|
||||
"serialNumber": serialNumber,
|
||||
"action": "Aprovar",
|
||||
@@ -25,7 +39,7 @@ export class DeplomaService {
|
||||
return this.processes.CompleteTask(body)
|
||||
}
|
||||
|
||||
async askToChange({note, documents, serialNumber}) {
|
||||
async askToChange({note, documents, serialNumber, activityInstanceName}) {
|
||||
let body = {
|
||||
"serialNumber": serialNumber,
|
||||
"action": "Retificar",
|
||||
@@ -40,7 +54,7 @@ export class DeplomaService {
|
||||
|
||||
}
|
||||
|
||||
async finish({note, documents, serialNumber}) {
|
||||
async finish({note, documents, serialNumber, activityInstanceName}) {
|
||||
|
||||
let body = {
|
||||
"serialNumber": serialNumber,
|
||||
@@ -54,5 +68,19 @@ export class DeplomaService {
|
||||
|
||||
return this.processes.CompleteTask(body);
|
||||
}
|
||||
|
||||
|
||||
async sign({note, documents, serialNumber, activityInstanceName}) {
|
||||
let body = {
|
||||
"serialNumber": serialNumber,
|
||||
"action": "Assinado",
|
||||
"ActionTypeId": 99999842,
|
||||
"dataFields": {
|
||||
"ReviewUserComment": note,
|
||||
},
|
||||
"AttachmentList" :documents,
|
||||
}
|
||||
|
||||
return this.processes.CompleteTask(body)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user