如何在Maximo中执行应用程序导入的应用程序时跳过脚本?

发布于 2025-01-30 20:05:31 字数 71 浏览 2 评论 0原文

在导入CSV文件时,触发了检查添加/更改的脚本。

如何跳过这个触发?或者,如何检测脚本中导入的应用程序以停止执行?

While importing a csv file, a script that checks for additions/changes is triggered.

How can I skip this triggering? Or, how can I detect the Application import in my script to stop execution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏大泽ㄣ 2025-02-06 20:05:31

您可以检查Interactive是正确的。对于应用程序导入,它将是错误的,就像所有集成一样。

另外,您可以在数据中包含一个指标。例如,许多对象都有一个sendersysid您可以将其设置为import的属性。然后,您的脚本只能调整为仅在sendersysid为null或sendersysid!='import'的情况下完成其作业。

要“在数据中包含指示器”,您将需要确保您要导入的对象结构包含或不排除将加载指示器的属性。然后,您需要在数据负载中包含该属性,并用您用来表明此记录的值来自数据负载。

例如,想象一下,您正在使用称为mxwodetail的对象结构加载工作订单,然后您将将sensersysid 设置为import> import。首先,当sendersysid设置为import时,您将更改脚本以不进行处理。接下来,您将转到mxwodetail对象结构,加载dubl/include属性对话框,并确保sendersysid尚未被检查。然后,您将指示器添加到数据中,如这样:

SITEID,WONUM,DESCRIPTION,SENDERSYSID
BEDFORD,1010,"Your work order description",IMPORT

现在,当您加载此数据时,您的脚本将看到您的指示器而不会进行处理。

You could check whether interactive is true. For an Application Import, it will be false, like it is for all integration.

Alternatively, you could include an indicator in your data. For example, many objects have a SENDERSYSID attribute that you could set to IMPORT. Your script could then be adjusted to only do its job where sendersysid is null or sendersysid != 'IMPORT'.

To "include the indicator in your data", you will need to ensure the Object Structure you are importing against Includes, or doesn't Exclude, the attribute into which you will load your indicator. You then need to include that attribute in your data load with the value you use to indicate this record came from a data load.

For example, imagine you were loading work orders with an Object Structure called MXWODETAIL, and you were going to set SENDERSYSID to IMPORT. First, you would change your script to not do its processing when SENDERSYSID is set to IMPORT. Next, you would go to the MXWODETAIL Object Structure, load the Exclude/Include Attributes dialog and make sure SENDERSYSID does not have Exclude checked. Then, you would add the indicator to your data, like this:

SITEID,WONUM,DESCRIPTION,SENDERSYSID
BEDFORD,1010,"Your work order description",IMPORT

Now, when you load this data, your script will see your indicator and not do its processing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文