Hi Juan,
Can you please let us know which version of wM you are using?
Also is the code in completeTask() method is some custom code or auto generated code and was it working properly before you are facing the problem.
As per my understanding after task.completeTask() methods call ,task data can not be modified.Here I can see after task.completeTask() you are trying to set taskInfo status and the apply changes.So,can you please try with removing last two statement of setting status and applyChanges.
Please find one sample completeTask() generated for my case in wM 8.2 version.
public String completeTask() {
try {
if( !getTaskView1().isUpdateable() ){
String errMsg = "You must accept a task before updating it"; //view.task.pagebean.task.accept.msg
error(errMsg);
return OUTCOME_ERROR;
}
// do the work
getTaskView1().completeTask();
// then redirect to finish url
String url = getTaskView1View().getFinishUrl();
if (url != null && url.length() > 0) {
getFacesContext().getExternalContext().redirect(url);
}
return OUTCOME_OK;
} catch (Exception e) {
error(e);
log(e);
return OUTCOME_ERROR;
}
}
Please let us know your updates regarding the same.
Thanks
Baharul Islam
#webMethods-BPMS#webMethods#MWS-CAF-Task-Engine