<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Use cases on RIA Docs</title>
    <link>https://docs.riaproducts.com/dih/4.x.x/docs/use-cases/</link>
    <description>Recent content in Use cases on RIA Docs</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="https://docs.riaproducts.com/dih/4.x.x/docs/use-cases/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Map custom payloads</title>
      <link>https://docs.riaproducts.com/dih/4.x.x/docs/use-cases/map-custom-payloads/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.riaproducts.com/dih/4.x.x/docs/use-cases/map-custom-payloads/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#overview&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;This documentation provides a  walkthrough of how to map and deliver custom payloads in API integrations. The focus is on mapping a raw JSON payload to a target API endpoint, and handling the responses.&lt;/p&gt;&#xA;&lt;h2 id=&#34;example-payload&#34;&gt;Example Payload&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#example-payload&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The following is a sample payload:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;elementType&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;person&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;code&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;4637115&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;dateOfBirth&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;1985-01-01&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;elementType&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;person&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;code&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;4637999&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;dateOfBirth&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;1986-01-01&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;service-definition&#34;&gt;Service Definition&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#service-definition&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The schema definition is required for the target definition. Create a DOH service definition as follows:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Make a GET call</title>
      <link>https://docs.riaproducts.com/dih/4.x.x/docs/use-cases/make-get-call/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.riaproducts.com/dih/4.x.x/docs/use-cases/make-get-call/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#overview&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;DOH is commonly used to create, delete, and update data through API calls, using the &lt;code&gt;POST&lt;/code&gt;, &lt;code&gt;DELETE&lt;/code&gt;, and &lt;code&gt;PUT&lt;/code&gt; HTTP methods. The &lt;code&gt;GET&lt;/code&gt; endpoints have also been supported, but previously, the response from a &lt;code&gt;GET&lt;/code&gt; call could only be logged and stored in the &lt;code&gt;UA_RUN_SERVICE_TRACE&lt;/code&gt; table when tracing was enabled. The response payload could not be processed or used for further actions.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;GET&lt;/code&gt; responses can now be passed to a Groovy &lt;code&gt;handleResponse&lt;/code&gt; method. For more information about using handleResponse to process custom responses, see &lt;a href=&#34;https://docs.riaproducts.com/dih/4.x.x/docs/executable-classes-for-task-execution/handle-response/&#34;&gt;handle response executable&lt;/a&gt; and &lt;a href=&#34;../use-cases/mapping-custom-payloads.md&#34;&gt;Mapping custom payloads&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Invoke multipart REST API to upload file</title>
      <link>https://docs.riaproducts.com/dih/4.x.x/docs/use-cases/multipart-rest-api/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.riaproducts.com/dih/4.x.x/docs/use-cases/multipart-rest-api/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#overview&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The service API executable supports only &lt;code&gt;XML&lt;/code&gt; and &lt;code&gt;JSON&lt;/code&gt; payloads and therefore cannot invoke APIs that require the &lt;code&gt;multipart/form-data&lt;/code&gt; content type for file uploads.&lt;/p&gt;&#xA;&lt;p&gt;To upload files to such APIs, use the &lt;code&gt;FILE_UPLOAD&lt;/code&gt; executable together with a Groovy script. The Groovy script performs the HTTP multipart request while the &lt;code&gt;FILE_UPLOAD&lt;/code&gt; executable manages the upload lifecycle.&lt;/p&gt;&#xA;&lt;h2 id=&#34;prerequisite&#34;&gt;Prerequisite&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#prerequisite&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The &lt;code&gt;groovy-wslite-1.1.3.jar&lt;/code&gt; library must be available on the classpath. To install,&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
