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
5 replies
Subscribers
7 subscribers
Views
1831 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi All, I want to write a Smart Service which can interact witht the
saratrk
over 11 years ago
Hi All,
I want to write a Smart Service which can interact witht the database and update records. (Write to Data Store Entity already exists but i want to customize the similar functionality)
I have searched a lot in
forum.appian.com/.../
but couldnt find the relavant package.
Can anybody help me regarding this ?...
OriginalPostID-78183
OriginalPostID-78183
Discussion posts and replies are publicly visible
0
Alex Weller
Appian Employee
over 11 years ago
Hi Sarat, here is our documentation on the subject:
forum.appian.com/.../Custom_Smart_Service_Plug-ins
May I ask what your use case is? Maybe we can identify a simpler approach.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 11 years ago
If you are looking for a SQL based one, you may want to look into Query Database node that allows you to execute your SQL statements. This should cover the breadth of any SQL interactions you might require.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
saratrk
over 11 years ago
alex & sathya thank you both for the response.
Alex: I am aware of that documentation but my query was reg the package / classes / functions that can help me in writing custom smart service.
Sathya: I am looking some thing beyond Query Database, it will be helpful if you can give me classes or interfaces that i use to customize similar functionality.
Here is my scenario:
I want to write a smart service which takes “Data Store Entity” name (existing) , “DB Operation” i.e, (insert/update/delete) and “field” (upon which the operation to be performed in the table), condition (<, >, = value) as inputs and performs respective operation on the targetted table in the database.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 11 years ago
I still wouldn't recommend creating a custom smart service for your requirement. You should be able to build a process in order to address your requirement. To the best of my knowledge (I may stay corrected), data store API's are not exposed as public API's. What you need to do is write your own logic to use JNDI context. This will serve you no better than using the Query database node.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Lonsdale
over 11 years ago
If you're using an Oracle database you could use the Stored Procedure plugin to pass whatever you need to the database and perform the required action there.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel