use of org.activiti.engine.impl.bpmn.behavior.ServiceTaskExpressionActivityBehavior in project Activiti by Activiti.
the class DefaultActivityBehaviorFactory method createServiceTaskExpressionActivityBehavior.
public ServiceTaskExpressionActivityBehavior createServiceTaskExpressionActivityBehavior(ServiceTask serviceTask) {
Expression expression = expressionManager.createExpression(serviceTask.getImplementation());
Expression skipExpression;
if (StringUtils.isNotEmpty(serviceTask.getSkipExpression())) {
skipExpression = expressionManager.createExpression(serviceTask.getSkipExpression());
} else {
skipExpression = null;
}
return new ServiceTaskExpressionActivityBehavior(serviceTask.getId(), expression, skipExpression, serviceTask.getResultVariableName());
}
Aggregations