445
Views
5
Comments
The Canvas Architecture: In which layer roles should be defined.
Application Type
Reactive

Hi,

As the course says Roles like manager or employee tend to be highly reusable, so it makes sense to also put those roles in a foundation module.(See attached)

So my question is  what naming convention we can use for this type of module.  eg. we have _IS, Drv,  _Lib so on. 



Thank You.

2023-10-21 19-42-11
Tousif Khan
Champion

Hello

Here we have an Article on, Where we should put our Roles?

A very nicely expained  - https://jmjames.medium.com/where-should-i-put-my-applications-roles-in-outsystems-a971bf51e55f

We can take it as your_proj_name _Roles.

Thanks


2024-09-12 02-43-38
Deepsagar Dubey

Hi @Issa 

The role is defined in one of the module within the Core layer.

Thanks
Deep

2021-01-19 14-07-32
Tom Zhao

Hi Issa

Yes, the role needs to be defined in the foundation layer module.

Also, I think the name _Lib is fine.

Regards,

2023-05-30 10-05-13
Lourenço Matalonga

Hello Isa,

If your roles are not specific to a certain screen and are reusable in multiple screens then add them to a foundation module. If it is very specific to one case then you can add it to that specific module.

But you got the concept right!!

Best regards,

Lourenco Matalonga 

2025-11-27 13-59-01
Gerhard van Niekerk

Hi @Afaque Shaikh
In your case using the naming convention _Lib would be fine, as this type of module is used for generic library features and functionality according to the 3 layer Architecture Canvas:

Alternatively, roles can also be defined in a core module, but this only makes sense in the case that the roles defined only need to be used by consumers of the core module. Defining the roles in the Foundation module is more common as then an entire set of applications (eg. an Intranet) can all share the same roles

Kind Regards

Gerhard van Niekerk

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.