use of org.activiti.engine.impl.el.FixedValue in project Activiti by Activiti.
the class AbstractBehaviorFactory method createFieldDeclarations.
public List<FieldDeclaration> createFieldDeclarations(List<FieldExtension> fieldList) {
List<FieldDeclaration> fieldDeclarations = new ArrayList<FieldDeclaration>();
for (FieldExtension fieldExtension : fieldList) {
FieldDeclaration fieldDeclaration = null;
if (StringUtils.isNotEmpty(fieldExtension.getExpression())) {
fieldDeclaration = new FieldDeclaration(fieldExtension.getFieldName(), Expression.class.getName(), expressionManager.createExpression(fieldExtension.getExpression()));
} else {
fieldDeclaration = new FieldDeclaration(fieldExtension.getFieldName(), Expression.class.getName(), new FixedValue(fieldExtension.getStringValue()));
}
fieldDeclarations.add(fieldDeclaration);
}
return fieldDeclarations;
}
use of org.activiti.engine.impl.el.FixedValue in project Activiti by Activiti.
the class BpmnMessagePayloadMappingProviderFactory method createFieldDeclarations.
public List<FieldDeclaration> createFieldDeclarations(List<FieldExtension> fieldList, ExpressionManager expressionManager) {
List<FieldDeclaration> fieldDeclarations = new ArrayList<FieldDeclaration>();
for (FieldExtension fieldExtension : fieldList) {
FieldDeclaration fieldDeclaration = null;
if (StringUtils.isNotEmpty(fieldExtension.getExpression())) {
fieldDeclaration = new FieldDeclaration(fieldExtension.getFieldName(), Expression.class.getName(), expressionManager.createExpression(fieldExtension.getExpression()));
} else {
fieldDeclaration = new FieldDeclaration(fieldExtension.getFieldName(), Expression.class.getName(), new FixedValue(fieldExtension.getStringValue()));
}
fieldDeclarations.add(fieldDeclaration);
}
return fieldDeclarations;
}
use of org.activiti.engine.impl.el.FixedValue in project Activiti by Activiti.
the class TestActivityBehaviorFactory method createNoOpServiceTask.
private ClassDelegate createNoOpServiceTask(ServiceTask serviceTask) {
List<FieldDeclaration> fieldDeclarations = new ArrayList<FieldDeclaration>();
fieldDeclarations.add(new FieldDeclaration("name", Expression.class.getName(), new FixedValue(serviceTask.getImplementation())));
return new ClassDelegate(NoOpServiceTask.class, fieldDeclarations);
}
Aggregations