Create the Purchase Request Process
Key Lesson: A Process can define its data, participants, and task structure before its task Screens and routing behavior are connected.
Create the initial PurchaseRequestProcessing Process structure. The next stage connects and tests request submission and persistence without a User Task. Later stages connect and test each task incrementally, beginning with Approve Request.
1. Create the Process
Section titled “1. Create the Process”- Go to Design → Object Types → Process.
- Click +.
- Enter PurchaseRequestProcessing and click OK.
- When the Process Editor opens, delete the default Hello World task and its connectors.
Keep the existing Start Event, End Event, and Initiator swimlane. The Start and End Events remain unconnected during this stage.
2. Add the Process input
Section titled “2. Add the Process input”The request input carries the submitted Purchase Request through the Process after Process-start behavior is configured in a later stage.
- Open the Variables tab at the top of the Process Editor.
- Click + Add new variable.
- Configure the variable as follows:
| Name | Context | Type | Default expression |
|---|---|---|---|
| request | Input | | (leave blank) |
-
Save your changes before continuing.
3. Configure the Process swimlanes
Section titled “3. Configure the Process swimlanes”Each swimlane identifies a Process participant. Its Assignee expression references the corresponding role created in the previous tutorial step.
3.1. Configure the Requester swimlane
Section titled “3.1. Configure the Requester swimlane”- Select the existing Initiator swimlane.
- In the Properties panel, set the following values:
| Property | Value |
|---|---|
| Name | Requester |
| Assignee | |
3.2. Add the Approver swimlane
Section titled “3.2. Add the Approver swimlane”- Click the Add lane below icon.
- Select the new swimlane.
- In the Properties panel, set the following values:
| Property | Value |
|---|---|
| Name | Approver |
| Assignee | |
3.3. Add the Procurement swimlane
Section titled “3.3. Add the Procurement swimlane”- Click the Add lane below icon.
- Select the new swimlane.
- In the Properties panel, set the following values:
| Property | Value |
|---|---|
| Name | Procurement |
| Assignee | |
-
Save your changes before continuing.
4. Add and name the User Tasks
Section titled “4. Add and name the User Tasks”Add one User Task to each swimlane. Configure only the Name property during this stage.
| Swimlane | User Task name |
|---|---|
| Requester | Revise PR |
| Approver | Approve PR |
| Procurement | Request Quotation from Vendors |
For each User Task:
- Select the required swimlane.
- Add a User Task.
- Select the new task and set Name in the Properties panel to the value shown in the table.
- Leave Screen unassigned.
After adding all three User Tasks,
Save your changes before continuing.
Note
Leave the Start and End Events unconnected and do not configure task Screens, Inputs, or Output handlers yet. The Process is intentionally not executable at this foundation checkpoint. Connect and Test Request Submission adds the minimal Start-to-End route, Process-start action, authenticated Access Control, and persistence checkpoint before approval is connected.