Tabnine Logo
FormRepresentation.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.jbpm.form.builder.services.model.FormRepresentation

Best Java code snippets using org.jbpm.form.builder.services.model.FormRepresentation.getName (Showing top 4 results out of 315)

origin: org.jbpm/jbpm-form-services

/**
 * @param form FormRepresentation with name to be changed
 * @return true if its an update, false if it is an insert
 */
protected boolean updateFormName(FormRepresentation form) {
  if (form.getName() == null || "null".equals(form.getName()) || "".equals(form.getName())) {
    form.setName(FORM_ID_PREFIX + System.currentTimeMillis());
    return false;
  } else if (!form.getName().startsWith(FORM_ID_PREFIX)){
    form.setName(FORM_ID_PREFIX + form.getName());
    return false;
  }
  return true;
}

origin: org.jbpm/form-services

/**
 * @param form FormRepresentation with name to be changed
 * @return true if its an update, false if it is an insert
 */
protected boolean updateFormName(FormRepresentation form) {
  if (form.getName() == null || "null".equals(form.getName()) || "".equals(form.getName())) {
    form.setName(FORM_ID_PREFIX + System.currentTimeMillis());
    return false;
  } else if (!form.getName().startsWith(FORM_ID_PREFIX)){
    form.setName(FORM_ID_PREFIX + form.getName());
    return false;
  }
  return true;
}

origin: org.jbpm/form-services

@Override
public String encode(FormRepresentation form) throws FormEncodingException {
  StringBuilder builder = new StringBuilder();
  builder.append("{\n");
  builder.append("  \"name\": ").append(encodeString(form.getName())).append(",\n");
  builder.append("  \"action\": ").append(encodeString(form.getAction())).append(",\n");
  builder.append("  \"processName\": ").append(encodeString(form.getProcessName())).append(",\n");
  builder.append("  \"taskId\": ").append(encodeString(form.getTaskId())).append(",\n");
  builder.append("  \"documentation\": ").append(encodeString(form.getDocumentation())).append(",\n");
  builder.append("  \"enctype\": ").append(encodeString(form.getEnctype())).append(",\n");
  builder.append("  \"lastModified\": \"").append(form.getLastModified()).append("\",\n");
  builder.append("  \"method\": ").append(encodeString(form.getMethod())).append(",\n");
  builder.append("  \"formItems\": ").append(encodeList(form.getFormItems())).append(",\n");
  builder.append("  \"formValidations\": ").append(encodeList(form.getFormValidations())).append(",\n");
  builder.append("  \"inputs\": ").append(encodeInputs(form.getInputs())).append(",\n");
  builder.append("  \"outputs\": ").append(encodeOutputs(form.getOutputs())).append(",\n");
  builder.append("  \"onLoadScripts\": ").append(encodeList(form.getOnLoadScripts())).append(",\n");
  builder.append("  \"onSubmitScripts\": ").append(encodeList(form.getOnSubmitScripts())).append("\n");
  builder.append("}\n");
  return builder.toString();
}

origin: org.jbpm/jbpm-form-services

@Override
public String encode(FormRepresentation form) throws FormEncodingException {
  StringBuilder builder = new StringBuilder();
  builder.append("{\n");
  builder.append("  \"name\": ").append(encodeString(form.getName())).append(",\n");
  builder.append("  \"action\": ").append(encodeString(form.getAction())).append(",\n");
  builder.append("  \"processName\": ").append(encodeString(form.getProcessName())).append(",\n");
  builder.append("  \"taskId\": ").append(encodeString(form.getTaskId())).append(",\n");
  builder.append("  \"documentation\": ").append(encodeString(form.getDocumentation())).append(",\n");
  builder.append("  \"enctype\": ").append(encodeString(form.getEnctype())).append(",\n");
  builder.append("  \"lastModified\": \"").append(form.getLastModified()).append("\",\n");
  builder.append("  \"method\": ").append(encodeString(form.getMethod())).append(",\n");
  builder.append("  \"formItems\": ").append(encodeList(form.getFormItems())).append(",\n");
  builder.append("  \"formValidations\": ").append(encodeList(form.getFormValidations())).append(",\n");
  builder.append("  \"inputs\": ").append(encodeInputs(form.getInputs())).append(",\n");
  builder.append("  \"outputs\": ").append(encodeOutputs(form.getOutputs())).append(",\n");
  builder.append("  \"onLoadScripts\": ").append(encodeList(form.getOnLoadScripts())).append(",\n");
  builder.append("  \"onSubmitScripts\": ").append(encodeList(form.getOnSubmitScripts())).append("\n");
  builder.append("}\n");
  return builder.toString();
}

org.jbpm.form.builder.services.modelFormRepresentationgetName

Popular methods of FormRepresentation

  • <init>
  • getFormItems
  • setAction
  • setEnctype
  • setMethod
  • setName
  • addFormItem
  • getAction
  • getDocumentation
  • getEnctype
  • getFormValidations
  • getInputs
  • getFormValidations,
  • getInputs,
  • getLastModified,
  • getMethod,
  • getOnLoadScripts,
  • getOnSubmitScripts,
  • getOutputs,
  • getProcessName,
  • getTaskId

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • 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
  • Best plugins for Eclipse
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