You use this procedure to create a schema-based composite form object that utilizes a pre-filling service for retrieval of the current user’s details. The form is configured as a step in Guided Procedures (GP) and has dynamic properties.
You have created a pre-filling service as described in Configuring Pre-Filling Services.
1. Launch the GP design time, and choose Create Composite Form from the contextual navigation panel.
2. Enter the required data for the new form:
¡ Name – for example, Benefits Distribution
○ Description – for example, Social benefits distribution form
○ Original Language – for example, English
○ Folder – select the folder of the tutorial, for example, My First Composite Form
○ For the template type, select PDF Template.
In this example, we use the local Java persistence to store the template. For this purpose, you should first configure the Java back end and its connection to the Adobe Document Services.
More information: Configuring Forms with Java Back End
¡ As the use type, select Schema-Based Template, since you are going to generate the form schema from the form context.
3. Choose Next.
4. On the Pre-Processing screen, choose Add Service.
Browse the folders in the gallery to locate the Read User Info callable object you created previously.
More information: Configuring Pre-Filling Services
5. To add the callable object, select it and then choose Select.
6. Build the form context.
On the Build Form Context tab page, select the parameters User Data and Unique ID from the pre-filling service and add them to the form context.
7. Map service parameters to the parameters of the form.
You do not need to map service input parameters, since the Read User Info callable object uses the current user details as input. However, you must map the output parameters so that the form receives as input the data from the pre-filling service.
On the Map Output Parameters tab page, map the following output parameters:
¡ User Data – map automatically since structures are identical
¡ Unique ID
Mapping Service Output Parameters
8. On the Additional Fields screen, add the following form parameters:
Additional Form Context Parameters
Context Parameter |
Technical Name |
Type |
Medical Services |
medical |
String |
Education Assistance |
education |
String |
Dependent Care |
dependent |
String |
Unemployment Insurance |
unemployment |
String |
Retirement Account |
pension |
String |
Date |
date |
Date |
Comment |
comment |
String |
You use these parameters in the next step, where you design the layout of the schema-based form template.
9. Based on the form context you have built in the previous two steps, you can design and configure a schema-based form template using the Adobe LiveCycle Designer.
More information: Designing the Form Template Layout
10. To make the form available in Guided Procedures, on the Configuration screen:
○ Set the Enable Use in Guided Procedures indicator.
○ Set the Dynamic Form indicator, since the form designed in the tutorial has dynamic properties.
11. On the Finish screen, choose Finish and Open.
12. Save and activate the form.
Once you have created the form object, you can expose it as a callable object and include it in the GP process flow.
More information: Modeling the Composite Form Activity