Question in regards to invoking processes. I am new to this portion of technology and I am sure many would know how this works. We have a process in Workbench that needs to be invoked from a remote web site. The process would take one parameter.. ie an ID. The process will then query the database and send a boolean value back to the site and then this site would perform a specific operation. My question is, is there any examples out there that someone could provide that can show how this can be done? What do i need in my website (I know how to set up buttons and create OnSubmit processes and very familiar with javascript,html)? I believe somehow it can be done with SOAP or REST? Thanks very much in advance for any help.
Solved! Go to Solution.
Views
Replies
Total Likes
You just need a form in HTML with elements(e.g. textbox - string, file - document etc.) having same name as the process input parameter name and the the form action attribute should be pointing to REST URL of the process.
For example : for a process(short-lived) having REST URL : http://localhost:8080/rest/services/WatchedFolder... with one input parameter as XML and document as output variable, we'll use below HTML code :
<HTML>
<HEAD>
<TITLE> Sample Invoke REST endpoint </TITLE>
</HEAD>
<BODY>
<form action="http://localhost:8080/rest/services/WatchedFolder... method="post" enctype="multipart/form-data">
<p>Chose a file to send to the process.</p> <p>file: <input type="file" name="inputXML" /> </p> <p> <input type="submit"/> </p>
</form>
</BODY>
</HTML>
When you click on submit, the output document would be opened in the browser automatically after submission of the form.
-Wasil
Views
Replies
Total Likes
Feel free to ring me on my mobile. I will explain you step-by-step how to invoke a process from a HTML page.
Views
Replies
Total Likes
+ NINE-ONE SEVEN-SEVEN-SIX-ZERO-SIX-NINE-FOUR-FIVE-FIVE-FIVE
Views
Replies
Total Likes
You just need a form in HTML with elements(e.g. textbox - string, file - document etc.) having same name as the process input parameter name and the the form action attribute should be pointing to REST URL of the process.
For example : for a process(short-lived) having REST URL : http://localhost:8080/rest/services/WatchedFolder... with one input parameter as XML and document as output variable, we'll use below HTML code :
<HTML>
<HEAD>
<TITLE> Sample Invoke REST endpoint </TITLE>
</HEAD>
<BODY>
<form action="http://localhost:8080/rest/services/WatchedFolder... method="post" enctype="multipart/form-data">
<p>Chose a file to send to the process.</p> <p>file: <input type="file" name="inputXML" /> </p> <p> <input type="submit"/> </p>
</form>
</BODY>
</HTML>
When you click on submit, the output document would be opened in the browser automatically after submission of the form.
-Wasil
Views
Replies
Total Likes
Views
Likes
Replies