taskInstanceCompletionEvaluatorName = task
.getTaskInstanceCompletionEvaluator();
if (taskInstanceCompletionEvaluatorName != null
&& !taskInstanceCompletionEvaluatorName.trim().equals("")) {
IBeanFactory beanFactory = runtimeContext.getBeanFactory();
taskInstanceCompletionEvaluator = (ITaskInstanceCompletionEvaluator) beanFactory
.getBean(taskInstanceCompletionEvaluatorName);
}
if (taskInstanceCompletionEvaluator == null) {
if (Task.FORM.equals(taskType)) {
taskInstanceCompletionEvaluatorName = processInstance
.getWorkflowProcess()
.getFormTaskInstanceCompletionEvaluator();
} else if (Task.TOOL.equals(taskType)) {
taskInstanceCompletionEvaluatorName = processInstance
.getWorkflowProcess()
.getToolTaskInstanceCompletionEvaluator();
} else if (Task.SUBFLOW.equals(taskType)) {
taskInstanceCompletionEvaluatorName = processInstance
.getWorkflowProcess()
.getSubflowTaskInstanceCompletionEvaluator();
}
if (taskInstanceCompletionEvaluatorName != null
&& !taskInstanceCompletionEvaluatorName.trim().equals("")) {
IBeanFactory beanFactory = runtimeContext.getBeanFactory();
taskInstanceCompletionEvaluator = (ITaskInstanceCompletionEvaluator) beanFactory
.getBean(taskInstanceCompletionEvaluatorName);
}
}
if (taskInstanceCompletionEvaluator == null) {