要配置在子项目上运行的事件触发器
1. installdir/data/triggers 目录,将 project_template.events 文件复制到:
installdir/data/triggers/events
其中,installdir 是您安装 PTC RV&S Server 的目录路径。
2. events 文件夹中重命名 project_template.events 文件来表示目标子项目,例如 Aurora_Frame_Sub.events
3. 在该文件中,在变量 event.projectPath 中设置子项目的路径,例如 event.projectPath=c:/Aurora/Frame/project.pj
4. 定义要在特定事件上运行的脚本。例如:
Project.checkpoint.pre=samples/echo.js
echo.js 设置为在项目检查点事件前运行。
5. 保存修订后的 .events 文件。子项目触发器针对已识别的子项目运行。
这对您有帮助吗?