Project creation

Overview

Projects are the heart of the Activity Manager. They allow users to know what they have to fill in a selection of products. In this section, we will understand how a project is created and what are the important steps it goes through during creation.

  • project saved: Via the UI, the user creates a new project, then saves it. A project is saved when the Project

entity has been saved in the database. - project calculated: Once a project has been saved some background processes are launched. For example, these processes detect impacted users and they compute the project completeness of each product for multiple user groups and permissions using calculation steps.

A project is known as created when these two steps are done.

Tip

Project created = Project saved + Project calculated

Project Event

The PIM offers event on which you can plug listeners to add custom behaviors. For example to add notifications, or to trigger special actions. This event is located in the class Akeneo\ActivityManager\Component\Event\ProjectCreationEvents.

ProjectCreationEvents::PROJECT_CALCULATED

PROJECT_CALCULATED is dispatched after the end of the job which launches all calculation steps. When this event is dispatched it ensures that all business around a project is finished.

Tip

This event is used by the Activity Manager to notify users impacted by the project.