}
final TaskInstance taskInstance = (TaskInstance) taskInstanceValue;
if (transitionExpression != null) {
final Object transitionValue = transitionExpression.getValue(elContext);
if (transitionValue == null) {
taskInstance.end();
} else if (transitionValue instanceof Transition) {
taskInstance.end((Transition)transitionValue);
} else {
final String transitionName = transitionValue.toString();
taskInstance.end(transitionName);