Description of problem:
The whole problem seems to be that unlike the "showStartProcessForm" function, which appends "/" to hostUrl in case it's not present, the method "showTaskForm" leaves the url as it is.
Version-Release number of selected component (if applicable):
BPMS 6.1.0 DR1
Steps to Reproduce:
1. When using the jbpm-forms-rest-integration.js api to load a task form,
use URL of the form "http://localhost:8080/business-central" (i.e. without "/" at the end) as hostUrl parameter of "showTaskForm" function.
HTTP 404 - is returned from the server
The response should load the form or show proper error message with stack trace even for urls without "/" (as is the case of showProcessStartForm)
To fix this you should add a line like this to showTaskForm function:
if (hostUrl.charAt(hostUrl.length -1) != "/") hostUrl += "/";
As Jan said in the previous comment it is needed to add the "/" char at the end of the url if it is missing.
Commit (master): https://github.com/droolsjbpm/kie-wb-distributions/commit/e6f1b3155494ed0df6466fc564ded3584411ba80
Ok, now it's working. Verified with BPMS 6.1.0 DR2