Created
July 3, 2020 19:22
-
-
Save mukasc/3700667cf300f4bb7992ddeea948c2b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sem parm | |
main program = true | |
call protocol = HTTP | |
java try{ | |
TEC_AnnaGravaLog.Call('ANNAINTEGRATIONLOG','',&Pgmname+ ' / "CALLBACK"') | |
&AuxVar = &HttpRequest.GetVariable(!"CALLBACK") | |
&CallBackCollection.FromJson(&AuxVar) | |
if &CallBackCollection.Count = 0 | |
&Ret = format(!'%1: CallBackCollection não foi recebido (&AuxVar= %2)', &Pgmname, &AuxVar) | |
TEC_AnnaGravaLog.Call('ANNAINTEGRATIONLOG','',&Pgmname+ ' / '+&Ret) | |
else | |
for &CallBack in &CallBackCollection | |
TEC_AnnaGravaLog.Call('ANNAINTEGRATIONLOG','',&Pgmname+ ' / '+&CallBack) | |
endfor | |
endif | |
java } catch (Exception ex){ | |
java java.io.StringWriter sw = new java.io.StringWriter(); | |
java ex.printStackTrace(new java.io.PrintWriter(sw)); | |
java [!&Ret!] = "(try catch): " + ex.getMessage() + ": " + sw.toString(); | |
TEC_AnnaGravaLog.Call('ANNAINTEGRATIONLOG','',&Pgmname+ ' / '+&Ret) | |
java } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment