Hi All.
Has anyone had any success in trying to implement the suggested idea from support for the following:
1. You need to register logged in users - create a special object for this (e.g. RegisteredUser). Then add instances of this object in rules of the login notification and delete instances in rules of the logout notification
- Write a process that would check this:
IF EXISTS RegisteredUser WHERE (RegisteredUser.LoginName = LoggedInSystemUser.LoginName) REPORT ERROR 'User with this name is already registered'
- Mark this process as 'initialization process' in the visual perspective[/color]
In trying this, it seems to fire off the login notification first and then the initialization process, resulting in REPORT ERROR. I can't even log in under one name for one session.
I've tried adding an attribute "LoggedInStatus" with choices "IN" , "OUT" under Regular Users, where the initialization process if successful, updates the LoggedInSystemUser.LoggedInStatus to "IN". A rule in the logout notification updates the status to "OUT" when fired.
When testing this out and openning another session (whilst the first session is already open) seems to fire the logout notification rule "LoggedInSystemUser.LoggedInStatus='OUT' without executing any other attached rules.
This affects my first open session as my logged in status has been changed to "OUT" by the previous login attempt.