Dear Support,
I need some tips about how to prepare a strategy to able to discover if it is running Local or Remote?
If it runs Local, it has to write data to an output file.
If it runs Remote, it is not possible to write to a file, so the file output functions must be not executed.
I know about IEngine.RunMode(), so technically we should be able to discover the platform type, and allow/disallow the file writing functions.
The problem is that the strategy definition starts with
...
@RequiresFullAccess
public class MyStrategy implements IStrategy {
...
And this @RequiresFullAccess gives troubles under Remote mode.
Is the place of this @RequiresFullAccess line must be the 1st line before the strategy's class definition? Or I could move this line into the onStart() function, and call it after context.getEngine() was called.
Or what else could I do?
As I said, I want the same strategy to be used, no matter where it is running.