Codota Logo
Expression
Code IndexAdd Codota to your IDE (free)

How to use
Expression
in
org.camunda.bpm.engine.delegate

Best Java code snippets using org.camunda.bpm.engine.delegate.Expression (Showing top 20 results out of 315)

  • Common ways to obtain Expression
private void myMethod () {
Expression e =
  • Codota IconExpressionManager expressionManager;String expression;expressionManager.createExpression(expression)
  • Codota Iconnew FixedValue(true)
  • Codota IconTaskDefinition taskDefinition;taskDefinition.getFormKey()
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

public void notify(DelegateExecution execution) throws Exception {
 // Return value of expression is ignored
 expression.getValue(execution);
}
origin: camunda/camunda-bpm-platform

protected int resolveLoopCardinality(ActivityExecution execution) {
 // Using Number since expr can evaluate to eg. Long (which is also the default for Juel)
 Object value = loopCardinalityExpression.getValue(execution);
 if (value instanceof Number) {
  return ((Number) value).intValue();
 } else if (value instanceof String) {
  return Integer.valueOf((String) value);
 } else {
  throw LOG.expressionNotANumberException("loopCardinality", loopCardinalityExpression.getExpressionText());
 }
}
origin: camunda/camunda-bpm-platform

 /**
  * Returns the expression text for this execution listener. Comes in handy if you want to
  * check which listeners you already have.
  */
 public String getExpressionText() {
  return expression.getExpressionText();
 }
}
origin: camunda/camunda-bpm-platform

final Object expressionValue = defaultExpression.getValue(variableScope);
if (type != null && expressionValue != null) {
 modelValue = type.convertFormValueToModelValue(expressionValue.toString());
 variableScope.setVariable(variableName, modelValue);
} else if (variableExpression != null) {
 variableExpression.setValue(modelValue, variableScope);
} else {
 variableScope.setVariable(id, modelValue);
origin: camunda/camunda-bpm-platform

/**
 * Returns the expression text for this execution listener. Comes in handy if you want to
 * check which listeners you already have.
 */
public String getExpressionText() {
 return expression.getExpressionText();
}
origin: camunda/camunda-bpm-platform

public void notify(DelegateExecution execution) throws Exception {
 // Return value of expression is ignored
 expression.getValue(execution);
}
origin: camunda/camunda-bpm-platform

protected int resolveLoopCardinality(ActivityExecution execution) {
 // Using Number since expr can evaluate to eg. Long (which is also the default for Juel)
 Object value = loopCardinalityExpression.getValue(execution);
 if (value instanceof Number) {
  return ((Number) value).intValue();
 } else if (value instanceof String) {
  return Integer.valueOf((String) value);
 } else {
  throw LOG.expressionNotANumberException("loopCardinality", loopCardinalityExpression.getExpressionText());
 }
}
origin: camunda/camunda-bpm-platform

 /**
  * Returns the expression text for this execution listener. Comes in handy if you want to
  * check which listeners you already have.
  */
 public String getExpressionText() {
  return expression.getExpressionText();
 }
}
origin: camunda/camunda-bpm-platform

public void notify(DelegateCaseExecution caseExecution) throws Exception {
 // Return value of expression is ignored
 expression.getValue(caseExecution);
}
origin: camunda/camunda-bpm-platform

protected boolean completionConditionSatisfied(ActivityExecution execution) {
 if (completionConditionExpression != null) {
  Object value = completionConditionExpression.getValue(execution);
  if (! (value instanceof Boolean)) {
   throw LOG.expressionNotBooleanException("completionCondition", completionConditionExpression.getExpressionText());
  }
  Boolean booleanValue = (Boolean) value;
  LOG.multiInstanceCompletionConditionState(booleanValue);
  return booleanValue;
 }
 return false;
}
origin: camunda/camunda-bpm-platform

/**
 * returns the expression text for this task listener. Comes in handy if you want to
 * check which listeners you already have.
 */
public String getExpressionText() {
 return expression.getExpressionText();
}
origin: camunda/camunda-bpm-platform

public void notify(DelegateCaseExecution caseExecution) throws Exception {
 // Return value of expression is ignored
 expression.getValue(caseExecution);
}
origin: camunda/camunda-bpm-platform

protected boolean completionConditionSatisfied(ActivityExecution execution) {
 if (completionConditionExpression != null) {
  Object value = completionConditionExpression.getValue(execution);
  if (! (value instanceof Boolean)) {
   throw LOG.expressionNotBooleanException("completionCondition", completionConditionExpression.getExpressionText());
  }
  Boolean booleanValue = (Boolean) value;
  LOG.multiInstanceCompletionConditionState(booleanValue);
  return booleanValue;
 }
 return false;
}
origin: camunda/camunda-bpm-platform

/**
 * returns the expression text for this execution listener. Comes in handy if you want to
 * check which listeners you already have.
 */
public String getExpressionText() {
 return expression.getExpressionText();
}
origin: camunda/camunda-bpm-platform

protected String evaluateExpression(VariableScope variableScope) {
 return (String) scriptExpression.getValue(variableScope);
}
origin: camunda/camunda-bpm-platform

protected void initializeTaskPriority(TaskEntity task, VariableScope variableScope) {
 Expression priorityExpression = taskDefinition.getPriorityExpression();
 if (priorityExpression != null) {
  Object priority = priorityExpression.getValue(variableScope);
  if (priority != null) {
   if (priority instanceof String) {
    try {
     task.setPriority(Integer.valueOf((String) priority));
    } catch (NumberFormatException e) {
     throw new ProcessEngineException("Priority does not resolve to a number: " + priority, e);
    }
   } else if (priority instanceof Number) {
    task.setPriority(((Number) priority).intValue());
   } else {
    throw new ProcessEngineException("Priority expression does not resolve to a number: " +
        priorityExpression.getExpressionText());
   }
  }
 }
}
origin: camunda/camunda-bpm-platform

 /**
  * returns the expression text for this execution listener. Comes in handy if you want to
  * check which listeners you already have.
  */  
 public String getExpressionText() {
  return expression.getExpressionText();
 }
}
origin: camunda/camunda-bpm-platform

public void notify(DelegateTask delegateTask) {
 expression.getValue(delegateTask);
}
origin: camunda/camunda-bpm-platform

protected void initializeTaskPriority(TaskEntity task, VariableScope variableScope) {
 Expression priorityExpression = taskDefinition.getPriorityExpression();
 if (priorityExpression != null) {
  Object priority = priorityExpression.getValue(variableScope);
  if (priority != null) {
   if (priority instanceof String) {
    try {
     task.setPriority(Integer.valueOf((String) priority));
    } catch (NumberFormatException e) {
     throw new ProcessEngineException("Priority does not resolve to a number: " + priority, e);
    }
   } else if (priority instanceof Number) {
    task.setPriority(((Number) priority).intValue());
   } else {
    throw new ProcessEngineException("Priority expression does not resolve to a number: " +
        priorityExpression.getExpressionText());
   }
  }
 }
}
origin: camunda/camunda-bpm-platform

 /**
  * returns the expression text for this execution listener. Comes in handy if you want to
  * check which listeners you already have.
  */  
 public String getExpressionText() {
  return expression.getExpressionText();
 }
}
org.camunda.bpm.engine.delegateExpression

Most used methods

  • getValue
  • getExpressionText
  • setValue

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now