Show TOC

Designing and Storing an Offline FormLocate this document in the navigation structure

Use

This procedure describes how you design an offline form using an XML schema and an Adobe XDP (XML Data Package) file that is bound to the XML schema. With the XML schema, you define the data structure of the form. With the XDP file, you define the form template, that is, the design of the form which is based on the XML schema.

You create the XML schema and the Adobe XDP file in the SAP NetWeaver Developer Studio in a dedicated development component (DC) called Enterprise Content Management (ECM). This ECM DC serves as a repository where you store both the XML schema and the form template. Then you use the XML Schema Editor in the Developer Studio to edit the XML schema and the Adobe LiveCycle Designer to design the form appearance.

Finally, you have to build and deploy the ECM DC to transport its content into a runtime repository and to be able to browse its content and assign the form to a task.

Prerequisites
Procedure

1. Create the ECM Development Component

  1. In the Developer Studio, choose Start of the navigation path Window Next navigation step Open Perspective  Next navigation step Other Next navigation step Development Infrastructure End of the navigation path.

  2. Expand the development configuration in which you want to create the DC.

  3. In the context menu of the software component (SC) in which you want to create the DC, choose Start of the navigation path New Next navigation step Development Component... End of the navigation path.

  4. In the dialog that appears, expand Content and choose ECM . Choose the Next pushbutton.

  5. Specify the required information such as the DC name and choose the Finish pushbutton. Choose Yes when prompted to switch to the Resource perspective.

  6. In the Project Explorer view, expand the ECM DC you have created, then expand Start of the navigation path src Next navigation step META-INF End of the navigation path and open the content.xml for editing.

    You have to specify the repository name and the folder in which you want to store the XML schema and the form template and use them at runtime. To do that, enter BPM as the repository name and Forms as the target path in the content.xml file. The result looks as follows:

                         <?xml version="1.0" encoding="UTF-8"?>
                         <!-- <!DOCTYPE ecm_content SYSTEM "ecm_content.dtd" > -->
                         <ecm_content>
     <repository name="BPM">
      <mass_import content_path="/" target_path="/Forms" />
      <!-- delete path="/" /> -->
     </repository>
    </ecm_content>
                      

2. Create and Edit the XML Schema

  1. In the Developer Studio, choose Start of the navigation path File Next navigation step New Next navigation step Other End of the navigation path.

  2. Expand the XML node and choose XML Schema . Choose the Next pushbutton.

  3. Enter a name for the XSD file and select the content folder in the ECM DC to store the XML schema. Choose the Finish pushbutton.

    The XML schema is created and is openedfor editing.

  4. Create the necessary types and elements of the XML schema.

  5. In the context menu of the XSD file, choose Properties and copy the location of the XML schema. You need to know the location of the schema when you create the form template which is based on the schema.

3. Create the Form Template

  1. In the Developer Studio, choose Start of the navigation path File Next navigation step New Next navigation step Other End of the navigation path.

  2. Expand the General node and choose File . Choose the Next pushbutton.

  3. Enter a name for the file and .xdp as the file extension.

    Recommendation

    We recommend that you use the same name for the XDP file and the XML schema, since they are bound together.

  4. Select the content folder in the ECM DC to store the XDP file. Choose the Finish pushbutton.

    The form template is created and opens for editing.

    Note

    If you have copied the XDP file, you have the option to update the licensing information of the form. Otherwise, the licensing information is not correct, since it is the same for the original and the copied form. To do that, from the context menu of the XDP file, choose Update Licensing Information .

  5. In the Adobe LiveCycle Designer, choose Start of the navigation path Edit Next navigation step New Data Connection... End of the navigation path to import the XML schema.

  6. In the wizard that appears, select the XML Schema radio button and choose the Next pushbutton.

  7. Provide the location of the XML schema you created and choose the Finish pushbutton.

    The data from the XML schema is imported and you can see it in the Data View palette in the Adobe LiveCycle Designer.

4. Design the Form Layout

  1. In the Adobe LiveCycle Designer, drag the elements from the Data View palette to the form template and arrange them in the desired way.

  2. In the Library palette, open the Standard tab page, select Button and drag it to the form template.

    Caution

    Use only the plain Button with the described configuration in form templates for BPM, as the default configuration of the other buttons cannot be modified appropriately.

    For more information about which control elements you can use, see SAP Note 1487659 Information published on SAP site.

  3. Change the control type of the button to Submit . To do that, open the Object palette and then the Field tab page and select the Submit radio button.

  4. On the Submit tab page, select PDF from the Submit Format dropdown list.

    Note

    You do not need to enter the submit URL because the BPM system prefills it at runtime. For more information about configuring e-mail send options, see Wizard-Based Configuration for Business Process Management .

  5. In the Developer Studio, choose Start of the navigation path File Next navigation step Save End of the navigation path to save the template.

5. Build and Deploy the ECM Development Component

  1. Open the Development Infrastructure perspective and locate the SC in which you have created the ECM DC.

  2. In the context menu of the ECM DC, choose Build and in the dialog that appears, choose the OK pushbutton.

    The DC is built successfully if there are no errors.

  3. In the context menu of the ECM DC, choose Deploy and in the dialog that appears, choose the OK pushbutton.

  4. Log on to the AS Java with your credentials, if prompted, to start deploying.

After building and deploying successfully the ECM DC, its content is transported into a runtime repository and you can browse it and use the form in your process. For more information, see Assigning an Offline Form to a Task .