Which API can be used to view all global attributes? Can anyone give example code code on how to do this?
When a session is created we are using a java plugin to create or seed an entity, this entity cannot be inferred because questions are asked directly about it. With our current implementation of the plugin we are using the OnSessionCreatedEvent handler to know when to create the entity, the problem is that the event handler is triggered when a session is loaded as well which causes the session to crash since the same entity already exists.
We also tried using the OnInvestigationStarted event handler and this is triggered on a load session as well.
Our idea was to determine within the rulebase whether the session is a new or load session by counting the entity instances and if they are greater than 0 then the session is a load session.
The problem is we have not been able to see this global attribute that is inferred, we have just been able to view screen data from the current screen.