Codota Logo
ValueFields.getTextValue2
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

protected String readObjectNameFromFields(ValueFields valueFields) {
 return valueFields.getTextValue2();
}
origin: camunda/camunda-bpm-platform

protected String readObjectNameFromFields(ValueFields valueFields) {
 return valueFields.getTextValue2();
}
origin: camunda/camunda-bpm-platform

public ObjectValue readValue(ValueFields valueFields, boolean deserializeObjectValue) {
 if(valueFields.getTextValue() != null && valueFields.getTextValue2() != null) {
  Object jpaEntity = mappings.getJPAEntity(valueFields.getTextValue(), valueFields.getTextValue2());
  return Variables.objectValue(jpaEntity).create();
 }
 return Variables.objectValue(null).create();
}
origin: camunda/camunda-bpm-platform

public ObjectValue readValue(ValueFields valueFields, boolean deserializeObjectValue) {
 if(valueFields.getTextValue() != null && valueFields.getTextValue2() != null) {
  Object jpaEntity = mappings.getJPAEntity(valueFields.getTextValue(), valueFields.getTextValue2());
  return Variables.objectValue(jpaEntity).create();
 }
 return Variables.objectValue(null).create();
}
origin: camunda/camunda-bpm-platform

@Override
public FileValue readValue(ValueFields valueFields, boolean deserializeValue) {
 FileValueBuilder builder = Variables.fileValue(valueFields.getTextValue());
 if (valueFields.getByteArrayValue() != null) {
  builder.file(valueFields.getByteArrayValue());
 }
 // to ensure the same array size all the time
 if (valueFields.getTextValue2() != null) {
  String[] split = Arrays.copyOf(valueFields.getTextValue2().split(MIMETYPE_ENCODING_SEPARATOR, NR_OF_VALUES_IN_TEXTFIELD2), NR_OF_VALUES_IN_TEXTFIELD2);
  String mimeType = returnNullIfEmptyString(split[0]);
  String encoding = returnNullIfEmptyString(split[1]);
  builder.mimeType(mimeType);
  builder.encoding(encoding);
 }
 return builder.create();
}
origin: camunda/camunda-bpm-platform

@Override
public FileValue readValue(ValueFields valueFields, boolean deserializeValue) {
 FileValueBuilder builder = Variables.fileValue(valueFields.getTextValue());
 if (valueFields.getByteArrayValue() != null) {
  builder.file(valueFields.getByteArrayValue());
 }
 // to ensure the same array size all the time
 if (valueFields.getTextValue2() != null) {
  String[] split = Arrays.copyOf(valueFields.getTextValue2().split(MIMETYPE_ENCODING_SEPARATOR, NR_OF_VALUES_IN_TEXTFIELD2), NR_OF_VALUES_IN_TEXTFIELD2);
  String mimeType = returnNullIfEmptyString(split[0]);
  String encoding = returnNullIfEmptyString(split[1]);
  builder.mimeType(mimeType);
  builder.encoding(encoding);
 }
 return builder.create();
}
origin: camunda/camunda-bpm-platform

@Test
public void testWriteMimetypeFilenameAndBytesValueWithShortcutMethod() throws URISyntaxException, UnsupportedEncodingException {
 File file = new File(this.getClass().getClassLoader().getResource("org/camunda/bpm/engine/test/standalone/variables/simpleFile.txt").toURI());
 FileValue fileValue = Variables.fileValue(file);
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(new String(valueFields.getByteArrayValue(), "UTF-8"), is("text"));
 assertThat(valueFields.getTextValue(), is("simpleFile.txt"));
 assertThat(valueFields.getTextValue2(), is("text/plain" + SEPARATOR));
}
origin: camunda/camunda-bpm-platform

@Test
public void testWriteMimetypeFilenameBytesValueAndEncoding() throws UnsupportedEncodingException {
 String filename = "test.txt";
 String mimeType = "text/json";
 Charset encoding = Charset.forName("UTF-8");
 InputStream is = this.getClass().getClassLoader().getResourceAsStream("org/camunda/bpm/engine/test/standalone/variables/simpleFile.txt");
 FileValue fileValue = Variables.fileValue(filename).mimeType(mimeType).encoding(encoding).file(is).create();
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(new String(valueFields.getByteArrayValue(), "UTF-8"), is("text"));
 assertThat(valueFields.getTextValue(), is(filename));
 assertThat(valueFields.getTextValue2(), is(mimeType + SEPARATOR + encoding.name()));
}
origin: camunda/camunda-bpm-platform

@Test
public void testWriteMimetypeFilenameAndBytesValue() throws UnsupportedEncodingException {
 String filename = "test.txt";
 String mimeType = "text/json";
 InputStream is = this.getClass().getClassLoader().getResourceAsStream("org/camunda/bpm/engine/test/standalone/variables/simpleFile.txt");
 FileValue fileValue = Variables.fileValue(filename).mimeType(mimeType).file(is).create();
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(new String(valueFields.getByteArrayValue(), "UTF-8"), is("text"));
 assertThat(valueFields.getTextValue(), is(filename));
 assertThat(valueFields.getTextValue2(), is(mimeType + SEPARATOR));
}
origin: camunda/camunda-bpm-platform

@Test
public void testWriteFilenameOnlyValue() {
 String filename = "test.txt";
 FileValue fileValue = Variables.fileValue(filename).create();
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(valueFields.getByteArrayValue(), is(nullValue()));
 assertThat(valueFields.getTextValue(), is(filename));
 assertThat(valueFields.getTextValue2(), is(nullValue()));
}
origin: camunda/camunda-bpm-platform

@Test
public void testWriteMimetypeAndFilenameValue() {
 String filename = "test.txt";
 String mimeType = "text/json";
 FileValue fileValue = Variables.fileValue(filename).mimeType(mimeType).create();
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(valueFields.getByteArrayValue(), is(nullValue()));
 assertThat(valueFields.getTextValue(), is(filename));
 assertThat(valueFields.getTextValue2(), is(mimeType + SEPARATOR));
}
origin: camunda/camunda-bpm-platform

@Test
public void testWriteFilenameAndEncodingValue() {
 String filename = "test.txt";
 String encoding = "UTF-8";
 FileValue fileValue = Variables.fileValue(filename).encoding(encoding).create();
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(valueFields.getByteArrayValue(), is(nullValue()));
 assertThat(valueFields.getTextValue(), is(filename));
 assertThat(valueFields.getTextValue2(), is(SEPARATOR + encoding));
}
origin: org.camunda.bpm/camunda-engine

protected String readObjectNameFromFields(ValueFields valueFields) {
 return valueFields.getTextValue2();
}
origin: org.camunda.bpm/camunda-engine

public ObjectValue readValue(ValueFields valueFields, boolean deserializeObjectValue) {
 if(valueFields.getTextValue() != null && valueFields.getTextValue2() != null) {
  Object jpaEntity = mappings.getJPAEntity(valueFields.getTextValue(), valueFields.getTextValue2());
  return Variables.objectValue(jpaEntity).create();
 }
 return Variables.objectValue(null).create();
}
origin: org.camunda.bpm/camunda-engine

@Test
public void testWriteMimetypeFilenameAndBytesValueWithShortcutMethod() throws URISyntaxException, UnsupportedEncodingException {
 File file = new File(this.getClass().getClassLoader().getResource("org/camunda/bpm/engine/test/standalone/variables/simpleFile.txt").toURI());
 FileValue fileValue = Variables.fileValue(file);
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(new String(valueFields.getByteArrayValue(), "UTF-8"), is("text"));
 assertThat(valueFields.getTextValue(), is("simpleFile.txt"));
 assertThat(valueFields.getTextValue2(), is("text/plain" + SEPARATOR));
}
origin: org.camunda.bpm/camunda-engine

@Test
public void testWriteMimetypeFilenameBytesValueAndEncoding() throws UnsupportedEncodingException {
 String filename = "test.txt";
 String mimeType = "text/json";
 Charset encoding = Charset.forName("UTF-8");
 InputStream is = this.getClass().getClassLoader().getResourceAsStream("org/camunda/bpm/engine/test/standalone/variables/simpleFile.txt");
 FileValue fileValue = Variables.fileValue(filename).mimeType(mimeType).encoding(encoding).file(is).create();
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(new String(valueFields.getByteArrayValue(), "UTF-8"), is("text"));
 assertThat(valueFields.getTextValue(), is(filename));
 assertThat(valueFields.getTextValue2(), is(mimeType + SEPARATOR + encoding.name()));
}
origin: org.camunda.bpm/camunda-engine

@Test
public void testWriteMimetypeFilenameAndBytesValue() throws UnsupportedEncodingException {
 String filename = "test.txt";
 String mimeType = "text/json";
 InputStream is = this.getClass().getClassLoader().getResourceAsStream("org/camunda/bpm/engine/test/standalone/variables/simpleFile.txt");
 FileValue fileValue = Variables.fileValue(filename).mimeType(mimeType).file(is).create();
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(new String(valueFields.getByteArrayValue(), "UTF-8"), is("text"));
 assertThat(valueFields.getTextValue(), is(filename));
 assertThat(valueFields.getTextValue2(), is(mimeType + SEPARATOR));
}
origin: org.camunda.bpm/camunda-engine

@Test
public void testWriteFilenameOnlyValue() {
 String filename = "test.txt";
 FileValue fileValue = Variables.fileValue(filename).create();
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(valueFields.getByteArrayValue(), is(nullValue()));
 assertThat(valueFields.getTextValue(), is(filename));
 assertThat(valueFields.getTextValue2(), is(nullValue()));
}
origin: org.camunda.bpm/camunda-engine

@Test
public void testWriteMimetypeAndFilenameValue() {
 String filename = "test.txt";
 String mimeType = "text/json";
 FileValue fileValue = Variables.fileValue(filename).mimeType(mimeType).create();
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(valueFields.getByteArrayValue(), is(nullValue()));
 assertThat(valueFields.getTextValue(), is(filename));
 assertThat(valueFields.getTextValue2(), is(mimeType + SEPARATOR));
}
origin: org.camunda.bpm/camunda-engine

@Test
public void testWriteFilenameAndEncodingValue() {
 String filename = "test.txt";
 String encoding = "UTF-8";
 FileValue fileValue = Variables.fileValue(filename).encoding(encoding).create();
 ValueFields valueFields = new MockValueFields();
 serializer.writeValue(fileValue, valueFields);
 assertThat(valueFields.getByteArrayValue(), is(nullValue()));
 assertThat(valueFields.getTextValue(), is(filename));
 assertThat(valueFields.getTextValue2(), is(SEPARATOR + encoding));
}
org.camunda.bpm.engine.impl.variable.serializerValueFieldsgetTextValue2

Popular methods of ValueFields

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

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Reference (javax.naming)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JPanel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now