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

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

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

origin: camunda/camunda-bpm-platform

protected void writeToValueFields(ObjectValue value, ValueFields valueFields, byte[] serializedValue) {
 String objectTypeName = getObjectTypeName(value, valueFields);
 valueFields.setByteArrayValue(serializedValue);
 valueFields.setTextValue2(objectTypeName);
}
origin: camunda/camunda-bpm-platform

protected void writeToValueFields(ObjectValue value, ValueFields valueFields, byte[] serializedValue) {
 String objectTypeName = getObjectTypeName(value, valueFields);
 valueFields.setByteArrayValue(serializedValue);
 valueFields.setTextValue2(objectTypeName);
}
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

@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(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: org.camunda.bpm/camunda-engine

protected void writeToValueFields(ObjectValue value, ValueFields valueFields, byte[] serializedValue) {
 String objectTypeName = getObjectTypeName(value, valueFields);
 valueFields.setByteArrayValue(serializedValue);
 valueFields.setTextValue2(objectTypeName);
}
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: 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);
 }
}
org.camunda.bpm.engine.impl.variable.serializerValueFieldssetTextValue2

Popular methods of ValueFields

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
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