public void unlockTaskInstance(final long taskInstanceId) {
if (taskInstanceId != 0) {
getJbpmTemplate().execute(new JbpmCallback() {
public Object doInJbpm(JbpmContext jbpmContext) throws JbpmException {
TaskInstance ti = getTaskInstance(taskInstanceId);
ti.suspend();
jbpmContext.save(ti);
return null;
}
});
}