Can we publish process model as synchronous service . If yes how can we achieve that ? is this an apian best practice?
Discussion posts and replies are publicly visible
Hi Soujanya B (soujanyab0001) As per my understanding, you can publish a process model as web service, and when you make a call to the service, generally that will be a asynchronous call and hence end-user gets the processId as the response.
However, if you want to invoke a service synchronously then there is a shared-component available, you would like to have a look into, this helps you to invoke a service synchronously as per your requirement, hence you can expect your pv's to be returned as the response.
Coming to your second question, is this an Appian Best Practice? I would say, unless there is any OOTB way available to achieve a requirement, you should go for OOTB way, you should only prefer Shared-Component when the requirement is very critical and there are no ways to achieve the same in Appian OOTB. And also you should keep in mind that, the plugin must be cloud approved, else you will face an issue while deploying or developing your application into cloud server. Also you need to think about, the various Appian supported versions for this plugin.
Hope this will help you..