10-21-2009 03:20 AM
function main()
{
// Task ID
var taskId = url.templateArgs.taskId;
if (taskId === undefined)
{
status.setCode(status.STATUS_BAD_REQUEST, "TaskID missing when ending task.");
return;
}
// Check TaskId is valid
var task = workflow.getTask(taskId);
if (task === null)
{
status.setCode(status.STATUS_BAD_REQUEST, "Invalid TaskID when ending task.");
return;
}
model.taskId = taskId;
// Optional Transition ID
var transitionId = url.templateArgs.transitionId;
if (transitionId === undefined)
{
transitionId = null;
}
task.properties["bpm:comment"] = "test"
model.transitionId = transitionId;
task.endTask(transitionId);
}
main();
10-21-2009 04:03 AM
10-21-2009 04:30 AM
10-21-2009 05:22 AM
10-22-2009 07:21 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.