如何在Maximo中执行应用程序导入的应用程序时跳过脚本?
在导入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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以检查
Interactive
是正确的。对于应用程序导入,它将是错误的,就像所有集成一样。另外,您可以在数据中包含一个指标。例如,许多对象都有一个
sendersysid
您可以将其设置为import
的属性。然后,您的脚本只能调整为仅在sendersysid为null或sendersysid!='import'
的情况下完成其作业。要“在数据中包含指示器”,您将需要确保您要导入的对象结构包含或不排除将加载指示器的属性。然后,您需要在数据负载中包含该属性,并用您用来表明此记录的值来自数据负载。
例如,想象一下,您正在使用称为
mxwodetail
的对象结构加载工作订单,然后您将将sensersysid
设置为import> import
。首先,当sendersysid
设置为import
时,您将更改脚本以不进行处理。接下来,您将转到mxwodetail
对象结构,加载dubl/include属性对话框,并确保sendersysid
尚未被检查。然后,您将指示器添加到数据中,如这样:现在,当您加载此数据时,您的脚本将看到您的指示器而不会进行处理。
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 toIMPORT
. Your script could then be adjusted to only do its job wheresendersysid 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 setSENDERSYSID
toIMPORT
. First, you would change your script to not do its processing whenSENDERSYSID
is set toIMPORT
. Next, you would go to theMXWODETAIL
Object Structure, load the Exclude/Include Attributes dialog and make sureSENDERSYSID
does not have Exclude checked. Then, you would add the indicator to your data, like this:Now, when you load this data, your script will see your indicator and not do its processing.