Tabnine Logo
Expression.getExpressionText
Code IndexAdd Tabnine to your IDE (free)

How to use
getExpressionText
method
in
org.activiti.engine.delegate.Expression

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

origin: Activiti/Activiti

/**
 * 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: Activiti/Activiti

/**
 * 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: Activiti/Activiti

 /**
  * 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: Activiti/Activiti

/**
 * 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: Activiti/Activiti

 /**
  * 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: Activiti/Activiti

/**
 * 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: Activiti/Activiti

/**
 * 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: Activiti/Activiti

/**
 * 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: Activiti/Activiti

protected int resolveLoopCardinality(DelegateExecution 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 new ActivitiIllegalArgumentException("Could not resolve loopCardinality expression '" + loopCardinalityExpression.getExpressionText() + "': not a number nor number String");
 }
}
origin: Activiti/Activiti

@Override
public void notify(DelegateExecution execution) {
 validateParameters();
 ScriptingEngines scriptingEngines = Context.getProcessEngineConfiguration().getScriptingEngines();
 Object result = scriptingEngines.evaluate(script.getExpressionText(), language.getExpressionText(), execution);
 if (resultVariable != null) {
  execution.setVariable(resultVariable.getExpressionText(), result);
 }
}

origin: Activiti/Activiti

protected boolean completionConditionSatisfied(DelegateExecution execution) {
 if (completionConditionExpression != null) {
  Object value = completionConditionExpression.getValue(execution);
  if (!(value instanceof Boolean)) {
   throw new ActivitiIllegalArgumentException("completionCondition '" + completionConditionExpression.getExpressionText() + "' does not evaluate to a boolean value");
  }
  Boolean booleanValue = (Boolean) value;
  if (LOGGER.isDebugEnabled()) {
   LOGGER.debug("Completion condition of multi-instance satisfied: {}", booleanValue);
  }
  return booleanValue;
 }
 return false;
}
origin: Activiti/Activiti

public void notify(DelegateTask delegateTask) {
 validateParameters();
 ScriptingEngines scriptingEngines = Context.getProcessEngineConfiguration().getScriptingEngines();
 Object result = scriptingEngines.evaluate(script.getExpressionText(), language.getExpressionText(), delegateTask, autoStoreVariables);
 if (resultVariable != null) {
  delegateTask.setVariable(resultVariable.getExpressionText(), result);
 }
}

origin: Activiti/Activiti

 public static boolean shouldSkipFlowElement(DelegateExecution execution, Expression skipExpression) {
  Object value = skipExpression.getValue(execution);

  if (value instanceof Boolean) {
   return ((Boolean) value).booleanValue();

  } else {
   throw new ActivitiIllegalArgumentException("Skip expression does not resolve to a boolean: " + skipExpression.getExpressionText());
  }
 }
}
origin: Activiti/Activiti

public static boolean shouldSkipFlowElement(CommandContext commandContext, DelegateExecution execution, String skipExpressionString) {
 Expression skipExpression = commandContext.getProcessEngineConfiguration().getExpressionManager().createExpression(skipExpressionString);
 Object value = skipExpression.getValue(execution);
 if (value instanceof Boolean) {
  return ((Boolean) value).booleanValue();
 } else {
  throw new ActivitiIllegalArgumentException("Skip expression does not resolve to a boolean: " + skipExpression.getExpressionText());
 }
}
origin: Activiti/Activiti

protected Expression getExpression(DelegateExecution execution, Expression var) {
 String variable = (String) execution.getVariable(var.getExpressionText());
 return Context.getProcessEngineConfiguration().getExpressionManager().createExpression(variable);
}
origin: Activiti/Activiti

@SuppressWarnings("rawtypes")
protected Collection resolveAndValidateCollection(DelegateExecution execution) {
 Object obj = resolveCollection(execution);
 if (collectionExpression != null) {
  if (!(obj instanceof Collection)) {
   throw new ActivitiIllegalArgumentException(collectionExpression.getExpressionText() + "' didn't resolve to a Collection");
  }
 } else if (collectionVariable != null) {
  if (obj == null) {
   throw new ActivitiIllegalArgumentException("Variable " + collectionVariable + " is not found");
  }
  if (!(obj instanceof Collection)) {
   throw new ActivitiIllegalArgumentException("Variable " + collectionVariable + "' is not a Collection");
  }
 } else {
  throw new ActivitiIllegalArgumentException("Couldn't resolve collection expression nor variable reference");
 }
 return (Collection) obj;
}
origin: Activiti/Activiti

if (taskElementProperties != null && taskElementProperties.has(DynamicBpmnConstants.SERVICE_TASK_EXPRESSION)) {
 String overrideExpression = taskElementProperties.get(DynamicBpmnConstants.SERVICE_TASK_EXPRESSION).asText();
 if (StringUtils.isNotEmpty(overrideExpression) && !overrideExpression.equals(expression.getExpressionText())) {
  expression = Context.getProcessEngineConfiguration().getExpressionManager().createExpression(overrideExpression);
origin: Activiti/Activiti

if (taskElementProperties != null && taskElementProperties.has(DynamicBpmnConstants.SERVICE_TASK_DELEGATE_EXPRESSION)) {
 String overrideExpression = taskElementProperties.get(DynamicBpmnConstants.SERVICE_TASK_DELEGATE_EXPRESSION).asText();
 if (StringUtils.isNotEmpty(overrideExpression) && !overrideExpression.equals(expression.getExpressionText())) {
  expression = Context.getProcessEngineConfiguration().getExpressionManager().createExpression(overrideExpression);
origin: org.activiti/activiti-engine

 /**
  * 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: org.activiti/activiti-engine

/**
 * 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();
}
org.activiti.engine.delegateExpressiongetExpressionText

Popular methods of Expression

  • getValue
  • setValue

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • getSystemService (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now