02-05-2021 07:58 AM
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!
02-06-2021 06:28 PM
02-05-2021 08:26 AM
Hi @tlosada
This is this Alfresco API tutorial, with plenty of example, of using the APIs.
HTH,
02-05-2021 09:24 AM
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!
02-06-2021 06:28 PM
02-08-2021 08:35 AM
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:
Explore our Alfresco products with the links below. Use labels to filter content by product module.