本文整理汇总了Java中org.activiti.engine.delegate.Expression.getValue方法的典型用法代码示例。如果您正苦于以下问题:Java Expression.getValue方法的具体用法?Java Expression.getValue怎么用?Java Expression.getValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.activiti.engine.delegate.Expression
的用法示例。
在下文中一共展示了Expression.getValue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getExpressionString
import org.activiti.engine.delegate.Expression; //导入方法依赖的package包/类
protected String getExpressionString(Expression expression, VariableScope variableScope)
{
if (expression != null)
{
return (String) expression.getValue(variableScope);
}
return null;
}
示例2: getStringFromField
import org.activiti.engine.delegate.Expression; //导入方法依赖的package包/类
protected String getStringFromField(Expression expression, DelegateExecution execution) {
if (expression != null) {
Object value = expression.getValue(execution);
if (value != null) {
return value.toString();
}
}
return null;
}
示例3: getStringFromField
import org.activiti.engine.delegate.Expression; //导入方法依赖的package包/类
protected String getStringFromField(Expression expression, DelegateExecution execution) {
if(expression != null) {
Object value = expression.getValue(execution);
if(value != null) {
return value.toString();
}
}
return null;
}
示例4: getExpressionVariable
import org.activiti.engine.delegate.Expression; //导入方法依赖的package包/类
/**
* Gets an expression variable from the execution. This method will return null if the expression is null (i.e. when a workflow doesn't define the
* expression).
*
* @param expression the expression variable to get.
* @param execution the execution that contains the variable value.
*
* @return the variable value or null if the expression is null.
*/
public Object getExpressionVariable(Expression expression, DelegateExecution execution)
{
return (expression == null ? null : expression.getValue(execution));
}