> For the complete documentation index, see [llms.txt](https://docs.oneweb.tech/oneweb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.oneweb.tech/oneweb/design-and-develop-oneweb-apps/integration-with-other-systems/develop-integration-with-oneweb-microflow/start-with-microflow-in-oneweb/configure-the-flow.md).

# Configure the Flow

Create the flow diagram to implement the logic.

Now let us create the actual microflow logic in the Flow Diagram

1\. Drag Start node under EVENT tab and drop in the diagram panel

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FMYp6wl7efc2gQInCRqli%2Fimage.png?alt=media\&token=58b91aef-f67c-4d8f-ac9a-36df3f0b4d85)

2\. Drag Database node under ACTIVITY tab and drop in the space next to start node

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2Fd73FAeRB0go6TmEASGdB%2Fimage.png?alt=media\&token=9d8acb14-0350-4372-9eb3-d94f932c085c)

3\. Double click on the database node and the configuration panel will be shown at the bottom of the screen.&#x20;

* In tab **General** enter ''RetrieveUserBenefits"

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2F6Y2F9Ccrb1GQTtnSLICH%2Fimage.png?alt=media\&token=772b2b24-2d5b-43f0-a954-011598df6309)

* In the tab **Business Object** click on "**Add Row**" button For
* BenefitBO check input and for BenefitBOout\_Avalant check output

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2Fg6taVo4bhFPBsaNdDrVI%2Fimage.png?alt=media\&token=fbb255b1-76ab-41aa-a188-70c61b8b4180)

{% hint style="info" %}
***NOTE**: From Version 4.0.0.19 the parameter mapping is done automatically between the parameters of same BO. User need to manually map only if you need to map to a different business object for input or output. If you have different input and output parameters, map them as given below.* \
&#x20;          &#x20;
{% endhint %}

* Click "**Open Mapping Parameter**"
* Click on the line between Input and Mapping&#x20;
* Link the parameters for input&#x20;
* Click on the line between Mapping and Output
* Link the parameters for output
* Now click on **Done** to close the mapping screen.

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FtQhagDEmZI5JinReFp5X%2Fimage.png?alt=media\&token=16e19a03-622e-4407-a5f2-89f04ebd9e66)

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FiLEnBeIe4c9WdDvhiRhc%2Fimage.png?alt=media\&token=a37255bd-b211-4948-81b2-379eb59760c2)

* Open tab **Database Parameter**
* Choose Connection Type as JNDI
* Enter "jdbc/application" in JNDI Name
* Choose "Select" for Command Type
* Enter "SELECT id, travel\_date, project\_name, description, amount, status, benefit\_type, username FROM oneweb\_benefit WHERE benefit\_type = ? AND username = ?" in Command

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2Fo3P41zmEv0tKlUz6qtUa%2Fimage.png?alt=media\&token=254ac8ec-b720-4aaa-889b-eb439f0792f5)

* Click "**Open Mapping Parameter**"
* Click on the line between Input and Mapping
* Click on DatabaseDummyObject and choose Add Parameter icon

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FiAkXfkl3VGXho17hQYD5%2Fimage.png?alt=media\&token=687c437c-2309-4ee8-ab5b-560ee7b6c4ff)

* Add the parameters "benefit\_type" & "username" and click **Submit**

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FowMKKsSrP8TNHvjHr4LC%2Fimage.png?alt=media\&token=bde25d85-558c-4ca1-99d8-dad58e986276)

* Link the activity parameters for input

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FDFQMkmK4ZjqfCZMH1yFy%2Fimage.png?alt=media\&token=c971dcda-54aa-42dc-b1a4-cd764404d5c6)

* Click on the line between Mapping and Output&#x20;
* Click on DatabaseDummyObject and choose Add Parameter icon

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2Fn5EcUEg7kyPtRuSKg1uW%2Fimage.png?alt=media\&token=69970917-2ff2-4cde-b3cb-585893afc723)

* Add the parameters for output and click **Submit**

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FFxdYrJ150Cs4VkrMVe2M%2Fimage.png?alt=media\&token=e61e2779-0fa9-495a-b273-94da9e4e0432)

* Link the activity parameters for output

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2F503x5VvYtBichEBLv1wf%2Fimage.png?alt=media\&token=97837103-0ea4-459b-a7bc-8f675e42dce1)

* Now click on **Done** to close the mapping screen
* Click **Done** on the database node configuration panel to close the panel

4\. Drag END node under EVENT tab and drop-in space next to the database node

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FLZHlI1hA5qEw5Bx1ezbv%2Fimage.png?alt=media\&token=b6dc00e7-c890-46d3-813c-b860b27ef35a)

5\. Drag line and connect the nodes \
6\. Click "**Save**"

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FV6FU78nm7CtWmz31xxEj%2Fimage.png?alt=media\&token=51c60790-4699-47c4-834c-ae400490a730)

Now you have your first Microflow service ready for execution

Users can use the validate option to see if all the configurations are complete

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FXg6SpULz9pWfIrSVDXNc%2Fimage.png?alt=media\&token=e27088c8-5a59-4d62-bf7e-4d343b7cbdfd)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.oneweb.tech/oneweb/design-and-develop-oneweb-apps/integration-with-other-systems/develop-integration-with-oneweb-microflow/start-with-microflow-in-oneweb/configure-the-flow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
