Completing Task When doing API Call returns 404 assignment does not exists
Confluence User - 05 Apr, 2018
Hello All.
We are trying to do external forms for one step in the workflow, we are sending all of the needed data to that form and when we are trying to compkete the step by sending json api call to our server we always get : {"error":{"date":"Date","code":"404","message":"Assignment does not exist."}}. The way we are sending the call is
function sendComplete(activity) {
var url = "http://localhost:8080/jw/web/json/workflow/assignment/complete/";
var options = {
"method": "post",
"payload": {
"activityId": activity //the activityId that we receive when we send data to external form.
}
};
UrlFetchApp.fetch(url, options);
}
We have allowed to receive api calls from anyone. We are using Joget Workflow v6. Any Help would be greatly appreciated.
forms;api