congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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