Managing Behavior Files
The Server hosts and manages a Behavior repository located in the following directory:
Behavior Path |
|
---|---|
Windows |
C:\ProgramData\Sage\behaviors |
Linux |
/etc/Sage/behaviors |
Behavior files must be placed on the Server machine in order for the Server to distribute them across the network. This is because the SAGE runtime looks inside these directory paths before deploying an executable module to a target Node.
Updating files using SAGE App
It is recommended to use the Behavior Manager
found within the SAGE App to manage your Behaviors.
It provides a syntax check to ensure that the file you are attempting to upload is a properly written and supported SAGE Behavior.
In the SAGE App, click the
Behavior Manager
button.Select the
Manage
drop-down menu and clickAdd Modules
.Select the targeted file and click
Ok
.Upon successful upload, your file will be copied to the proper sub-directory.
Manually updating files
The behaviors directory contains sub-directories for SAGE supported languages C++
, Java
, and Python
.
Windows64
, Windows32
, Linux64
, Linux32
C++ behavior files directory - Behavior.cppPython
Python behavior files directory - Behavior.eggJava
Java behavior files directory - Behavior.jarYou can manually move your Behaviors to their corresponding sub-directory.
Only SAGE Behaviors should reside in the Behavior directory. Supplemental libraries or files should not be stored within the Behavior repository.