barrymavin
2012-10-20, 22:12
Lianja Beta10 extends the Lianja system object with three new methods;
Lianja.spawnApp("appname", "username", "password")
Lianja.run("command" [,"commaseparatedarglist"])
Lianja.spawn("command" [,"commaseparatedarglist"])
All of these methods return true on success and false on failure. The new processes are children of the parent process and will be terminated when the parent process completes. "username" and "password" should be specified so that roles and permissions work correctly within your Apps.
These should only be used at runtime when apps are run from the Lianja App Center. If you run these in development mode then you will get errors as the tables need to be opened exclusively. In runtime mode tables are opened shared.
Also worth pointing out is that spawnApp() will run the specified App in runtime mode. The splashscreen will also not be displayed.
Lianja.spawnApp("appname", "username", "password")
Lianja.run("command" [,"commaseparatedarglist"])
Lianja.spawn("command" [,"commaseparatedarglist"])
All of these methods return true on success and false on failure. The new processes are children of the parent process and will be terminated when the parent process completes. "username" and "password" should be specified so that roles and permissions work correctly within your Apps.
These should only be used at runtime when apps are run from the Lianja App Center. If you run these in development mode then you will get errors as the tables need to be opened exclusively. In runtime mode tables are opened shared.
Also worth pointing out is that spawnApp() will run the specified App in runtime mode. The splashscreen will also not be displayed.