I want to start a new process instance using REST-like API.
According to jBPM Documentnation (7.5.0.Final), it's possible to use Javascript API to start a new process instance with a form.
I was able to set up a simple html page to call the jBPMFormsAPI
<head>
<script src="js/jbpm-forms-rest-integration.js"></script>
<script>
var formsAPI = new jBPMFormsAPI();
</script>
<script>
function showProcessForm() {
formsAPI.showStartProcessForm(
"http://localhost:8080/jbpm-console/",
"test-project_1.0.0",
"test-project.SampleProcess",
"myform"
);
}
</script>
</head>
<body>
<input type="button" id="showformButton"
value="Show Process Form" onclick="showProcessForm()">
<p/>
<div id="myform"></div>
</body>
However, I have 404 Not Found, when I press Show Process Form button -
Chrome Developer Tools - Network tab has the REST call:
http://localhost:8080/jbpm-console/rest/runtime/myproject_1.0/process/myprocess/startform
Was the REST API changed and documentation isn't up to date or I did something wrong?
I know what might help. On the same environment KIE Execution server has Swagger docs:
http://localhost:8080/kie-server/docs/
Does KIE Workbench has the same documentation or how to enable that?
I thought, it should have the similar URL, but I have 404 for the the URL too:
http://localhost:8080/jbmp-console/docs/