Overview
Application Logic is a scene that functions on application level.
Create a new or edit an existing Application Logic scene. Consider Application logic as a new scene that gets created by PRIME at startup and runs continuously while the PRIME application is running. There are a limited amount of scene resources available such as GPI out, PRIME Switcher and XKeys. Parameters, Conditions and expressions are available as well. The parameters defined here have a scope beyond Scene and Project parameters. Parameters defined here are available to all scenes in all projects.
Application Logic Scene
When Prime is started, Application Logic Scene is loaded with all the events, conditions and resources inside it. Prime creates an empty Application Logic Scene by default called “Default.pal” and stores it in Prime\Settings\Logic folder.
- To view or edit in Editor:
- File > Application Logic > Edit Application Logic
- To create a new Application Logic Scene:
- File > Application Logic > New Application Logic
Application Logic scene currently supports Data, GPI In, GPI Out, Hot Key, JavaScript, Keyboard Bank, Message, Switcher, Table, and X-Keys resources.
Resources supported by Application Logic
These resources can be used the same way they are used in a project scene. There are numerous scenarios this scene will enhance the experience of designing and working with Prime.
Examples of use cases:
Data object is created to evaluate conditions stored in Application Logic Scene.
This example shows a data object, which is used to evaluate conditions to modify application parameters.
In this example Data 1 object loads its content from data source and fires Data Ready event, which can be used to send a message stored in Message1 object