Hi !!
I need help ASAP
I want to implement ServiceTask using expression and variable that holds the URL. So if the variable changes, the URL changes and can be used in the ServiceTask to do the REST call.
Can someone help me with examples, if possible?
Thanks for the help !!
Hi,
You can use a Script task instead and implement the REST call in Groovy. There are examples out there:
- https://www.baeldung.com/groovy-web-services
- https://stackoverflow.com/questions/25692515/groovy-built-in-rest-http-client
- http://rest.elkstein.org/2008/02/using-rest-in-groovy.html
Hope this helps.
Hi,
You can use JavaDelegate and make rest call from that.
By Default Rest Call component is there so you can use that also.
Thanks for giving examples to use Script task. It's helped.
Actually I was trying to find a way other than Java but thank you for the inputs as I will keep that in the bucket.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.