Skip to content

Approve Request Task Screen

Key Lesson: In this step, you learn how to create the Approve Request task screen, display the submitted Purchase Request in read-only mode, and return the approver's decision and comment to the Process.

Create the PurchaseRequestApprove task screen used by Approvers to review a submitted Purchase Request and approve or reject it.

  1. Create a new screen and name it PurchaseRequestApprove.
  2. Configure the screen text label:
PropertyValue
TextPlease approve or reject the following request:
  1. Save your changes before continuing.

Embed the Purchase Request Include screen to reuse its existing layout.

This screen uses the request input variable to receive the submitted Purchase Request from the Process instance.

To create this variable:

  1. Open the screen’s Variables tab.
  2. Create the request variable and configure it as follows:
PropertyValue
Namerequest
ContextInput
Type
This.PurchaseRequest
Default expressionLeave blank
  1. Save your changes before continuing.

  1. Return to the Layout tab.
  2. From the SCREEN STRUCTURE section of the Components toolbar, drag a Screen component into the main content area below the text label.

Editor Help

Remember: When dragging a component or variable onto a screen, Lowgile displays a green placeholder indicating where the element can be dropped.
  1. In the screen’s Properties panel, set:
TabPropertyValue
PropertiesScreenPurchasing.PurchaseRequestInclude
Inputsrequest
screen.request
  1. Leave all other properties at their default values.

  2. Save your changes before continuing.

3. Wrap the Include screen instance with a Disable component

Section titled “3. Wrap the Include screen instance with a Disable component”
  1. Select the embedded PurchaseRequestInclude screen component.

  2. From the LOGIC section of the Components toolbar, add a Disable component next to the Include screen component and drag the screen component inside it.

  3. Set or confirm the following properties:

PropertyValue
Disabledtrue
Keep disabled if already disabledChecked
  1. Leave all other properties at their default values.

  2. Save your changes before continuing.

Checkpoint

Expand screen.request in the VARIABLES panel and confirm that the comment property is available.

  1. From the CORE section of the Components toolbar, add an Input component below the PurchaseRequestInclude screen component.
  2. Configure the comment Input component:
PropertyValue
LabelApprover comment
Binding
screen.request.comment
TypeText Area
  1. Leave all other properties at their default values.

  2. Save your changes before continuing.

Define a submit output that returns the approver’s decision and comment to the Process.

  1. Open the screen’s Outputs tab.
  2. Create a new output variable.
  3. Configure as follows:
PropertyValue
Namesubmit
Output type
{
  isApproved: boolean
  comment: string
}
Can drive Process forwardChecked
  1. Save your changes before continuing.

  1. Return to the screen’s Layout tab.
  2. From the LAYOUT section of the Components toolbar, add a Layout component below the comment field.
  3. Configure as follows:
PropertyValue
Layouthorizontal in one row
  1. From the CORE section of the Components toolbar, add two Button components inside the horizontal layout.

  2. Set the following properties for each button:

ButtonTabPropertyValue
ApprovePropertiesPrefix iconthumb_up
TextApprove
AppearanceColorPrimary
Events → ClickAction type → Ad-hoc action
output.submit({
  isApproved: true,
  comment: screen.request.comment
})
RejectPropertiesPrefix iconthumb_down_alt
TextReject
AppearanceColorWarn
Events → ClickAction type → Ad-hoc action
output.submit({
  isApproved: false,
  comment: screen.request.comment
})
  1. Leave all other properties at their default values.

  2. Save and close the editor.

Understand how Processes coordinate activities, User Tasks, and application data.

Learn how roles, swimlanes, and assignments determine who can work on a task.

Review how actions submit screen output and trigger application behavior.