getJbpmTemplate().execute(new JbpmCallback() {
public Object doInJbpm(JbpmContext jbpmContext) throws JbpmException {
TaskInstance taskInstance = getTaskInstance(taskInstanceId);
if (taskInstance != null) {
if (taskInstance.getStart() == null && !taskInstance.isCancelled() && !taskInstance.hasEnded()) {
taskInstance.start(actor);
// loggingUtils.log("started " + taskInstanceId + " with actor " + actor);
}
} else {
// loggingUtils.log("task instance " + taskInstanceId + "is null! ");
}