Tabnine Logo
FormRenderContextManager.fireContextSubmit
Code IndexAdd Tabnine to your IDE (free)

How to use
fireContextSubmit
method
in
org.jbpm.formModeler.api.client.FormRenderContextManager

Best Java code snippets using org.jbpm.formModeler.api.client.FormRenderContextManager.fireContextSubmit (Showing top 1 results out of 315)

origin: org.jbpm/jbpm-form-modeler-ui

public void actionSubmitForm(CommandRequest request) {
  String ctxUID = request.getRequestObject().getParameter("ctxUID");
  if (ctx == null || ctx.getUID().equals(ctxUID)) ctx = formRenderContextManager.getFormRenderContext(ctxUID);
  if (ctx == null) return;
  try {
    Form form = ctx.getForm();
    formProcessor.setValues(form, ctxUID, request.getRequestObject().getParameterMap(), request.getFilesByParamName());
    FormStatusData fsd = formProcessor.read(ctxUID);
    ctx.setErrors(fsd.getWrongFields().size());
    String persist = request.getRequestObject().getParameter("persistForm");
    if (fsd.isValid()) {
      ctx.setSubmit(true);
      if (Boolean.parseBoolean(persist)) formRenderContextManager.persistContext(ctx);
    }
    formRenderContextManager.fireContextSubmit(new FormSubmittedEvent(new FormRenderContextTO(ctx)));
  } catch (Exception e) {
    log.error("Error submitting form: ", e);
    formRenderContextManager.fireContextSubmitError(new FormSubmitFailEvent(new FormRenderContextTO(ctx), e.getMessage()));
  }
}
org.jbpm.formModeler.api.clientFormRenderContextManagerfireContextSubmit

Popular methods of FormRenderContextManager

  • getRootContext
  • getFormRenderContext
  • newContext
  • fireContextFormResize
  • fireContextSubmitError
  • persistContext
  • removeContext

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JCheckBox (javax.swing)
  • Top Vim plugins
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