congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FixedValue
Code IndexAdd Tabnine to your IDE (free)

How to use
FixedValue
in
org.camunda.bpm.engine.impl.el

Best Java code snippets using org.camunda.bpm.engine.impl.el.FixedValue (Showing top 20 results out of 315)

origin: camunda/camunda-bpm-platform

public Object getValue(VariableScope variableScope, BaseDelegateExecution contextExecution) {
 return getValue(variableScope);
}
origin: camunda/camunda-bpm-platform

public Object defaultManualActivation() {
 Expression expression = new FixedValue(true);
 CaseControlRuleImpl caseControlRule = new CaseControlRuleImpl(expression);
 return caseControlRule;
}
origin: camunda/camunda-bpm-platform

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);
 }
}
origin: camunda/camunda-bpm-platform

public Object defaultManualActivation() {
 Expression expression = new FixedValue(true);
 CaseControlRuleImpl caseControlRule = new CaseControlRuleImpl(expression);
 return caseControlRule;
}
origin: camunda/camunda-bpm-platform

public Object getValue(VariableScope variableScope, BaseDelegateExecution contextExecution) {
 return getValue(variableScope);
}
origin: camunda/camunda-bpm-platform

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);
 }
}
origin: camunda/camunda-bpm-platform

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 (ProcessEngineException 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;
}
origin: org.camunda.bpm/camunda-engine

public Object getValue(VariableScope variableScope, BaseDelegateExecution contextExecution) {
 return getValue(variableScope);
}
origin: org.camunda.bpm/camunda-engine

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);
 }
}
origin: camunda/camunda-bpm-platform

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 (ProcessEngineException 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;
}
origin: camunda/camunda-bpm-platform

public void notify(DelegateExecution execution) throws Exception {
 ExecutionEntity executionCasted = ((ExecutionEntity)execution);
 String parameterValue = null;
 if (parameter != null) {
  parameterValue = (String)parameter.getValue(execution);
 }
 String activityName = null;
 if (executionCasted.getActivity() != null) {
  activityName = executionCasted.getActivity().getProperties().get(new PropertyKey<String>("name"));
 }
 recordedEvents.add( new RecordedEvent(
         executionCasted.getActivityId(),
         activityName,
         execution.getEventName(),
         parameterValue,
         execution.getActivityInstanceId(),
         execution.getCurrentTransitionId(),
         execution.isCanceled(),
         execution.getId()));
}
origin: camunda/camunda-bpm-platform

public Object defaultManualActivation() {
 Expression expression = new FixedValue(true);
 CaseControlRuleImpl caseControlRule = new CaseControlRuleImpl(expression);
 return caseControlRule;
}
origin: berndruecker/flowing-retail

@Override
public void execute(DelegateExecution context) throws Exception {
 String traceId = context.getProcessBusinessKey();
 String eventNameString = null;
 if (eventName!=null && eventName.getValue(context)!=null) {
  eventNameString = (String) eventName.getValue(context);
 } else {
  // if not configured we use the element id from the flow definition as default
  eventNameString = context.getCurrentActivityId();
 }
 
 messageSender.send(new Message<String>( //
   eventNameString, //
   traceId, //
   null)); // no payload at the moment
}
origin: camunda/camunda-bpm-platform

protected FixedValue getFixedValue(CamundaField field) {
 CamundaString strg = field.getCamundaString();
 String value = null;
 if (strg != null) {
  value = strg.getTextContent();
 }
 if (value == null) {
  value = field.getCamundaStringValue();
 }
 if (value != null) {
  return new FixedValue(value);
 }
 return null;
}
origin: org.camunda.bpm/camunda-engine

public void notify(DelegateExecution execution) throws Exception {
 ExecutionEntity executionCasted = ((ExecutionEntity)execution);
 String parameterValue = null;
 if (parameter != null) {
  parameterValue = (String)parameter.getValue(execution);
 }
 String activityName = null;
 if (executionCasted.getActivity() != null) {
  activityName = executionCasted.getActivity().getProperties().get(new PropertyKey<String>("name"));
 }
 recordedEvents.add( new RecordedEvent(
         executionCasted.getActivityId(),
         activityName,
         execution.getEventName(),
         parameterValue,
         execution.getActivityInstanceId(),
         execution.getCurrentTransitionId(),
         execution.isCanceled(),
         execution.getId()));
}
origin: camunda/camunda-bpm-platform

protected FixedValue getFixedValue(CamundaField field) {
 CamundaString strg = field.getCamundaString();
 String value = null;
 if (strg != null) {
  value = strg.getTextContent();
 }
 if (value == null) {
  value = field.getCamundaStringValue();
 }
 if (value != null) {
  return new FixedValue(value);
 }
 return null;
}
origin: org.camunda.bpm/camunda-engine

public Object defaultManualActivation() {
 Expression expression = new FixedValue(true);
 CaseControlRuleImpl caseControlRule = new CaseControlRuleImpl(expression);
 return caseControlRule;
}
origin: org.camunda.bpm/camunda-engine

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 (ProcessEngineException 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;
}
origin: org.camunda.bpm/camunda-engine

public Object defaultManualActivation() {
 Expression expression = new FixedValue(true);
 CaseControlRuleImpl caseControlRule = new CaseControlRuleImpl(expression);
 return caseControlRule;
}
origin: org.camunda.bpm/camunda-engine

protected FixedValue getFixedValue(CamundaField field) {
 CamundaString strg = field.getCamundaString();
 String value = null;
 if (strg != null) {
  value = strg.getTextContent();
 }
 if (value == null) {
  value = field.getCamundaStringValue();
 }
 if (value != null) {
  return new FixedValue(value);
 }
 return null;
}
org.camunda.bpm.engine.impl.elFixedValue

Javadoc

Expression that always returns the same value when getValue is called. Setting of the value is not supported.

Most used methods

  • getValue
  • <init>
  • getExpressionText

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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