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
9 replies
Subscribers
7 subscribers
Views
4839 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
Hi All, I have a Process model to be exposed as a web service which has to
monikar
over 10 years ago
Hi All,
I have a Process model to be exposed as a web service which has to return process variables of that instance on calling the web service. I understand that it can only return process ID as response but no other parameters. Is there any way we can do it ? If not, is there any alternative which full fills the requirement ?
Thanks in Advance.
Regards,
Monika...
OriginalPostID-124050
OriginalPostID-124050
Discussion posts and replies are publicly visible
0
Mahesh Sanga
over 10 years ago
I think one way you can try to achieve this is by using a servlet plugin, by writing the list of pvs to Http Response.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sagarl511
A Score Level 2
over 10 years ago
Here is the link to the discussion: (Web Service API)
forum.appian.com/.../5436
Link to download component is available as an attachment to that discussion.
The attached component helps in publishing servlet plugin as webservice and use it with external system.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subhar
Certified Lead Developer
over 9 years ago
Hi Monika,
We also have similar kind of requirment.Did you get the solution for the same?
Thanks in Advance.
Subha
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ajinkyab277
Certified Lead Developer
over 9 years ago
As per my understanding the reason why this feature does not allow to return any parameter as output because
1. It launches a new process and we will be not sure when this process variable going to have value. so it is not wise to return any parameter as output.
2. But you can use callback design approach to overcome this problem.
3. Or have look on Web API OOB feature of Appian 7.9,this might help you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ajinkyab277
Certified Lead Developer
over 9 years ago
forum.appian.com/.../Web_APIs.html
here is the link for Web API documnetation.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
saravanana
over 9 years ago
@ajinkyab277, I am not sure how Web API supports to return process variable. I am not sure does it support trigger process asynchronously?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sagarl511
A Score Level 2
over 9 years ago
On of the way can be - Process variables can be returned by creating process report with process model context and setting columns with process variable data. Then setup a Web API to return data which in turn calls query analytics function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
saravanana
over 9 years ago
Web API can query data from Process reports.. but how to trigger process model in Web API either syncy or Async? Current Web API design only support get, not post or put verbs..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sagarl511
A Score Level 2
over 9 years ago
As far as I know using Web APIs it is not possible to call process model unless and until a function is created to do that. The approach which i suggested was in conjunction with calling process model as webservice and then using process id to get further data.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel