Expandir |
---|
Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/glb/v1/jobscheduler |
Informações |
---|
icon | false |
---|
title | Exemplo de Entrada Postman |
---|
|
|
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 |
---|
| {
"idscheduleDate": "testeapiusuario2018-10-26 23:05:00",
"metarecurrent": {true,
"resourceTypedaily": "User",{
"createdhour": "2018-09-21T16:49:57.336Z"10,
"lastModifiedminute": "2018-09-21T16:49:57.336Z"15
},
"externalIdexecution": "0001e",
"name": {
"givenNameprocessID": "TesteAPIGlbCopyPermisUsrProc",
"familyNamescheduleDate": "Usuáriostring",
},
"userNameexecutionDate": "testeapiusuariostring",
"phoneNumbers": [
{
"value"executionID": "31974964158"
}
],
"emails": [
{string",
"valuescheduleID": "[email protected]string",
"typeuser": "string",
"primaryrecurrent": true,
}
],
"active": true,
"groups": [
{
"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,
"NotifyEmailList": null
}
}
} |
|
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Positivo Postman |
---|
|
|
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": "17",
"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": "17",
"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": 17,
"ExecID": 1,
"IsPriorityJob": false,
"valueChildren": "01",[]
"display": "geral"
},
],
"titleShowReExecuteButton": "Mr"true,
"manager": [
{
"managerIdExecutionId": "017dba5874-a296-43bc-89fd-ab853121feec",
"displayNameProcessName": "Geral"
Cópia de }
]
} |
|
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Positivo Postman |
---|
| Image Removed |
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 |
---|
| {
Permissões de Usuários",
"idServerName": "testeapiusuarioGlbCopyPermisUsrProc",
"metaServiceInterface": {null,
"resourceTypeScheduler": 1,
"UserUseJobMonitor": true,
"createdScheduleDateTime": "2018-0910-21T1625T12:4904:57.336Z31.8719316-03:00",
"lastModifiedCanSendMail": "2018-09-21T16:49:57.336Z"
false,
},
"externalIdCanWaitSchedule": "0001e"false,
"nameSendMail": {false,
"givenNameFriendlyLogs": "TesteAPI"null,
"familyNameSuccessMessage": "Usuário"
Processo executado com sucesso",
},
"userNameFailureMessage": "testeapiusuarioFalha na execução do processo",
"phoneNumbers": [
{"SaveLogInDatabase": true,
"valueStatusMessage": "31974964158"null,
}
"WaitSchedule": ]false,
"emails": [
{"IsolateProcess": false,
"valueDisableIsolateProcess": "[email protected]"false,
"typeNetworkUser": "string",
"primaryCustomData": truenull,
}
],
"activeCanParallelize": true,
"groups": [
{"ShouldParallelize": false,
"valueQuantityOfSplits": "01"0,
"displayMinimumQuantityOfPrimaryKeysPerProcess": "geral"
1,
}
],
"titleMaximumQuantityOfPrimaryKeysPerProcess": "Mr"1000,
"manager": [
{"NotifyFluig": false,
"managerIdNotifyEmail": "01"false,
"displayNameNotifyEmailList": "Geral"null
}
]}
} |
|
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Negativo Postman |
---|
|
|
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": "RMSDbKeyException",
"Message": "Chave duplicada\r\n\r\nPossíveis causas:\r\n - inclusão de registro cujo valor da chave primária já existe\r\n - inclusão de registro cujo valor do índice único já existe",
"DetailMessage": " em RM.Lib.Data.DbServices.UpdateTable(DataTable table, UpdateMode mode, Boolean logOperation, String userName, Int32 batchSize) na C:\\RM\\Atual\\Release\\Lib\\RM.Lib.Data\\RMSData.cs:linha 897\r\n em RM.Lib.Data.DbServices.UpdateTable(DataTable table, UpdateMode mode, String userName, Int32 batchSize) na C:\\RM\\Atual\\Release\\Lib\\RM.Lib.Data\\RMSData.cs:linha 865\r\n em RM.Lib.Data.DbServices.QueryUpdate(DataSet dataSet, String tableName, String codUsuario) na C:\\RM\\Atual\\Release\\Lib\\RM.Lib.Data\\RMSData.cs:linha 3429\r\n em RM.Lib.Data.DbServices.QueryUpdate(DataSet dataSet, String tableName) na C:\\RM\\Atual\\Release\\Lib\\RM.Lib.Data\\RMSData.cs:linha 3423\r\n em RM.Glb.Seguranca.GlbUsuarioData.DoSaveRecord(DataSet dataSet, Int32& rowsAffected, Object ownerData) na C:\\RM\\Atual\\Release\\Glb-Globais\\RM.Glb.Seguranca.Data\\GlbUsuarioData.cs:linha 473\r\n em RM.Lib.Server.RMSDataServer.InternalSaveRecord(RMSContext context, DataSet& dataSet, Object ownerData, Boolean skipSecurity, Boolean skipSecurityCollumns) na C:\\RM\\Atual\\Release\\Lib\\RM.Lib.Server\\RMSDataServer.cs:linha 1477\r\n em RM.Lib.Server.RMSDataServer.SaveRecord(RMSContext context, DataSet& dataSet, Object ownerData) na C:\\RM\\Atual\\Release\\Lib\\RM.Lib.Server\\RMSDataServer.cs:linha 651\r\n em RM.Glb.Api.UserControllerServer.Save(String id, User record) na C:\\RM\\Atual\\Release\\Glb-Globais\\RM.Glb.Api\\UserController.Server.cs:linha 336\r\n em RM.Glb.Api.UserControllerServer.OnPost(User record) na C:\\RM\\Atual\\Release\\Glb-Globais\\RM.Glb.Api\\UserController.Server.cs:linha 269\r\n em RM.Lib.Server.RMSCrudServer`1.Post(T record) na C:\\RM\\Atual\\Release\\Lib\\RM.Lib.Server\\Api\\RMSCrudServer.cs:linha 80\r\n em RM.Lib.Api.RMSCrudController`1.OnPost(T record) na C:\\RM\\Atual\\Release\\Lib\\RM.Lib.Api\\Controllers\\RMSCrudController.cs:linha 135\r\n em RM.Lib.Api.RMSCrudController`1.Post(T record) na C:\\RM\\Atual\\Release\\Lib\\RM.Lib.Api\\Controllers\\RMSCrudController.cs:linha 125\r\n em lambda_method(Closure , Object , Object[] )\r\n em System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n em System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n em RM.Lib.Api.Server.ApiAuthenticationFilter.ResultWithChallenge.<ExecuteAsync>d__2.MoveNext() na C:\\RM\\Atual\\Release\\Lib\\RM.Lib.Api.Server\\Filters\\Api.AuthenticationFilter.cs:linha 193\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext()\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()",
"HelpUrl": null,
"Details": [
{
"Code": "Exception",
"Message": "Violation of PRIMARY KEY constraint 'PKGUSUARIO'. Cannot insert duplicate key in object 'dbo.GUSUARIO'. The duplicate key value is (testeapiusuario).\r\nThe statement has been terminated.",
"DetailMessage": null,
"HelpUrl": null,
"Details": [
{
"Code": "Exception",
"Message": "INSERT INTO [GUSUARIO] ([CODUSUARIO], [NOME], [STATUS], [DATAINICIO], [IGNORARAUTENTICACAOLDAP], [DATAEXPIRACAO], [CONFIRMABTNOK], [SENHA], [CONTROLE], [ULTIMACOLIGADA], [CODACESSO], [DTAEXPSENHA], [DIASEXPSENHA], [OBRIGAALTERARSENHA], [NUMLOGININVALIDO], [DATALOGININVALIDO], [EMAIL], [ACESSONET], [INTERNO1], [DATAULTIMOACESSO], [CODUSUARIOREDE], [DOMINIOREDE], [DATAULTIMOACESSOVALIDO], [USUARIOTWITTER], [SENHATWITTER], [USUARIOFACEBOOK], [SENHAFACEBOOK], [USUARIOLINKEDIN], [SENHALINKEDIN], [USERIDFLUIGIDENTITY], [NOMESOCIAL], [USERID], [RECCREATEDBY], [RECCREATEDON], [RECMODIFIEDBY], [RECMODIFIEDON]) VALUES ('testeapiusuario', null, 1, '08/10/2018 00:00:00', 'F', null, 1, 'jcmaAAAA', -17702, , 'Acesso01', null, , 'T', , null, '[email protected]', 'F', null, null, null, null, null, null, '\\FEz\\1B\\7F1\\18\\B7\\27', null, '\\FEz\\1B\\7F1\\18\\B7\\27', null, '\\FEz\\1B\\7F1\\18\\B7\\27', null, null, '9b69c210-8d20-45b6-afae-534ce10fd4b7', 'mestre', CONVERT ( DATETIME, CONVERT ( VARCHAR, GETDATE(), 120) ), 'mestre', CONVERT ( DATETIME, CONVERT ( VARCHAR, GETDATE(), 120) ))",
"DetailMessage": null,
"HelpUrl": null,
"Details": null
}
]
},
{
"Code": "Exception",
"Message": "INSERT INTO [GUSUARIO] ([CODUSUARIO], [NOME], [STATUS], [DATAINICIO], [IGNORARAUTENTICACAOLDAP], [DATAEXPIRACAO], [CONFIRMABTNOK], [SENHA], [CONTROLE], [ULTIMACOLIGADA], [CODACESSO], [DTAEXPSENHA], [DIASEXPSENHA], [OBRIGAALTERARSENHA], [NUMLOGININVALIDO], [DATALOGININVALIDO], [EMAIL], [ACESSONET], [INTERNO1], [DATAULTIMOACESSO], [CODUSUARIOREDE], [DOMINIOREDE], [DATAULTIMOACESSOVALIDO], [USUARIOTWITTER], [SENHATWITTER], [USUARIOFACEBOOK], [SENHAFACEBOOK], [USUARIOLINKEDIN], [SENHALINKEDIN], [USERIDFLUIGIDENTITY], [NOMESOCIAL], [USERID], [RECCREATEDBY], [RECCREATEDON], [RECMODIFIEDBY], [RECMODIFIEDON]) VALUES ('testeapiusuario', null, 1, '08/10/2018 00:00:00', 'F', null, 1, 'jcmaAAAA', -17702, , 'Acesso01', null, , 'T', , null, '[email protected]', 'F', null, null, null, null, null, null, '\\FEz\\1B\\7F1\\18\\B7\\27', null, '\\FEz\\1B\\7F1\\18\\B7\\27', null, '\\FEz\\1B\\7F1\\18\\B7\\27', null, null, '9b69c210-8d20-45b6-afae-534ce10fd4b7', 'mestre', CONVERT ( DATETIME, CONVERT ( VARCHAR, GETDATE(), 120) ), 'mestre', CONVERT ( DATETIME, CONVERT ( VARCHAR, GETDATE(), 120) ))",
"DetailMessage": null,
"HelpUrl": null,
"Details": null
}
]
} |
|
|
|
|