Creating a Java web application that invokes a human-centric long-lived process

You can create a web-based application that uses a Java servlet to invoke the FirstAppSolution/PreLoanProcess process. To invoke this process from a Java servlet, use the Invocation API within the Java servlet. (See Invoking AEM Forms using the Java API.)

The following illustration shows a web-based client application that posts name, phone (or email), and amount values. These values are sent to the Java servlet when the user clicks the Submit Application button.

The Java servlet performs the following tasks:

  • Retrieves the values posted from the HTML page to the Java servlet.
  • Dynamically creates an XML data source to pass to the* FirstAppSolution/PreLoanProcess *process. The name, phone (or email), and amount values are specified in the XML data source.
  • Invokes the FirstAppSolution/PreLoanProcess process by using the AEM Forms Invocation API.
  • Returns the invocation identifier value to the client web browser.

Summary of steps

To create a Java web-based application that invokes the FirstAppSolution/PreLoanProcess process, perform the following steps:

NOTE
Some of these steps depend on the J2EE application on which AEM Forms is deployed. For example, the method you use to deploy a WAR file depends on the J2EE application server that you are using. It is assumed that AEM Forms is deployed on JBoss®.