# Create your process diagram

Process Template Diagram can be created by dragging each item and dropping to the diagram panel. User can double click on each node task to configure the data needed for execution. Shown below is an example to create a sample flow.

1\. First, user must drag a **Horizontal** lane and drop to the diagram panel.

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FVQPX538EijJoDdrWqzak%2F0?alt=media)

2\. To start the flow user must drag the **Start** event and **End** event. Now for the example we are using, we need the **Exclusive** gateway, **Human task** and **Database task** as well. Drag these node tasks to the diagram panel.

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FDN4MxRB6KlfzDYWAtZnA%2F1?alt=media)

3\. Now the user must create the links between the node tasks. Move the mouse over at the source node task, click on any one of the circle ports that are highlighted and drag the port to the target node task and create the links as given below in the process design.

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FR3bltLcrlpg54f3WqgZh%2F2?alt=media)

4\. Double click on Database Tasks to change name to **"Get User Information from DB"** and **"Save User Status to DB"** as shown in the diagram below. Change name of **Human Task** to **"Approve Inbox".** Change name of Exclusive to be **"Check Approve".** User can double click on the link out of gateway to set the values. Double click on link out of **Exclusive** gateway and change name to **"Approve".**

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2F6RsPO0TbqPTivyYKdmx5%2F3?alt=media)

Change the other lane to **"Reject"**. For Gateways user can configure condition at the **Gateway** tab. To modify condition of link by using **Formula Editor**, click on the **Condition** button.

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2F6hLOfsIJNsNluNS8GRsi%2F4?alt=media)

5\. Configure the business object on each the node task,

* Double click on node task to show **Configuration Panel** and open the **Business Object** tab.
* Click to check both **Input** and **Output** checkbox to set input parameter and out parameter of that node task.

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FgCFnVmrtbGp3wLAdystT%2Fimage.png?alt=media\&token=f19ee4b5-8a8e-4187-8f0c-94ed835b0fab)

* Click **Open Mapping Parameter** button, the mapping parameter page is shown for mapping input parameter and output parameter of the process to the node task.

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FS1Hy8zJl94chfldyn2he%2Fimage.png?alt=media\&token=897efeff-a2c2-4d3c-9cee-21cfc58e1d4e)

* Click the line between **Input** box and **Mapping** box.
* Click on the **Object** in **Input Process Parameter** on the left hand side and drag into the **Object** containing in **Activity Parameter** on the right hand side.

{% hint style="info" %}
**Note***:* If both objects are same system will the mapping automatically for you.
{% endhint %}

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FJcpWWeGDH6jykk3cRtsr%2Fimage.png?alt=media\&token=726ad0b5-ce51-4416-9826-765be1045b34)

* Now click on line between **Mapping** box and **Output** box.
* Click the **Object** in **Activity Parameter** on the left hand side and drag into the text in **Output Process Parameter** on the right hand side.
* Click **Done** button on the top right hand side to go back to diagram.

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FTUeqedwnuBgeLh47dnDb%2Fimage.png?alt=media\&token=2c7396e0-939a-4a50-a1e3-3a58b9a5cc0d)

6\. Configure the **Database Parameter** for Database node.

* Double on Database node task to show the Configuration Panel and open third tab. Note: Before doing this step user must set input and output parameters as described in step 5.
* Enter the data regarding the database parameters. e.g. Enter *Connection Type* as "JNDI", *JNDI Name* is "jdbc/pd", *Command* *Type* is "Selec&#x74;**"** and *Command* - "select username, cost, date, status from user".
* If the business object is already configured as per Step 5 in the Business Object tab, user can click **Open Mapping Parameter** button on Database Parameter tab and map parameter to the database query following the same step 5.

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FdDyjnsfiNNrDGOPP8yXw%2Fimage.png?alt=media\&token=0473dcb9-9423-4df9-9a10-e74477fa1e89)

7\. Configure the Assignment Policy for Human Task.

* Double click on Human task to show Configuration Panel and open **Assignment Policy** tab. Enter value of *Setting* is "Pull" and value of *Work party* *Name* is "Approve".

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FMVBaw6u6jQ7IvM2uXMxX%2Fimage.png?alt=media\&token=2b16ff58-e3b7-49c2-86d0-90414da60c37)

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FRhN8eS9pBb5ctrNJqOQz%2Fimage.png?alt=media\&token=8bd86925-47f5-419b-81bc-f63692f5903c)

8\. Configured the value of **Load** **Entity** of the Human Task.

* Double click on node task to show Configuration Panel and open **Load** **Entity** tab. Enter value of *Entity* as "Application" (This is the name of the entity from App Designer that will be used as the UI for the user to work on, when the human task is assigned to a user). Enter value of *Key* and *Value* as "APPLICATION\_ID" (Key of the entity from AD) and "${UserRequest.id}" (PD Business Object parameter) to map data from this process flow to entity which forms the UI.

![](https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FYTHfWQKRNbr36EPkAcZ0%2Fimage.png?alt=media\&token=8bd62c3c-e942-4248-925b-2e4016256576)

9\. Finally, when each item on the process diagram is completely configured, user can save the process and deploy it to the destination environment to be integrated with other systems.


---

# Agent Instructions: 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:

```
GET https://docs.oneweb.tech/oneweb/design-and-develop-oneweb-apps/design-and-develop-process/start-with-business-process-in-oneweb/create-your-process-diagram.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
