To manually determine which InfoPath form fields to populate with data item values, expression results, and literal values, complete the following steps:
- Check out and open the process you want to edit.
- In the Toolbox pane, click Microsoft Office. A list of activities is displayed.
- Double-click or drag the Populate InfoPath Form activity into the process.
- Link the activity appropriately with other activities in the process.
- Right-click the Populate InfoPath Form activity. A shortcut menu is displayed.
- Select View Properties. The Populate InfoPath Form window is displayed.
- Click the Input File Location tab. The corresponding screen is displayed.
- In the Input File Location field, select the appropriate input field editor and set the field to a value that is a location where the input template is stored.
Note: |
If your input template is referenced by a data item, click Design-time file and credentials and enter the valid credentials for design-time, configuration purposes. |
- In the Authentication section, select Run as BPM Server or Specify credentials.
Note: |
If you select Run as BPM Server, access will be granted or rejected based on the BPM Server credentials. If you select Specify credentials, complete the Username, Password, and Include domain fields using the appropriate input field editors. The Include domain check box is optional and requires you to enter the domain name, if selected. |
- Click the File Contents tab. The corresponding screen is displayed.
- Select the Manually Map Data Items to Form Controls check box.
- In the Target in template field, click the InfoPath Control List editor icon. A drop-down list is displayed showing the names of the fields from the template file.
- Select the required form control that you want to populate.
- In the Source field, select the appropriate input field editor and the set the field to a value with which you want to populate the form control.
Note: |
You can map more forms with data items by clicking the plus sign (+). Use the minus sign (−) to remove a mapping. |
- Click the Output Destination tab. The corresponding screen is displayed.
- In the Output File Name field, select the appropriate input field editor and set the field to a value that is a file name.
- From the If the file already exists section, select Overwrite the file or Increment the file name.
Note: |
Select Overwrite the file to replace the existing file. Select Increment the file name to append a _1, for example, to the file name the first time the process runs and sees that a file already exists. The number will increment each time the process runs and finds a file with the same name. |
- In the Output File Location field, select the appropriate input field editor and set the field to a value that is a file location where you want to store the populated InfoPath file. The location must be accessible by the Process Engine.
- In the Authentication section, select Run as BPM Server or Specify credentials.
Note: |
If you select Run as BPM Server, access will be granted or rejected based on the BPM Server credentials. If you select Specify credentials, complete the Username, Password, and Include domain fields using the appropriate input field editors. The Include domain check box is optional and requires you to enter the domain name, if selected. |
- Click OK. You configured the activity to manually determine which InfoPath form fields to populate with data item values, expression results, and literal values.