简体   繁体   English

Maximo 中的 Python 交互式 shell?

[英]Python interactive shell in Maximo?

In Maximo 7.6.1.1, is there a way to execute Python/Jython scripts on demand?在 Maximo 7.6.1.1 中,是否可以按需执行 Python/Jython 脚本?


For example, in other software such as ArcGIS Desktop, there is a window in the application called the Python Window:例如,在ArcGIS Desktop等其他软件中,应用程序中有一个窗口叫做Python Window:

在此处输入图片说明

In the ArcGIS python window, I can write any sort of script I want.在 ArcGIS python 窗口中,我可以编写任何我想要的脚本。

  • For example, I can write a script that loops through records in a table and updates values based on certain criteria.例如,我可以编写一个脚本,循环遍历表中的记录并根据特定条件更新值。 And I can execute it on demand.我可以按需执行它。

Is there a way to do the equivalent in Maximo?有没有办法在 Maximo 中做等效的事情? Maybe in Eclipse?也许在 Eclipse 中?

In Maximo 7.6.1.1, is there a way to execute Python/Jython scripts on demand?在 Maximo 7.6.1.1 中,是否可以按需执行 Python/Jython 脚本?


For example, in other software such as ArcGIS Desktop, there is a window in the application called the Python Window:例如,在ArcGIS Desktop等其他软件中,应用程序中有一个窗口叫做Python Window:

在此处输入图片说明

In the ArcGIS python window, I can write any sort of script I want.在 ArcGIS python 窗口中,我可以编写任何我想要的脚本。

  • For example, I can write a script that loops through records in a table and updates values based on certain criteria.例如,我可以编写一个脚本,循环遍历表中的记录并根据特定条件更新值。 And I can execute it on demand.我可以按需执行它。

Is there a way to do the equivalent in Maximo?有没有办法在 Maximo 中做等效的事情? Maybe in Eclipse?也许在 Eclipse 中?

In Maximo 7.6.1.1, is there a way to execute Python/Jython scripts on demand?在 Maximo 7.6.1.1 中,是否可以按需执行 Python/Jython 脚本?


For example, in other software such as ArcGIS Desktop, there is a window in the application called the Python Window:例如,在ArcGIS Desktop等其他软件中,应用程序中有一个窗口叫做Python Window:

在此处输入图片说明

In the ArcGIS python window, I can write any sort of script I want.在 ArcGIS python 窗口中,我可以编写任何我想要的脚本。

  • For example, I can write a script that loops through records in a table and updates values based on certain criteria.例如,我可以编写一个脚本,循环遍历表中的记录并根据特定条件更新值。 And I can execute it on demand.我可以按需执行它。

Is there a way to do the equivalent in Maximo?有没有办法在 Maximo 中做等效的事情? Maybe in Eclipse?也许在 Eclipse 中?

To build on @Preacher's answer:以@Preacher 的回答为基础:

Instructions for running an automation script on-demand (adding the EXECUTE sig option):按需运行自动化脚本的说明(添加 EXECUTE sig 选项):

  1. Application Designer --> AUTOSCRIPT:应用程序设计器 --> AUTOSCRIPT:

    • Create an EXECUTE sig option (Add/Modify Signature Options)创建 EXECUTE sig 选项(添加/修改签名选项)
    • Option: EXECUTE选项:执行
    • Description: Execute Script描述:执行脚本
    • Advanced Signature Options: None高级签名选项:无
  2. Ensure that your security group has that EXECUTE sig option in the Automation Scripts application:确保您的安全组在自动化脚本应用程序中具有该 EXECUTE sig 选项:

    • (It might be enabled by default) (它可能默认启用)
    • Screenshot (since I don't have enough Stack Overflow points to embed an image.)屏幕截图(因为我没有足够的 Stack Overflow 点来嵌入图像。)
  3. Log out of Maximo and back in again (to commit the changes).注销 Maximo 并重新登录(以提交更改)。

  4. Create an automation script创建自动化脚本

    • (Without launch points?) (没有发射点?)
    • Automation Scripts application --> Create --> Script自动化脚本应用程序 --> 创建 --> 脚本
  5. Open the automation script.打开自动化脚本。

  6. The Execute Script action will appear in the left pane.执行脚本操作将出现在左窗格中。 Use it to run automation scripts on demand.使用它来按需运行自动化脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM