Feel free to ring me on my mobile. I will explain you step-by-step how to invoke a process from a HTML page.
+ NINE-ONE SEVEN-SEVEN-SIX-ZERO-SIX-NINE-FOUR-FIVE-FIVE-FIVE
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 :
<TITLE> Sample Invoke REST endpoint </TITLE>
<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>
When you click on submit, the output document would be opened in the browser automatically after submission of the form.