Skip to tutorial content
Rate module Not yet rated

Populating Attributes and Relationships

4 min read
On this page

In this lesson, you will learn:

  • How variables fill CI attributes
  • How to create a Runs on relationship
  • What to check

πŸ” Quick look back: Last time: Collecting and Parsing Data. You learned how the pattern reads archiver.conf and extracts values.

1 The Problem: Collected Values Don’t Save Themselves

The pattern now holds version, port and archive path in variables. But:

  • Nothing is on the CI yet.
  • The archiver isn’t linked to snwr-mail-02.

🎯 The problem: Collected values don’t save themselves.

πŸ‘‰ The fix: Map variables to CI attributes, and create the Runs on relationship.

Table of the archiver CI fields.
Figure 1. The SNWR Mail Archiver CI after the pattern runs.

2 Filling attributes

Each variable is mapped to a field on the SNWR Mail Archiver class. The pattern’s CI type decides which class is filled.

3 The relationship

Key term: Runs on

A relationship that says software runs on a server.

Application patterns link the app to the server they ran on. Check the link appears after a test.

4 Project Clear View: How We Implemented It

πŸ“ Situation: Variables were ready but the CI was empty.

🧭 Decision: Map the variables and check the Runs on link.

πŸ› οΈ Steps we took:

  1. Set the pattern’s CI type to SNWR Mail Archiver.
  2. Mapped version, port and archive path to fields.
  3. Ran Debug on the lab copy and saved the result.
  4. Checked the Runs on link to its server.

βœ… What we verified:

  • The CI shows all three values.
  • Runs on links to the right server.

πŸ“ Evidence: Attribute mappings, part of the archiver pattern.

5 Quick recap

  • Map each variable to a CI field.
  • The CI type decides which class is filled.
  • Application patterns create a Runs on link.
  • Check the CI after each test.

6 Check yourself

Think of your answer first. Then tap to check.

1 Which relationship links the archiver to snwr-mail-02? Show answer

Runs on.

2 What decides which class the pattern fills? Show answer

The pattern’s CI type.

3 What version did the archiver report? Show answer

4.2.1.

Nice work! The archiver CI is filled and linked. πŸŽ‰
Next up: Adding Connection Logic Where Required

Was this lesson helpful?

Have a question or doubt?

Ask here and get help from instructors and fellow learners.

0 / 300

Only logged-in learners can post.