Expandir |
---|
Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/glb/v1/jobscheduler/{jobid} |
Informações |
---|
icon | false |
---|
title | Exemplo de Entrada Postman |
---|
| ![](/download/attachments/427049339/image2018-10-29_17-17-39.png?version=1&modificationDate=1540847859857&api=v2&effects=drop-shadow)
|
Informações |
---|
icon | false |
---|
title | Exemplo de Entrada |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"scheduleDate": "2018-10-26 23:05:00",
"recurrent": true,
"daily": {
"hour": 10,
"minute": 15
},
"execution": {
"processID": "GlbCopyPermisUsrProc",
"scheduleDate": "string",
"executionDate": "string",
"executionID": "string",
"scheduleID": "string",
"user": "string",
"recurrent": true,
"executionParameter": {
"SourceUsuario": "mestre",
"RemoveOldPermissions": false,
"CopyToAllApplications": true,
"CodSistema": "G",
"NewUser": {
"Usuario": "testepost",
"Nome": "testepost",
"Senha": "totvs",
"Email": "testepost",
"codAcesso": "Acesso01",
"UsuariodeRede": ""
},
"Initialized": true,
"PrimaryKeyList": [],
"PrimaryKeyNames": null,
"PrimaryKeyTableName": null,
"OnlineMode": false,
"SyncExecution": false,
"HideProgressDialog": false,
"SaveParamsExecution": false,
"CodUsuario": "mestre",
"Context": {
"$id": "1",
"_params": {
"$EXERCICIOFISCAL": -1,
"$CODLOCPRT": -1,
"$CODTIPOCURSO": -1,
"$EDUTIPOUSR": "-1",
"$CODUNIDADEBIB": -1,
"$CODCOLIGADA": 1,
"$RHTIPOUSR": "-1",
"$CODIGOEXTERNO": "-1",
"$CODSISTEMA": "G",
"$CODUSUARIOSERVICO": "",
"$CODUSUARIO": "mestre",
"$IDPRJ": -1,
"$CHAPAFUNCIONARIO": "-1",
"$CODFILIAL": -1
},
"Environment": 1
},
"UserName": "mestre",
"ConnectionId": null,
"ConnectionString": null,
"DriverType": null,
"Ip": "10.31.4.57",
"HostName": "BHD050100279",
"JobServerHostName": "BHD050100279",
"ActionName": "GlbActionProcCopyPermisUsr",
"MasterActionName": "GlbUsuarioAction",
"ActionModule": "G",
"JobID": {
"ID": 1,
"ExecID": 1,
"IsPriorityJob": false,
"Children": []
},
"ShowReExecuteButton": true,
"ExecutionId": "7dba5874-a296-43bc-89fd-ab853121feec",
"ProcessName": "Cópia de Permissões de Usuários",
"ServerName": "GlbCopyPermisUsrProc",
"ServiceInterface": null,
"Scheduler": 1,
"UseJobMonitor": true,
"ScheduleDateTime": "2018-10-25T12:04:31.8719316-03:00",
"CanSendMail": false,
"CanWaitSchedule": false,
"SendMail": false,
"FriendlyLogs": null,
"SuccessMessage": "Processo executado com sucesso",
"FailureMessage": "Falha na execução do processo",
"SaveLogInDatabase": true,
"StatusMessage": null,
"WaitSchedule": false,
"IsolateProcess": false,
"DisableIsolateProcess": false,
"NetworkUser": "fabio.nunes",
"CustomData": null,
"CanParallelize": true,
"ShouldParallelize": false,
"QuantityOfSplits": 0,
"MinimumQuantityOfPrimaryKeysPerProcess": 1,
"MaximumQuantityOfPrimaryKeysPerProcess": 1000,
"NotifyFluig": false,
"NotifyEmail": false,
}
}
} |
|
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Positivo Postman |
---|
| ![](/download/attachments/427049339/image2018-10-29_17-19-14.png?version=1&modificationDate=1540847955690&api=v2&effects=drop-shadow)
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Positivo |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"scheduleID": "2",
"status": "pending",
"scheduleDate": "26/10/2018 23:05:00",
"executionDate": "",
"executionID": "1",
"user": "mestre",
"recurrent": true,
"daily": {
"hour": 10,
"minute": 15
},
"execution": {
"processID": "GlbCopyPermisUsrProc",
"status": "pending",
"scheduleDate": "26/10/2018 23:05:00",
"executionDate": "",
"executionID": "1",
"scheduleID": "2",
"user": "mestre",
"recurrent": true,
"executionParameter": {
"SourceUsuario": "mestre",
"RemoveOldPermissions": false,
"CopyToAllApplications": true,
"CodSistema": "G",
"NewUser": {
"Usuario": "testepost",
"Nome": "testepost",
"Senha": "totvs",
"Email": "testepost",
"codAcesso": "Acesso01",
"UsuariodeRede": ""
},
"Initialized": true,
"PrimaryKeyList": [],
"PrimaryKeyNames": null,
"PrimaryKeyTableName": null,
"OnlineMode": false,
"SyncExecution": false,
"HideProgressDialog": false,
"SaveParamsExecution": false,
"CodUsuario": "mestre",
"Context": {
"$id": "1",
"_params": {
"$EXERCICIOFISCAL": -1,
"$CODLOCPRT": -1,
"$CODTIPOCURSO": -1,
"$EDUTIPOUSR": "-1",
"$CODUNIDADEBIB": -1,
"$CODCOLIGADA": 1,
"$RHTIPOUSR": "-1",
"$CODIGOEXTERNO": "-1",
"$CODSISTEMA": "G",
"$CODUSUARIOSERVICO": "",
"$CODUSUARIO": "mestre",
"$IDPRJ": -1,
"$CHAPAFUNCIONARIO": "-1",
"$CODFILIAL": -1
},
"Environment": 1
},
"UserName": "mestre",
"ConnectionId": null,
"ConnectionString": null,
"DriverType": null,
"Ip": "10.31.4.57",
"HostName": "BHD050100279",
"JobServerHostName": "BHD050100279",
"ActionName": "GlbActionProcCopyPermisUsr",
"MasterActionName": "GlbUsuarioAction",
"ActionModule": "G",
"JobID": {
"ID": 2,
"ExecID": 1,
"IsPriorityJob": false,
"Children": []
},
"ShowReExecuteButton": true,
"ExecutionId": "7dba5874-a296-43bc-89fd-ab853121feec",
"ProcessName": "Cópia de Permissões de Usuários",
"ServerName": "GlbCopyPermisUsrProc",
"ServiceInterface": null,
"Scheduler": 1,
"UseJobMonitor": true,
"ScheduleDateTime": "2018-10-25T12:04:31.8719316-03:00",
"CanSendMail": false,
"CanWaitSchedule": false,
"SendMail": false,
"FriendlyLogs": null,
"SuccessMessage": "Processo executado com sucesso",
"FailureMessage": "Falha na execução do processo",
"SaveLogInDatabase": true,
"StatusMessage": null,
"WaitSchedule": false,
"IsolateProcess": false,
"DisableIsolateProcess": false,
"NetworkUser": "",
"CustomData": null,
"CanParallelize": true,
"ShouldParallelize": false,
"QuantityOfSplits": 0,
"MinimumQuantityOfPrimaryKeysPerProcess": 1,
"MaximumQuantityOfPrimaryKeysPerProcess": 1000,
"NotifyFluig": false,
"NotifyEmail": false,
"NotifyEmailList": null
}
}
} |
|
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Negativo Postman |
---|
| ![](/download/attachments/427049339/image2018-10-29_17-20-24.png?version=1&modificationDate=1540848024237&api=v2&effects=drop-shadow)
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Negativo |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"Code": "FE016",
"Message": "O Job 10 não foi encontrado na base de dados!",
"DetailMessage": "",
"HelpUrl": "http://tdn.totvs.com/x/e0F0GQ",
"Details": null
} |
|
|
|
|