/** * Checks if the value is an expression for a dynamic script source or resource. * * @param language the language of the script * @param value the value to check * @return true if the value is an expression for a dynamic script source/resource, otherwise false */ public static boolean isDynamicScriptExpression(String language, String value) { return StringUtil.isExpression(value) && (language != null && !JuelScriptEngineFactory.names.contains(language.toLowerCase())); }
/** * Checks if the value is an expression for a dynamic script source or resource. * * @param language the language of the script * @param value the value to check * @return true if the value is an expression for a dynamic script source/resource, otherwise false */ public static boolean isDynamicScriptExpression(String language, String value) { return StringUtil.isExpression(value) && (language != null && !JuelScriptEngineFactory.names.contains(language.toLowerCase())); }
protected ParameterValueProvider parsePriority(Element element, String priorityAttribute) { String priorityAttributeValue = element.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, priorityAttribute); if (priorityAttributeValue == null) { return null; } else { Object value = priorityAttributeValue; if (!StringUtil.isExpression(priorityAttributeValue)) { // constant values must be valid integers try { value = Integer.parseInt(priorityAttributeValue); } catch (NumberFormatException e) { addError("Value '" + priorityAttributeValue + "' for attribute '" + priorityAttribute + "' is not a valid number", element); } } return createParameterValueProvider(value, expressionManager); } }
protected ParameterValueProvider parsePriority(Element element, String priorityAttribute) { String priorityAttributeValue = element.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, priorityAttribute); if (priorityAttributeValue == null) { return null; } else { Object value = priorityAttributeValue; if (!StringUtil.isExpression(priorityAttributeValue)) { // constant values must be valid integers try { value = Integer.parseInt(priorityAttributeValue); } catch (NumberFormatException e) { addError("Value '" + priorityAttributeValue + "' for attribute '" + priorityAttribute + "' is not a valid number", element); } } return createParameterValueProvider(value, expressionManager); } }
if(StringUtil.isExpression(config)) {
if(StringUtil.isExpression(config)) {
if (StringUtil.isExpression(retryIntervals)) { ExpressionManager expressionManager = Context.getProcessEngineConfiguration().getExpressionManager(); Expression expression = expressionManager.createExpression(retryIntervals);
if (StringUtil.isExpression(retryIntervals)) { ExpressionManager expressionManager = Context.getProcessEngineConfiguration().getExpressionManager(); Expression expression = expressionManager.createExpression(retryIntervals);
/** * Checks if the value is an expression for a dynamic script source or resource. * * @param language the language of the script * @param value the value to check * @return true if the value is an expression for a dynamic script source/resource, otherwise false */ public static boolean isDynamicScriptExpression(String language, String value) { return StringUtil.isExpression(value) && (language != null && !JuelScriptEngineFactory.names.contains(language.toLowerCase())); }
protected ParameterValueProvider parsePriority(Element element, String priorityAttribute) { String priorityAttributeValue = element.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, priorityAttribute); if (priorityAttributeValue == null) { return null; } else { Object value = priorityAttributeValue; if (!StringUtil.isExpression(priorityAttributeValue)) { // constant values must be valid integers try { value = Integer.parseInt(priorityAttributeValue); } catch (NumberFormatException e) { addError("Value '" + priorityAttributeValue + "' for attribute '" + priorityAttribute + "' is not a valid number", element); } } return createParameterValueProvider(value, expressionManager); } }
if(StringUtil.isExpression(config)) {
if (StringUtil.isExpression(retryIntervals)) { ExpressionManager expressionManager = Context.getProcessEngineConfiguration().getExpressionManager(); Expression expression = expressionManager.createExpression(retryIntervals);