Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
5 subscribers
Views
1705 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Smart Service is using deprecated API
natasav
over 7 years ago
Hi ,
we have some smart service that is used to unlock document, part of some KC, that were lock more that 2 hours. We did a health check using available action on the forum and we find out following remark about it:
Document Unlocker (documentunlocker) references deprecated Appian APIs
[deprecated] com.appiancorp.suiteapi.common.ServiceLocator.getAdministratorServiceContext()
I am not the one that design this plugin, so I need help. Could you give me an suggestion how to replace that API with some support API and make still useful for the Appian platform?
OriginalPostID-230186
Discussion posts and replies are publicly visible
Parents
0
abhi.jana
Appian Employee
over 7 years ago
The recommendation would be to use a user context rather than the admin service context. You can replace ServiceLocator.getAdministratorServiceContext() with WebServiceContextFactory.getServiceContext(<INSERT_USERNAME_HERE>);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
abhi.jana
Appian Employee
over 7 years ago
The recommendation would be to use a user context rather than the admin service context. You can replace ServiceLocator.getAdministratorServiceContext() with WebServiceContextFactory.getServiceContext(<INSERT_USERNAME_HERE>);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data