Description:
Add file attachment to form instance.
Usage:
Example:
Let’s build and execute the addformfileattchments example
- Create a new definition called “addfilestoformDef”
- Select the definition and click the “design” button
- Drag the above process steps to the canvas
- Connect the dots between the start and process steps as shown in the above graphic
- Click on the “routeForm” step to configure its properties. Select any existing form definition in the dropdown list. Configure the variable.formID to hold the form instance. Configure the user to route the form to.
- Click on the “addFormFileAttachments” step to configure its properties. Configure the variable.formID to hold the form instance. Select the form definition in the dropdown list. Map the file list to the file Control ID to upload during process run time.
- Click on the “getfileattachments” step to configure its properties. Configure the variable.formID to hold the form instance. Select the form definition in the dropdown list. Map the file list to the file Control ID to upload during process run time.
- Save the process definition, create a new process instance, and execute. The routeForm should submit the form and route to users and "addFormFileAttachment" step should add the file list to the form instance. The file list is fetched using the "getfileattachments"