use of org.activiti.engine.delegate.Expression in project Activiti by Activiti.
the class IntermediateCatchSignalEventActivityBehavior method execute.
public void execute(DelegateExecution execution) {
CommandContext commandContext = Context.getCommandContext();
ExecutionEntity executionEntity = (ExecutionEntity) execution;
String signalName = null;
if (StringUtils.isNotEmpty(signalEventDefinition.getSignalRef())) {
signalName = signalEventDefinition.getSignalRef();
} else {
Expression signalExpression = commandContext.getProcessEngineConfiguration().getExpressionManager().createExpression(signalEventDefinition.getSignalExpression());
signalName = signalExpression.getValue(execution).toString();
}
commandContext.getEventSubscriptionEntityManager().insertSignalEvent(signalName, signal, executionEntity);
}
Aggregations