anchor.diff:  									No
   
   |===
  +
  +NOTE: The `Document` form field requires additional setup to be accessed from the relevant forms and processes. For information about enabling document attachments, see <<_enabling_document_attachments_in_forms>>.
   
   ``Complex field types`` are designed for work with properties that are not basic types but Java objects.
   To use these field types, it is necessary to create extra forms in order to display and write values to the specified Java objects.
  
positive.code: This inserts your subform containing an array of Java objects inside the parent form.
  
  
  [id='_attaching_documents_to_a_form']
  === Attaching Documents to a Form
  
  
  Red Hat JBoss BPM Suite enables you to attach documents to a form by using the `Document` form field. To attach a `Document` field to a form, you need to:
  
  * Set the marshalling strategy.
  * Create a document variable.
  * Map the task inputs and outputs correctly to the variable.
  
  .Setting the Marshalling Strategy
  . Set the marshalling strategy in the `_PROJECT_HOME_/META_INF/kie-deployment-descriptor.xml`. You can do so in the {CENTRAL} or by editing the file directly. In {CENTRAL}:
  
  .. In {CENTRAL}, go to *Menu -> Design -> Projects* and click the project name. For example, *Evaluation*.
   .. Click *Settings*.
   .. Click *Project Settings: Project General Settings* -> *Deployment descriptor*.
  .. Under *Marshalling strategies*, click *Add*.
  .. In the *Value* field, click on *Enter Value* and enter: `org.jbpm.document.marshalling.DocumentMarshallingStrategy`.
  .. Set *Resolver type* to *reflection*.
  .. Click *Save* and *Validate* to ensure correctness of your deployment descriptor file.
  +
  Alternatively, if you want to edit `kie-deployment-descriptor.xml` directly, add the `<marshalling-strategies>` tag:
  +
  [source,xml]
  ----
  
negative.code:     </marshalling-strategy>
    </marshalling-strategies>
  ----
  
  .Create a Document Variable in the Process
  After you set the document marshalling strategy, create a document variable in the related process. This variable is required for the document to be visible in the *Documents* tab of the *Process Management* -> *Process Instances* view in Business Central.
  
  . In Business Central, navigate to your business process and open it in the Business Process Designer.
  . Click on the canvas and click image:3140.png[] on the right side of the window to open the *Properties* tab.
  . Next to *Variable Definition*, click the empty space and click image:6563.png[]. The *Editor for Variable Definitions* dialog opens.
  . Click *Add Variable* and enter the following values:
  +
  * Name: `document`
  