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.
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
Hi @Issa
The role is defined in one of the module within the Core layer.
ThanksDeep
Hi Issa
Yes, the role needs to be defined in the foundation layer module.
Also, I think the name _Lib is fine.
Regards,
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
Hi @Afaque ShaikhIn 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