Tabnine Logo
ValueFields.setTextValue
Code IndexAdd Tabnine to your IDE (free)

How to use
setTextValue
method
in
org.camunda.bpm.engine.impl.variable.serializer.ValueFields

Best Java code snippets using org.camunda.bpm.engine.impl.variable.serializer.ValueFields.setTextValue (Showing top 18 results out of 315)

origin: camunda/camunda-bpm-platform

public void writeValue(LongValue value, ValueFields valueFields) {
 final Long longValue = value.getValue();
 valueFields.setLongValue(longValue);
 if (longValue!=null) {
  valueFields.setTextValue(longValue.toString());
 }
 else {
  valueFields.setTextValue(null);
 }
}
origin: camunda/camunda-bpm-platform

public void writeValue(ObjectValue objectValue, ValueFields valueFields) {
 EntityManagerSession entityManagerSession = Context
  .getCommandContext()
  .getSession(EntityManagerSession.class);
 if (entityManagerSession == null) {
  throw new ProcessEngineException("Cannot set JPA variable: " + EntityManagerSession.class + " not configured");
 } else {
  // Before we set the value we must flush all pending changes from the entitymanager
  // If we don't do this, in some cases the primary key will not yet be set in the object
  // which will cause exceptions down the road.
  entityManagerSession.flush();
 }
 Object value = objectValue.getValue();
 if(value != null) {
  String className = mappings.getJPAClassString(value);
  String idString = mappings.getJPAIdString(value);
  valueFields.setTextValue(className);
  valueFields.setTextValue2(idString);
 } else {
  valueFields.setTextValue(null);
  valueFields.setTextValue2(null);
 }
}
origin: camunda/camunda-bpm-platform

public void writeValue(ObjectValue objectValue, ValueFields valueFields) {
 EntityManagerSession entityManagerSession = Context
  .getCommandContext()
  .getSession(EntityManagerSession.class);
 if (entityManagerSession == null) {
  throw new ProcessEngineException("Cannot set JPA variable: " + EntityManagerSession.class + " not configured");
 } else {
  // Before we set the value we must flush all pending changes from the entitymanager
  // If we don't do this, in some cases the primary key will not yet be set in the object
  // which will cause exceptions down the road.
  entityManagerSession.flush();
 }
 Object value = objectValue.getValue();
 if(value != null) {
  String className = mappings.getJPAClassString(value);
  String idString = mappings.getJPAIdString(value);
  valueFields.setTextValue(className);
  valueFields.setTextValue2(idString);
 } else {
  valueFields.setTextValue(null);
  valueFields.setTextValue2(null);
 }
}
origin: camunda/camunda-bpm-platform

public void writeValue(LongValue value, ValueFields valueFields) {
 final Long longValue = value.getValue();
 valueFields.setLongValue(longValue);
 if (longValue!=null) {
  valueFields.setTextValue(longValue.toString());
 }
 else {
  valueFields.setTextValue(null);
 }
}
origin: camunda/camunda-bpm-platform

@Override
public void writeValue(FileValue value, ValueFields valueFields) {
 byte[] data = ((FileValueImpl) value).getByteArray();
 valueFields.setByteArrayValue(data);
 valueFields.setTextValue(value.getFilename());
 if (value.getMimeType() == null && value.getEncoding() != null) {
  valueFields.setTextValue2(MIMETYPE_ENCODING_SEPARATOR + value.getEncoding());
 } else if (value.getMimeType() != null && value.getEncoding() == null) {
  valueFields.setTextValue2(value.getMimeType() + MIMETYPE_ENCODING_SEPARATOR);
 } else if (value.getMimeType() != null && value.getEncoding() != null) {
  valueFields.setTextValue2(value.getMimeType() + MIMETYPE_ENCODING_SEPARATOR + value.getEncoding());
 }
}
origin: camunda/camunda-bpm-platform

public void writeValue(StringValue variableValue, ValueFields valueFields) {
 valueFields.setTextValue(variableValue.getValue());
}
origin: camunda/camunda-bpm-platform

@Override
public void writeValue(FileValue value, ValueFields valueFields) {
 byte[] data = ((FileValueImpl) value).getByteArray();
 valueFields.setByteArrayValue(data);
 valueFields.setTextValue(value.getFilename());
 if (value.getMimeType() == null && value.getEncoding() != null) {
  valueFields.setTextValue2(MIMETYPE_ENCODING_SEPARATOR + value.getEncoding());
 } else if (value.getMimeType() != null && value.getEncoding() == null) {
  valueFields.setTextValue2(value.getMimeType() + MIMETYPE_ENCODING_SEPARATOR);
 } else if (value.getMimeType() != null && value.getEncoding() != null) {
  valueFields.setTextValue2(value.getMimeType() + MIMETYPE_ENCODING_SEPARATOR + value.getEncoding());
 }
}
origin: camunda/camunda-bpm-platform

public void writeValue(StringValue variableValue, ValueFields valueFields) {
 valueFields.setTextValue(variableValue.getValue());
}
origin: org.camunda.bpm/camunda-engine

public void writeValue(ObjectValue objectValue, ValueFields valueFields) {
 EntityManagerSession entityManagerSession = Context
  .getCommandContext()
  .getSession(EntityManagerSession.class);
 if (entityManagerSession == null) {
  throw new ProcessEngineException("Cannot set JPA variable: " + EntityManagerSession.class + " not configured");
 } else {
  // Before we set the value we must flush all pending changes from the entitymanager
  // If we don't do this, in some cases the primary key will not yet be set in the object
  // which will cause exceptions down the road.
  entityManagerSession.flush();
 }
 Object value = objectValue.getValue();
 if(value != null) {
  String className = mappings.getJPAClassString(value);
  String idString = mappings.getJPAIdString(value);
  valueFields.setTextValue(className);
  valueFields.setTextValue2(idString);
 } else {
  valueFields.setTextValue(null);
  valueFields.setTextValue2(null);
 }
}
origin: camunda/camunda-bpm-platform

public void writeValue(IntegerValue variableValue, ValueFields valueFields) {
 Integer value = variableValue.getValue();
 if (value!=null) {
  valueFields.setLongValue(((Integer) value).longValue());
  valueFields.setTextValue(value.toString());
 } else {
  valueFields.setLongValue(null);
  valueFields.setTextValue(null);
 }
}
origin: org.camunda.bpm/camunda-engine

@Override
public void writeValue(FileValue value, ValueFields valueFields) {
 byte[] data = ((FileValueImpl) value).getByteArray();
 valueFields.setByteArrayValue(data);
 valueFields.setTextValue(value.getFilename());
 if (value.getMimeType() == null && value.getEncoding() != null) {
  valueFields.setTextValue2(MIMETYPE_ENCODING_SEPARATOR + value.getEncoding());
 } else if (value.getMimeType() != null && value.getEncoding() == null) {
  valueFields.setTextValue2(value.getMimeType() + MIMETYPE_ENCODING_SEPARATOR);
 } else if (value.getMimeType() != null && value.getEncoding() != null) {
  valueFields.setTextValue2(value.getMimeType() + MIMETYPE_ENCODING_SEPARATOR + value.getEncoding());
 }
}
origin: camunda/camunda-bpm-platform

public void writeValue(IntegerValue variableValue, ValueFields valueFields) {
 Integer value = variableValue.getValue();
 if (value!=null) {
  valueFields.setLongValue(((Integer) value).longValue());
  valueFields.setTextValue(value.toString());
 } else {
  valueFields.setLongValue(null);
  valueFields.setTextValue(null);
 }
}
origin: camunda/camunda-bpm-platform

public void writeValue(ShortValue value, ValueFields valueFields) {
 Short shortValue = value.getValue();
 if (shortValue != null) {
  valueFields.setLongValue(shortValue.longValue());
  valueFields.setTextValue(value.toString());
 } else {
  valueFields.setLongValue(null);
  valueFields.setTextValue(null);
 }
}
origin: camunda/camunda-bpm-platform

public void writeValue(ShortValue value, ValueFields valueFields) {
 Short shortValue = value.getValue();
 if (shortValue != null) {
  valueFields.setLongValue(shortValue.longValue());
  valueFields.setTextValue(value.toString());
 } else {
  valueFields.setLongValue(null);
  valueFields.setTextValue(null);
 }
}
origin: org.camunda.bpm/camunda-engine

public void writeValue(LongValue value, ValueFields valueFields) {
 final Long longValue = value.getValue();
 valueFields.setLongValue(longValue);
 if (longValue!=null) {
  valueFields.setTextValue(longValue.toString());
 }
 else {
  valueFields.setTextValue(null);
 }
}
origin: org.camunda.bpm/camunda-engine

public void writeValue(StringValue variableValue, ValueFields valueFields) {
 valueFields.setTextValue(variableValue.getValue());
}
origin: org.camunda.bpm/camunda-engine

public void writeValue(IntegerValue variableValue, ValueFields valueFields) {
 Integer value = variableValue.getValue();
 if (value!=null) {
  valueFields.setLongValue(((Integer) value).longValue());
  valueFields.setTextValue(value.toString());
 } else {
  valueFields.setLongValue(null);
  valueFields.setTextValue(null);
 }
}
origin: org.camunda.bpm/camunda-engine

public void writeValue(ShortValue value, ValueFields valueFields) {
 Short shortValue = value.getValue();
 if (shortValue != null) {
  valueFields.setLongValue(shortValue.longValue());
  valueFields.setTextValue(value.toString());
 } else {
  valueFields.setLongValue(null);
  valueFields.setTextValue(null);
 }
}
org.camunda.bpm.engine.impl.variable.serializerValueFieldssetTextValue

Popular methods of ValueFields

  • getByteArrayValue
  • getTextValue
  • getTextValue2
  • setByteArrayValue
  • getDoubleValue
  • getLongValue
  • getName
  • setDoubleValue
  • setLongValue
  • setTextValue2

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • CodeWhisperer alternatives
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