@@ -29,30 +29,30 @@ Before starting this how-to, make sure you have completed the following prerequi
2929
30301 . Create the following ** Customer** entity in your domain model:
3131
32- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581816 .png" class="no-border" >}}
32+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/customer-entity .png" class="no-border" >}}
3333
34342 . Create overview and detail pages to manage the Customer objects.
35353 . Create a menu item to access the customer overview page.
36364 . Create the ** XMLDocument** entity that inherits all the properties from * System.FileDocument* :
3737
38- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581650 .png" class="no-border" >}}
38+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/xmldocument-entity .png" class="no-border" >}}
3939
40405 . Create a reference set (multiplicity ** [ * -* ] ** ) between XMLDocument and Customer:
4141
42- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581814 .png" class="no-border" >}}
42+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/reference-set .png" class="no-border" >}}
4343
4444## Adding an XML Schema (XSD)
4545
46- Whether you plan to import documents or export documents, working with XML means that your application must contain an XML schema (also called XSD). An XSD describes the possible contents of an XML file. Based on this XSD, your application knows how to read or write an XML file. If you don't have an XSD file, there are a couple of online XSD generators that accept an XML document as input. For this how-to, you can use [ Customers.xsd] ( /attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581813 .xsd ) .
46+ Whether you plan to import documents or export documents, working with XML means that your application must contain an XML schema (also called XSD). An XSD describes the possible contents of an XML file. Based on this XSD, your application knows how to read or write an XML file. If you don't have an XSD file, there are a couple of online XSD generators that accept an XML document as input. For this how-to, you can use [ Customers.xsd] ( /attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/customer-schema .xsd ) .
4747
48481 . Right-click your module in the ** App Explorer** and select ** Add other** > ** XML schema** .
49492 . Enter * CustomersXSD* for the ** Name** and click ** OK** :
5050
51- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581696 .png" class="no-border" >}}
51+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/name-schema .png" class="no-border" >}}
5252
53533 . In the ** XML Schema** editor, click ** Select** for ** XML Schema** and select the XSD file that you downloaded earlier:
5454
55- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581812 .png" class="no-border" >}}
55+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/schema-editor .png" class="no-border" >}}
5656
57574 . Click ** OK** to save the XML Schema. We'll be using this schema in the following steps.
5858
@@ -63,39 +63,39 @@ The XML schema describes what the contents of an XML document should be. We need
63631 . Right-click your module in the ** App Explorer** and select ** Add other** > ** Export mapping** .
64642 . Enter * ExportCustomersMapping* for the ** Name** :
6565
66- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581849 .png" class="no-border" >}}
66+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/name-mapping .png" class="no-border" >}}
6767
68683 . Click ** OK** , and the ** Select schema elements for export mapping** dialog box will automatically open. Now do the following:<br />
6969 1 . For ** Schema source** , select ** XML schema** .<br />
7070 1 . For the schema, select the previously added ** CustomersXSD** .<br />
7171 1 . In the ** Schema elements** section of the dialog box, click the ** Expand all** and ** Check all** buttons. This automatically selects the ** Customer** element and its child elements. Your screen should now look like this:
7272
73- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581811 .png" class="no-border" >}}
73+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/select-schema-elements .png" class="no-border" >}}
7474
75754 . Click ** OK** . You should now see the first part of the import mappings:
7676
77- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581810 .png" class="no-border" >}}
77+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/im-part-1 .png" class="no-border" >}}
7878
79795 . Open the ** Connector** pane and drag the ** XMLDocument** entity from the ** Connector** into the placeholder:
8080
81- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581809 .png" class="no-border" >}}
81+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/connector-pane .png" class="no-border" >}}
8282
8383 The mapping editor for this element will pop up which can be closed by clicking ** OK** .
8484
85856 . Drag the ** Customer** entity from the ** Connector** into the placeholder:
8686
87- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581808 .png" class="no-border" >}}
87+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/drag-entity .png" class="no-border" >}}
8888
8989 The mapping editor for this element will open up:
9090
91- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581806 .png" class="no-border" >}}
91+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/mapping-editor .png" class="no-border" >}}
9292
93937 . In the mapping editor, verify the following:<br />
9494 * ** Method** is set to ** By association** <br />
9595 * ** Association to parent** is set to ** XMLDocument_Customer** <br />
96968 . Select attributes for all five ** Attribute to value element mapping** instances (or click ** Map attributes by name** ). You should have the following mapping:
9797
98- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581807 .png" class="no-border" >}}
98+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/select-attributes .png" class="no-border" >}}
9999
1001009 . Click ** OK** to save the mapping.
101101
@@ -107,14 +107,14 @@ To create the export logic, follow these steps:
107107
1081081 . Open the ** Customer** overview page, right-click the toolbar of the data grid widget, and select ** Add button** > ** Action** to add a new Action button:
109109
110- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581804 .png" class="no-border" >}}
110+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/add-action-button .png" class="no-border" >}}
111111
1121122 . Double-click the new button to open the properties editor and do the following:
113113 * For ** Caption** , enter * Export as XML*
114114 * For ** On click** , select ** Call a microflow**
115115 * In the ** Select Microflow** dialog box, click ** New** to create a new microflow and enter * Customers_Export* for its ** Name**
116116
117- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581803 .png" class="no-border" >}}
117+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/action-button-editor .png" class="no-border" >}}
118118
1191193 . Click ** OK** to save the button properties.
1201204 . Right-click the new action button and click ** Go to microflow** in the context menu. You should see an empty microflow with one input parameter:
@@ -128,24 +128,24 @@ To create the export logic, follow these steps:
128128 * For ** Source** , select ** From database**
129129 * For ** Entity** , click ** Select...** and select the customer entity
130130
131- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581830 .png" class="no-border" >}}
131+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/retrieve-objects .png" class="no-border" >}}
132132
1331339 . Click ** OK** . The microflow should now look like this:
134134
135- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581827 .png" class="no-border" >}}
135+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/microflow .png" class="no-border" >}}
136136
13713710 . Drag a ** Create object** activity from the ** Toolbox** to the line between the start event and end event.
13813811 . Double-click the activity to open the ** Create Object** editor and do the following:
139139 * For ** Entity** , select ** XMLDocument**
140140 * Click ** New** to add a change item
141141
142- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581801 .png" class="no-border" >}}
142+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/create-object-editor .png" class="no-border" >}}
143143
14414412 . In the ** Edit Change Item** editor, do the following:
145145 * For the ** Member** , for the change item, select the ** XMLDocument_Customer** reference:
146146 * For the ** Value** , enter ` $CustomerList `
147147
148- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581825 .png" class="no-border" >}}
148+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/edit-changed-item .png" class="no-border" >}}
149149
15015013 . Click ** OK** to save the change item.
15115114 . Create a change item to set the ** Name** attribute to * 'customers.xml'* (including the single quotation marks [ '] ). The ** Create Object** dialog box should now look like this:
@@ -154,7 +154,7 @@ To create the export logic, follow these steps:
154154
15515515 . Click ** OK** to save the action properties. The microflow should look like this:
156156
157- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581823 .png" class="no-border" >}}
157+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/microflow-final .png" class="no-border" >}}
158158
15915916 . Drag an ** Export with mapping** activity from the ** Toolbox** to the line between the start event and end event. This inserts a new export XML activity.
16016017 . Double-click the new activity to open the properties editor and do the following:
@@ -163,20 +163,20 @@ To create the export logic, follow these steps:
163163 * For the ** Parameter** , select the created ** NewXMLDocument**
164164 * For the output ** Name** , select the created ** NewXMLDocument**
165165
166- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581822 .png" class="no-border" >}}
166+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/export-with-mapping-dialog .png" class="no-border" >}}
167167
16816818 . Click ** OK** to save the properties. The microflow should look like this:
169169
170- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581821 .png" class="no-border" >}}
170+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/save-microflow .png" class="no-border" >}}
171171
17217219 . Drag a ** Download file** activity from the ** Toolbox** to the line between the start event and end event.
17317320 . Double-click the activity to open the ** Download File** dialog box and select ** NewXMLDocument** as the ** File document** :
174174
175- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581818 .png" class="no-border" >}}
175+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/download-file .png" class="no-border" >}}
176176
17717721 . Click ** OK** . The microflow should now look like this:
178178
179- {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/18581819 .png" class="no-border" >}}
179+ {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/export-xml-documents/edited-microflow .png" class="no-border" >}}
180180
18118122 . Deploy the application and open the customer overview page.
18218223 . Click the ** Export as XML** button and download the generated XML document.
0 commit comments