The following sample request cancels a task and ends the workflow:
POST http://localhost:8080/cmx/cs/localhost-orcl-DS_UI1/task/urn:b4p2:15934?taskAction=Cancel
{
taskType: {
name:"UpdateWithApprovalWorkflow",
taskAction: [{name: "Cancel"}]
},
taskId: "urn:b4p2:15934",
owner: "manager",
title: "Smoke test task 222",
comments: "Smoke testing",
attachments: [
{
id: "TEMP_SVR1.1VDVS"
}
],
dueDate: "2015-06-15T00:00:00",
status: "OPEN",
priority: "NORMAL",
creator: "admin",
createDate: "2015-06-15T00:00:00",
updatedBy: "admin",
lastUpdateDate: "2015-06-15T00:00:00",
businessEntity: "Person",
orsId: "localhost-orcl-DS_UI1",
processId: '3685',
taskRecord: [{
businessEntity:{
name: 'Person',
key:{
rowid: '123',
systemName: '',
sourceKey: ''
}
}
}]
}