The main workflow gets triggered when the user submits the initial form (RefinanceForm).
Store Forms To Sign is a custom process step.
The motivation for implementing a custom process step is to extend an AEM Workflow. The following code implements a custom process step. The code extracts the names of the forms to sign and passes the submitted form data to the insertData method in the SignMultipleForms service. The insertData method then inserts the rows in the database identified by the data source aemformstutorial.