Good afternoon! I am trying to communicate from Alfresco to a RESTful ws from a workflow. Somebody told me that it will be a good idea to use connector to acomplish that. I am creating a wf in ACS as a .bpmn file, so 3 questions:
var url = "https://google.com";
var xhr = new XMLHttpRequest();
xhr.open("GET", url);
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
console.log(xhr.status);
console.log(xhr.responseText);
}};
xhr.send();
Can I use the connector directly from the .bpmn file? Could you give me an example on how to use it?
Could you give me an example to make a GET and a POST call?
Thanks in advance!
Solved! Go to Solution.
Hi @tlosada
This is this Alfresco API tutorial, with plenty of example, of using the APIs.
HTH,
Thanks for the quick response, but I need specifically to trigger this API call from a workflow and there is nothing about that in the tutorial. Could you please answer my 3 questions? Thank you very much and best regards!
Thank you very much and excuse me for all of my questions. I am new to Alfresco and not a developer jeje.
This is the answer I wanted! More on this video:
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.