Setting Up the Application Evaluation Object

When reviewing applications, Delectable Bonsai must store evaluation notes for each distributor application they receive. To achieve this, the Delectable Bonsai development team created an Application Evaluation object and added the necessary fields.

Import the Application Evaluation object

They created this object definition in a separate environment, but they exported it as JSON so you can import it to your environment with the Distributor Application object.

Here you’ll use this JSON file to import the Application Evaluation object into your Liferay instance. But first, create the object’s picklists using the headless-admin-list-type REST APIs.

Creating the Picklists

The Application Evaluation object requires these picklists: Assessment Scores, Recommendations, and Decisions.

  1. Download and unzip the resources for this exercise:

    curl https://resources.learn.liferay.com/courses/latest/en/application-development/modeling-data-structures/liferay-w1m9.zip -O
    
    unzip liferay-w1m9.zip
    
  2. Navigate to the curl folder in the liferay-w1m9 folder:

    cd liferay-w1m9/curl
    
  3. Run this command to create three picklists for the Application Evaluation object:

    ./ListTypeDefinition_POST_ToInstance.sh
    
  4. Verify the picklists appear.

    Verify the picklists appear.

With the picklists in place, you can import the Application Evaluation object.

Importing the Application Evaluation Object

  1. Open the Global Menu ( Global Menu ), go to the Control Panel tab, and click Objects.

  2. Click Actions ( Actions Button ) in the Application Bar and select Import.

  3. Enter these details and click Import.

    FieldValue
    NameApplicationEvaluation
    JSON FileObject_ApplicationEvaluation.json

    The Application Evaluation JSON file is in the liferay-w1m9 folder. This file includes the object’s basic schema, including general configurations and custom fields.

    Import the Object_ApplicationEvaluation.json file.

  4. Begin editing the object definition.

    Begin editing the object definition.

  5. Verify the object includes these custom fields:

    • Business Name
    • Assessment Score
    • Attachment
    • Decision
    • Interview Notes
    • Recommendation Comments
    • Recommendations

    Verify the object includes these custom fields.

  6. Go to the Details tab.

  7. Click Publish.

Great! Delectable Bonsai can use this object to store notes on prospective distributors.

Now you can define a relationship between the Distributor Application and Application Evaluation objects so you can link their entries.

Next: Adding a Relationship Between the Object Definitions

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy