Test & Verify the Process
Key Lesson: In this step, you learn how to test the complete Purchase Request Process and verify its task assignments, task screens, route behavior, data flow, and completion path.
Run the complete Purchase Request Process from submission through completion and verify each stage of the workflow.
Attention
Finalize the Purchase Request Process before testing.
During testing, use a newly started Process instance so the task configuration you are validating reflects the latest saved Process definition.
Note
Tasks and execution state belong to a specific running Process instance. After changing task configuration, start a new Process instance and test the newly created tasks. See Process instances, tokens, and User Tasks.
1. Start the Purchase Request Process
Section titled “1. Start the Purchase Request Process”- Run the Purchasing app.
- Open Purchase Request → Create New.
- Enter a Cost Center and add at least one completed item.
- Click Submit Request.
The Submit Request action starts PurchaseRequestProcessing and navigates to the Home screen, where the Task list is displayed.
-
If the Create Purchase Request screen does not close, review how to Start the Process from PurchaseRequestCreate.
-
If an Access Denied based on Access control error appears, confirm that PurchaseRequestProcessing is selected under Covered business objects and that the
startaccess control is configured for that Process. If access is still denied, see Access Control Errors. -
If the screen closes and the Home screen opens but Approve PR is not displayed in the Task list, confirm that the Approve PR User Task is assigned to the Approver swimlane and that the Process routes to Approve PR.
2. Verify the Approve PR task
Section titled “2. Verify the Approve PR task”- On the Home page, locate Approve PR under My Team Tasks. If the task list is not displayed, select Task list in the sidebar.
- Open the Approve PR task.
- Click Assign Task To Myself.
- Review the submitted purchase request and confirm that:
- the request details and line items are displayed;
- the request fields are read-only;
- the Approver comment, Approve, and Reject controls are available.
-
The Approve PR task opens the
PurchaseRequestApprovescreen. After assigning the task to yourself, the submitted Purchase Request details are displayed. -
The Purchase Request fields are read-only.
-
The Approver comment is editable, and the Approve and Reject buttons are enabled.
-
If the task is not available, confirm that the Approve PR User Task is assigned to the Approver swimlane.
-
If the wrong screen opens, confirm that the Approve PR User Task uses
Purchasing.PurchaseRequestApproveas configured in Approve PR User Task. -
If the purchase request fields are editable or the Remove button is active, review how to embed the Include screen and confirm that the request details are configured as read-only while the Approver comment, Approve, and Reject controls remain enabled.
-
If the configuration is correct but the Purchase Request is still editable or the Add Item and Remove controls are still displayed, confirm that Enable everything is not selected in the Dev Tools floating panel.
3. Reject the request
Section titled “3. Reject the request”- In Approver comment, enter a distinctive test comment that you can identify in the next task.
- Click Reject.
- Return to Home and locate the task created by the Process.
The Approve PR task completes, and the reject route moves the same Process instance to a Revise PR task.
If the Process does not reach Revise PR, confirm:
-
The Reject action on the Purchase Request Approve task screen submits
isApproved: falseas configured in Add Approve and Reject actions. -
The Approve PR
submitoutput handler returnsrejectwhendata.isApprovedisfalse, as described in how to configure the Approve PR task. -
The outgoing process route from Approve PR User Task is named
reject, as configured in Connect the Process routes.
4. Verify the Update PR task screen
Section titled “4. Verify the Update PR task screen”- Open the Revise PR task.
- If Assign Task to Myself appears, select it before continuing.
- Confirm that the task opens the
PurchaseRequestUpdatescreen. - Confirm that the rejection comment entered by the Approver appears in the read-only Approver comment field.
The Approver comment field displays the comment entered when the request was rejected.
If the comment does not appear, confirm that the Approve PR output handling updates the current Purchase Request comment and that the Approver comment field on PurchaseRequestUpdate is bound to screen.request.comment.
5. Revise and resubmit the request
Section titled “5. Revise and resubmit the request”- Change one or more purchase request values so that you can identify the revised request.
- Click Resubmit.
- Return to Home and locate the next Approve PR task.
Resubmit completes the existing Revise PR task, and the resubmit route returns the same Process instance to Approve PR. It does not start another PurchaseRequestProcessing instance.
If the Process does not return to Approve PR, confirm that the Resubmit action on PurchaseRequestUpdate uses await output.submit(screen.request), the Revise PR output handler returns resubmit, and the outgoing route is named resubmit. See Update Request Task Screen and the Process Routes reference.
6. Approve the revised request
Section titled “6. Approve the revised request”- Open the new Approve PR task.
- If Assign Task to Myself appears, select it before continuing.
- Confirm that the revised purchase request values appear on the
PurchaseRequestApprovescreen. - Optionally enter an approval comment, then click Approve.
- Return to Home and locate the task created by the Process.
The Approve PR task completes, and the approve route moves the same Process instance to Request Quotation from Vendors.
If the revised values do not appear, confirm that Revise PR submits screen.request and that the Approve PR task receives the current Purchase Request.
If the Process does not reach Request Quotation from Vendors, confirm that the Approve action submits isApproved: true, the Approve PR output handler returns approve, and the outgoing route is named approve.
7. Complete the Procurement task
Section titled “7. Complete the Procurement task”- Open the Request Quotation from Vendors task.
- If Assign Task to Myself appears, select it before continuing.
- Confirm that the task opens the
PurchaseQuotationCreatescreen and displays the approved purchase request as read-only. - Click Add RFQ, enter a vendor name, and confirm that the value remains visible.
- Click Submit RFQs.
The Request Quotation from Vendors task completes, and the sendRequest route moves the Process to the End Event.
If the task does not submit, confirm that the Submit RFQs action on PurchaseQuotationCreate uses await output.submit(screen.request) as configured in Request Quotations Task Screen.
If the task submits but the Process does not reach the End Event, confirm that the Request Quotation from Vendors output handler returns sendRequest and that its outgoing route is named sendRequest. For exact matching rules, see the Process Routes reference.
8. Confirm the Purchase Request Process is ready
Section titled “8. Confirm the Purchase Request Process is ready”Use this checklist to confirm that every part of the Process has been tested successfully.