Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
915811fa
Commit
915811fa
authored
Jan 06, 2025
by
Sonawane Amol Madhjuar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace E12WorkFlowServiceUtility.java
parent
f6767720
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
Amol/Proteus_lib/E12WorkFlowServiceUtility.java
Amol/Proteus_lib/E12WorkFlowServiceUtility.java
+12
-4
No files found.
Amol/Proteus_lib/E12WorkFlowServiceUtility.java
View file @
915811fa
...
...
@@ -31,7 +31,7 @@ public class E12WorkFlowServiceUtility extends RestAPIServiceUtility
public
String
invokeWorkFlow
(
String
objName
,
String
refId
,
String
refSer
,
String
tokenIDfromHeader
)
throws
ServletException
,
IOException
{
// TODO Auto-generated method stub
BaseLogger
.
log
(
"3"
,
null
,
null
,
"
Service
mehtod Called --->>>"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"
invokeWorkFlow
mehtod Called --->>>"
);
UserInfoBean
userInfo
=
null
;
PreparedStatement
stmt
=
null
;
...
...
@@ -149,7 +149,7 @@ public class E12WorkFlowServiceUtility extends RestAPIServiceUtility
catch
(
Exception
e
)
{
jsonResponse
.
put
(
"Status :"
,
"Error"
);
jsonResponse
.
put
(
"
r
esponse :"
,
e
.
getMessage
());
jsonResponse
.
put
(
"
R
esponse :"
,
e
.
getMessage
());
BaseLogger
.
log
(
"3"
,
userInfo
,
null
,
" Exception::[ "
+
e
.
getMessage
()+
" ] "
);
return
jsonResponse
.
toString
();
...
...
@@ -182,7 +182,7 @@ public class E12WorkFlowServiceUtility extends RestAPIServiceUtility
BaseLogger
.
log
(
"3"
,
userInfo
,
null
,
"Inside the else block..... "
);
//JSONObject jsonResponse = new JSONObject();
jsonResponse
.
put
(
"Status"
,
"error"
);
jsonResponse
.
put
(
"
Messag
e"
,
"ERR_MSG: Workflow is already initiated for this transaction"
);
jsonResponse
.
put
(
"
Respons
e"
,
"ERR_MSG: Workflow is already initiated for this transaction"
);
String
jsonResponseString
=
jsonResponse
.
toString
();
BaseLogger
.
log
(
"3"
,
userInfo
,
null
,
"CommonConstants.ENCODING ["
+
CommonConstants
.
ENCODING
+
"] errMsg ["
+
jsonResponseString
+
"]"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
" Json Response:: ["
+
jsonResponseString
+
"]"
);
...
...
@@ -204,10 +204,18 @@ public class E12WorkFlowServiceUtility extends RestAPIServiceUtility
catch
(
SQLException
sqe
)
{
sqe
.
printStackTrace
();
jsonResponse
.
put
(
"Status :"
,
"Error"
);
jsonResponse
.
put
(
"Response :"
,
sqe
.
getMessage
());
BaseLogger
.
log
(
"3"
,
userInfo
,
null
,
" Exception case 1::[ "
+
sqe
.
getMessage
()+
" ] "
);
return
jsonResponse
.
toString
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
jsonResponse
.
put
(
"Status :"
,
"Error"
);
jsonResponse
.
put
(
"Response :"
,
e
.
getMessage
());
BaseLogger
.
log
(
"3"
,
userInfo
,
null
,
" Exception case 2::[ "
+
e
.
getMessage
()+
" ] "
);
return
jsonResponse
.
toString
();
}
finally
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment