I would like to create a web form where one of our Sales persons can upload a document with a form as attachment. For example, he fills in his name and a file.
You will need to create a custom JSP. Below are the high level steps that you can follow in your jsp for achieving this requirement:
- In custom the jsp, Upload the File to the local server where Adeptia is running.
- Create a File Source activity having the same File Path where this File is placed.
- Use the same File Source in the Process Flow that shall be triggered after form is submitted.
- Set the Entity ID of Process Flow in the JSP using the code that needs to be executed. Refer attachment for more details.
- Create a mapping activity that will set all the form or other values in context and can be fetched from thecontext at process flow runtime. In the attached file we have taken the example of FileName.
- In the JSP, set the Source File Name in the Context Map and that can be used in Process Flow by Overriding File name of File Source activity.
- The Last statement in the attached File will Execute the Process Flow whose Entity ID is set in "processFlowTransID".