Appian StepbyStep 10 (Interfaces 102)
Appian StepbyStep 10 (Interfaces 102)
Exercise to Accompany
Interfaces 102: Build Interfaces Using an Expression
2 - Export an Application 14
Review Security Summary 14
Check for Missing Precedents 15
Export the Application 16
Notice of Rights
This document was created by Appian Corporation, 7950 Jones Branch Dr, Tysons, Virginia 22102.
Copyright 2021 by Appian Corporation. All rights reserved. Information in this document is subject
to change. No part of this document may be reproduced or transmitted in any form by any means,
without prior written permission of Appian Corporation. For more information on obtaining
permission for reprints or excerpts, contact Appian Training at academyonline@appian.com.
To understand specific Appian concepts and features, we recommend that you first view our
online courses (access our curriculum at academy.appian.com), and then complete the
associated exercises before moving to the next course in the path.
If you already have access to a practice environment, you will need a user account with either
System Administrator access, or an account for a Basic User who is a member of the
Designers and Process Model Creator groups. Request access from your site’s System
Administrator.
Save Often
Appian does not automatically save updates, so save your objects frequently.
Appian provides a plethora of training resources for novice Appian developers. The following
resources are particularly popular with our learners:
Academy Online - Appian’s online courses provide useful survey courses, step-by-step
tutorials, and some additional practice exercises. Explore these resources at your own pace.
Survey courses will help you with developing a better grasp of the range of topics you need to
learn about. Video and print tutorials will help you with getting the hands-on experience with
Appian.
Appian Documentation - Appian’s product documentation will provide you with the overview of
key Appian features, newest release information, additional tutorials, and helpful patterns and
recipes to implement in your app.
Community Discussions for New Users - Join our community of experts to ask questions and
find answers from past discussions.
To build a task report, you’ll start by building a process report that will help you to pull data
from the VFM Add Vehicle process model. At a high-level, you’ll complete these steps to
create the task report for VFM Supervisors:
1. First, let’s create folders that you’ll need to store the task process report: the parent
VFM Knowledge Center folder, and the child VFM Documents folder:
● Click New, and then select Folder from the dropdown menu. In the dialog box,
select the Knowledge Center option, and name it VFM Knowledge Center.
Add a description: “VFM Knowledge Center Folder.” Click Create. In the Security
dialog box, add VFM Admins group with the Administrator permission level.
Click Save.
2. From within the VFM Document folder, click New, and select Process Report:
● Retain the Duplicate existing process report selection, and search and select
My Tasks in the Process Report to Duplicate box. If no suggestions appear
for My Tasks, use active_tasks instead.
● Name it VFM Supervisor Process Report, and then change the description to
“A list of tasks for the VFM Supervisor group.”
● Make sure the Save In folder is set to VFM Documents, and click Create.
4. Click Save to to close the dialog box, and then click the save icon on the report
menu bar to save the process report.
1. From within the VFM Constants folder, click New, and select Constant from the
dropdown menu.
2. Type VFM_SUPERVISOR_TASK_PROCESS_REPORT_POINTER for the Name, and
add a description: “Points to VFM Supervisor Process Report object.”
3. In the Type field, select Document.
1. From within the VFM Interfaces folder, click New, and select Interface from the
dropdown menu. Name it VFM_Supervisor_Task_Report_Interface, and add a
brief description “Interface to display tasks to supervisors.”
2. First, we will use the a!queryProcessAnalytics() function to populate our empty interface
with data from the active tasks process report. We will do this in order to figure out
what columns we want to display to supervisors. In the interface, click Expression
Mode, and paste the following expression into the Interface Definition:
report: cons!VFM_SUPERVISOR_TASK_PROCESS_REPORT_POINTER
)
3. Scan the data in the Preview tab. You’ll notice that it is the text representation of the
process report data.
● C0 - Task name
● C2 - Date Time
● C5 - Task Status
1. Select the Read-only Grid component, then under Columns in the Component
Configuration panel, click Name (Grid Column).
3. In the Component Configuration, click Edit as Expression next to Display Value, and
paste the following expression:
1. From the Components palette, grab a Columns layout, and drop it above the
Read-only grid.
3. Click before the curly bracket for the expression, and press Enter. In line 1, type the
following expression:
a!localVariables(
local!statusFilter: null,
local!taskStatuses: {
"Assigned",
"Accepted",
"Completed"
},
4. Scroll to the last line of code in the interface definition pane and add a right parenthesis
“)”. Now, our entire expression is encapsulated within the a!localVariables function:
6. Next, let’s drag and drop a Dropdown field from the Components palette into the first
column layout on the left.
8. Next, let’s add a filter to the read-only grid, so that once the supervisor selects a value
in the Status dropdown, the grid refreshes to display only the selected statuses. Select
the Read-only Grid component, and in the Component Configuration pane click the
queryProcessAnalytics link (located in the Data Source section).
9. Click the query link in ContextGroups, and then click Edit next to filter. Paste the
following expression into the filter (QueryFilter) dialog box:
a!queryFilter(
field: "c5",
operator: "=",
value: local!statusFilter,
applyWhen: not(isnull(local!statusFilter))
Click OK. Your filter should now work. Test the filter by selecting different values in the
dropdown status menu.
10. To replace the numbers in the status columns with words like Assigned and Completed,
select the Read-only Grid component. In the Component Configuration pane, click
Status (Grid Column) under Columns.
11. Click Edit as Expression next to Display Value, and type the following expression:
a!forEach(
1. Click New, and select Report. Name this report VFM Supervisor Task Report, and
add a description: “Task report object to show supervisor tasks in Tempo and Sites.”
2. Select VFM_Supervisor_Task_Report_Interface in the Interface field, and select
the Save as Task Report checkbox. Click Create.
3. To set security for this report, click Add Users and Groups, and add VFM All Users as
Viewers, and VFM Admin as Admins.
1. Open the Vehicle Fleet Management Site, and click the Add Page button. Configure
this page as follows:
● Title the page Supervisor Tasks.
● Click the dropdown menu for the icons, and then browse or search for an
appropriate icon.
● Select Report in the Type field.
● Select VFM Supervisor Task Report in the Content field, and then click OK.
2. Click Save Changes. To preview the new Supervisor Tasks page, click the URL for the
site, and select the new Supervisors Tasks tab. Now, the supervisors are able to see
their tasks in a single place, filter them by status, and they can also approve or deny the
addition of vehicles to the fleet.
2 - Export an Application
In this exercise, you will export your VFM app as a zip file. Once you export the app, you
can store the file, or import it into a different environment. In order to export the app, we
will prepare for the export by:
These two quick checks will ensure that your app is export-ready, and will work as expected
in its new environment. Follow the steps below to prepare your app for the export:
correctly. Click the Settings menu at the top right of the VFM app, and select
Security Summary from the dropdown menu.
All objects should have a security setting, and only groups and not individual users
should be used for security. Review your Security Summary, making sure that there
are no unsecured objects, and all objects are secured at least through the VFM Admins
group. Review that the VFM All Users group is assigned the Viewer rights, and that
VFM Registrars and VFM Supervisors are assigned Viewer rights where needed.
1. Click the Settings menu at the top right of the VFM app, and select Missing
Precedents from the dropdown menu.
2. If there are any missing precedents in your app, review them to verify whether you
need to add the objects to your app, or the dependency should be removed. For
example, sometimes developers may include an erroneous object into their app by
● Missing precedents can also occur if you erroneously create an object from within
a different app. In this instance, add the object to your app.
3. If you find a precedent that should be added to your app, click Add all to application.
Click Check Again to run another missing precedents check that no further
dependencies were discovered:
1. Click the Settings menu at the top right of the VFM app, and select Export
Application from the dropdown menu. Verify the name of your app, and update it to
include the date of the export:
3. If you receive an error message, open the export log and correct any problems.
Download the newly created zip file, so you can take your work with you to a different
environment.
Before you go …
Congratulations! You have completed the last exercise in the Appian Step-by-Step
series.