Search in sources :

Example 1 with ServiceTaskExpressionActivityBehavior

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());
}
Also used : Expression(org.activiti.engine.delegate.Expression) ServiceTaskExpressionActivityBehavior(org.activiti.engine.impl.bpmn.behavior.ServiceTaskExpressionActivityBehavior)

Aggregations

Expression (org.activiti.engine.delegate.Expression)1 ServiceTaskExpressionActivityBehavior (org.activiti.engine.impl.bpmn.behavior.ServiceTaskExpressionActivityBehavior)1