本文整理汇总了Java中org.activiti.engine.impl.el.FixedValue类的典型用法代码示例。如果您正苦于以下问题:Java FixedValue类的具体用法?Java FixedValue怎么用?Java FixedValue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FixedValue类属于org.activiti.engine.impl.el包,在下文中一共展示了FixedValue类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: validateFieldDeclarationsForShell
import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
protected void validateFieldDeclarationsForShell(Element serviceTaskElement, List<FieldDeclaration> fieldDeclarations) {
boolean shellCommandDefined = false;
for (FieldDeclaration fieldDeclaration : fieldDeclarations) {
String fieldName = fieldDeclaration.getName();
FixedValue fieldFixedValue = (FixedValue) fieldDeclaration.getValue();
String fieldValue = fieldFixedValue.getExpressionText();
shellCommandDefined |= fieldName.equals("command");
if ((fieldName.equals("wait") || fieldName.equals("redirectError") || fieldName.equals("cleanEnv")) && !fieldValue.toLowerCase().equals("true")
&& !fieldValue.toLowerCase().equals("false")) {
addError("undefined value for shell " + fieldName + " parameter :" + fieldValue.toString(), serviceTaskElement);
}
}
if (!shellCommandDefined) {
addError("No shell command is defined on the shell activity", serviceTaskElement);
}
}
示例2: parseStringFieldDeclaration
import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
protected FieldDeclaration parseStringFieldDeclaration(Element fieldDeclarationElement, Element serviceTaskElement, String fieldName) {
try {
String fieldValue = getStringValueFromAttributeOrElement("stringValue", "string", fieldDeclarationElement);
if (fieldValue != null) {
return new FieldDeclaration(fieldName, Expression.class.getName(), new FixedValue(fieldValue));
}
} catch (ActivitiException ae) {
if (ae.getMessage().contains("multiple elements with tag name")) {
addError("Multiple string field declarations found", serviceTaskElement);
} else {
addError("Error when paring field declarations: " + ae.getMessage(), serviceTaskElement);
}
}
return null;
}
示例3: createNoOpServiceTask
import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
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);
}
示例4: getSomeField
import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
public FixedValue getSomeField() {
return someField;
}
示例5: setSomeField
import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
public void setSomeField(FixedValue someField) {
this.someField = someField;
}
示例6: getSomeField
import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
public FixedValue getSomeField() {
return someField;
}
示例7: setSomeField
import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
public void setSomeField(FixedValue someField) {
this.someField = someField;
}