Does anyone out there know how to tell in PeopleCode whether code is being called by online (e.g. Component/Record) or application engine PeopleCode?
I know this seems like a weird question so here's some context. I'm creating an application package class and this may be called by either online or application engine PeopleCode. If it is called by application engine PeopleCode the behaviour of the class needs to be different to cater for the fact that PeopleCode is running inside a process.
I was thinking of just using the %Component system variable. If it returns a blank then I figure its being called by application engine. I also looked into using some of the application engine specific system variables like %AeProgram but they are by definition application engine PeopleCode specific and aren't recognised in application package PeopleCode.
Any other ideas?
