0% found this document useful (0 votes)
12 views

Work with Arrays in Data Structures Exercise (1)

This document is a tutorial for working with arrays in data structures using Appian, including setup instructions and practice exercises. It emphasizes the importance of naming conventions, saving work frequently, and provides additional resources for learning. The tutorial guides users through creating and manipulating arrays and dictionaries within the Appian environment.

Uploaded by

inspire04172024
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Work with Arrays in Data Structures Exercise (1)

This document is a tutorial for working with arrays in data structures using Appian, including setup instructions and practice exercises. It emphasizes the importance of naming conventions, saving work frequently, and provides additional resources for learning. The tutorial guides users through creating and manipulating arrays and dictionaries within the Appian environment.

Uploaded by

inspire04172024
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Work with Arrays in Data Structures

Exercise
Advanced Expressions

Introduction 2
How to Complete the Exercises in this Tutorial 2
How Can I Practice? 2
Appian Version 2
Naming Conventions 2
Save Often 3
Additional Resources 3
Practice 1 Set Up: Work with Arrays in Data Structures 4
Practice 1 Help and Resources: Index Values in an Array 5
Additional Resources 5

Notice of Rights

This document was created by Appian Corporation, 7950 Jones Branch Dr, Tysons, Virginia 22102.
Copyright 2024 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 [email protected].

© Appian Corporation, 2024


Introduction
How to Complete the Exercises in this Tutorial
Follow the steps to complete practice 1.

How Can I Practice?


You should practice in Appian Community Edition. This free, community Appian resource
comes with the pre-built Acme Auto application that contains objects that you’ll use to build
your expression rules.

Keep in mind that this is a community environment not suitable for production workloads or
sensitive information.

Appian Version
Appian Community Edition is on the latest Appian version. If you are following the exercises
from a previous Appian version, go to academy.appian.com to download the latest version.

Naming Conventions
When you register for Appian Community Edition, you gain access to a workspace, which is
your personal area within the community environment. When your workspace has been
assigned, you will receive a confirmation email with a workspace ID.

Use this workspace ID when creating new applications and objects. Otherwise, you could run
into naming conflicts with objects created by other users. Pre-loaded apps in your workspace
also include the workspace ID. In the example below, the application prefix for the Acme
Auto Solution app is W0000AS. So, the workspace identifier is W0000, which would be
included in any new app’s prefix.

24.3

© Appian Corporation, 2024 2


Save Often
Appian does not automatically save updates, so save your objects frequently.

Additional Resources
Appian provides a number of training resources for 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 practice exercises. Explore these resources at your own pace. Survey
courses will help you develop a better grasp of the topics you need to learn. Video
and print tutorials will help you with getting hands-on experience with Appian.

● Community Discussions for New Users - Check out the New to Appian thread in
Community. Join our community of experts to ask questions and find answers from
past discussions.

● Appian Documentation - Appian’s product documentation will provide you with an


overview of key Appian features, newest release information, additional tutorials,
and helpful patterns and recipes to implement in your app.

24.3

© Appian Corporation, 2024 3


Practice 1 Set Up: Work with Arrays in Data Structures
You learned that Arrays in Appian are classified as specific data types. You also learned that
it’s best to convert some data types before using Appian functions on the data, to avoid
problems that occur when a function is looking for a specific data structure, such as a List of
Text String or List of Number.

In this lesson you’ll use the expression editor to create some data arrays, view their data
structures, and determine whether or not you should convert them.

1. In Appian Designer, create a new expression rule.

● Name: Enter W#AE_ArraysAndDataStructures

● Description: Enter Practice creating arrays and changing data


structures.

2. Create a dictionary type of array using the following field names and values:

Field Name Value

text "New Text"

number 1

boolean true

3. After creating the array, click Test Rule. The Test Output Type should be Dictionary.

4. Change the Dictionary into a map and review the new output.

Tip

Use the map() function

24.3

© Appian Corporation, 2024 4


Practice 1 Help and Resources: Index Values in an
Array
Review what your expression should look like. Also, check out the listed resources to learn
more about indexing values in an array.

1. Add the a!map() function


2. Add each key (e.g. text) and its value (e.g. "New Text")
3. Test Rule to see the Map structure and value in Test Output

Additional Resources
● All Functions
○ Review the different Array functions
○ Copy and paste examples of interest in your expression editor and practice

24.3

© Appian Corporation, 2024 5

You might also like