如何查询自动化脚本启动点事件条件、事件类型和保存设置?
How can I query Automation Script Launch Point Event Conditions, Event Type, and Save settings?
我希望能够从我们的自动化脚本启动点查询所有详细信息,例如(但不限于)条件、事件类型和保存设置。问题是,这些是非持久字段,我不确定从哪里获取信息。我们有对象、属性、动作和集成脚本,我想要动作和集成脚本的类似详细信息。
示例:
我们 运行 Maximo 7.6.0.5 使用 Oracle 12.1。
提前感谢您的指导!
您可以在其中一些字段上按 Alt+F1 以查找支持各个部分的对象(尽管它在应用程序本身的字段和选项卡上效果更好,而不是在创建对话框上)。从那里您可以转到 Maximo 中的数据库配置应用程序以查看涉及的表。
我现在快没内存了,但我知道涉及名为 Autoscript、ScriptVars、(Script?)LaunchPoint、(Script?)LaunchPointVars 之类的表。
与事件对应的值被捕获为 Scriptlaunchpoint 对象中的代码。属性对象事件持有关键。请参阅下面的有效值列表,(仅为保存操作编译)
根据 Balakumaran 和其他来源的输入,我想出了这些 Oracle SQL 脚本来提取事件详细信息。
/*******************************************************************************
* Launch points, bitwise comparison
* Object Launch Point
*******************************************************************************/
SELECT scriptlaunchpoint.autoscript,
scriptlaunchpoint.launchpointtype,
scriptlaunchpoint.launchpointname,
scriptlaunchpoint.objectname,
scriptlaunchpoint.active,
scriptlaunchpoint.objectevent,
TRIM(CASE WHEN scriptlaunchpoint.objectevent BETWEEN 2 AND 1023 THEN ' onSave' ELSE NULL END ||
decode(bitand(scriptlaunchpoint.objectevent,1), 1, ' Initialize', NULL)||
decode(bitand(scriptlaunchpoint.objectevent,1024), 1024, ' App Validate', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,2048), 2048, ' Can Add', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,4096), 4096, ' Can Delete', NULL)) AS "EVENT",
TRIM(decode(bitand(scriptlaunchpoint.objectevent,2), 2, ' Add', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,4), 4, ' Update', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,8), 8, ' Delete', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,16), 16, ' Add', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,32), 32, ' Update', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,64), 64, ' Delete', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,128), 128, ' Add', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,256), 256, ' Update', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,512), 512, ' Delete', NULL)) AS "SAVE",
TRIM(CASE WHEN (bitand(scriptlaunchpoint.objectevent,2) +
bitand(scriptlaunchpoint.objectevent,4) +
bitand(scriptlaunchpoint.objectevent,8) > 0) THEN ' Before Save' ELSE NULL END ||
CASE WHEN (bitand(scriptlaunchpoint.objectevent,16) +
bitand(scriptlaunchpoint.objectevent,32) +
bitand(scriptlaunchpoint.objectevent,64) > 0) THEN ' After Save' ELSE NULL END ||
CASE WHEN (bitand(scriptlaunchpoint.objectevent,128) +
bitand(scriptlaunchpoint.objectevent,256) +
bitand(scriptlaunchpoint.objectevent,512) > 0) THEN ' After Commit' ELSE NULL END) AS "TIMING"
FROM scriptlaunchpoint
WHERE scriptlaunchpoint.launchpointtype = 'OBJECT'
ORDER BY autoscript, launchpointtype, objectname
;
/*******************************************************************************
* Launch points, bitwise comparison
* Attribute Launch Point
*******************************************************************************/
SELECT scriptlaunchpoint.autoscript,
scriptlaunchpoint.launchpointtype,
scriptlaunchpoint.launchpointname,
scriptlaunchpoint.objectname,
scriptlaunchpoint.active,
scriptlaunchpoint.objectevent,
TRIM(CASE WHEN scriptlaunchpoint.objectevent = 0 THEN ' Validate ' ELSE NULL END ||
decode(bitand(scriptlaunchpoint.objectevent,1), 1, ' Run action', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,2), 2, ' Initialize Value', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,8), 8, ' Initialize Access Restriction', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,64), 64, ' Retrieve list', NULL)) "EVENT"
FROM scriptlaunchpoint
WHERE scriptlaunchpoint.launchpointtype = 'ATTRIBUTE'
ORDER BY autoscript, launchpointtype, objectname
;
我希望能够从我们的自动化脚本启动点查询所有详细信息,例如(但不限于)条件、事件类型和保存设置。问题是,这些是非持久字段,我不确定从哪里获取信息。我们有对象、属性、动作和集成脚本,我想要动作和集成脚本的类似详细信息。
示例:
我们 运行 Maximo 7.6.0.5 使用 Oracle 12.1。
提前感谢您的指导!
您可以在其中一些字段上按 Alt+F1 以查找支持各个部分的对象(尽管它在应用程序本身的字段和选项卡上效果更好,而不是在创建对话框上)。从那里您可以转到 Maximo 中的数据库配置应用程序以查看涉及的表。
我现在快没内存了,但我知道涉及名为 Autoscript、ScriptVars、(Script?)LaunchPoint、(Script?)LaunchPointVars 之类的表。
与事件对应的值被捕获为 Scriptlaunchpoint 对象中的代码。属性对象事件持有关键。请参阅下面的有效值列表,(仅为保存操作编译)
根据 Balakumaran 和其他来源的输入,我想出了这些 Oracle SQL 脚本来提取事件详细信息。
/*******************************************************************************
* Launch points, bitwise comparison
* Object Launch Point
*******************************************************************************/
SELECT scriptlaunchpoint.autoscript,
scriptlaunchpoint.launchpointtype,
scriptlaunchpoint.launchpointname,
scriptlaunchpoint.objectname,
scriptlaunchpoint.active,
scriptlaunchpoint.objectevent,
TRIM(CASE WHEN scriptlaunchpoint.objectevent BETWEEN 2 AND 1023 THEN ' onSave' ELSE NULL END ||
decode(bitand(scriptlaunchpoint.objectevent,1), 1, ' Initialize', NULL)||
decode(bitand(scriptlaunchpoint.objectevent,1024), 1024, ' App Validate', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,2048), 2048, ' Can Add', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,4096), 4096, ' Can Delete', NULL)) AS "EVENT",
TRIM(decode(bitand(scriptlaunchpoint.objectevent,2), 2, ' Add', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,4), 4, ' Update', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,8), 8, ' Delete', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,16), 16, ' Add', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,32), 32, ' Update', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,64), 64, ' Delete', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,128), 128, ' Add', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,256), 256, ' Update', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,512), 512, ' Delete', NULL)) AS "SAVE",
TRIM(CASE WHEN (bitand(scriptlaunchpoint.objectevent,2) +
bitand(scriptlaunchpoint.objectevent,4) +
bitand(scriptlaunchpoint.objectevent,8) > 0) THEN ' Before Save' ELSE NULL END ||
CASE WHEN (bitand(scriptlaunchpoint.objectevent,16) +
bitand(scriptlaunchpoint.objectevent,32) +
bitand(scriptlaunchpoint.objectevent,64) > 0) THEN ' After Save' ELSE NULL END ||
CASE WHEN (bitand(scriptlaunchpoint.objectevent,128) +
bitand(scriptlaunchpoint.objectevent,256) +
bitand(scriptlaunchpoint.objectevent,512) > 0) THEN ' After Commit' ELSE NULL END) AS "TIMING"
FROM scriptlaunchpoint
WHERE scriptlaunchpoint.launchpointtype = 'OBJECT'
ORDER BY autoscript, launchpointtype, objectname
;
/*******************************************************************************
* Launch points, bitwise comparison
* Attribute Launch Point
*******************************************************************************/
SELECT scriptlaunchpoint.autoscript,
scriptlaunchpoint.launchpointtype,
scriptlaunchpoint.launchpointname,
scriptlaunchpoint.objectname,
scriptlaunchpoint.active,
scriptlaunchpoint.objectevent,
TRIM(CASE WHEN scriptlaunchpoint.objectevent = 0 THEN ' Validate ' ELSE NULL END ||
decode(bitand(scriptlaunchpoint.objectevent,1), 1, ' Run action', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,2), 2, ' Initialize Value', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,8), 8, ' Initialize Access Restriction', NULL) ||
decode(bitand(scriptlaunchpoint.objectevent,64), 64, ' Retrieve list', NULL)) "EVENT"
FROM scriptlaunchpoint
WHERE scriptlaunchpoint.launchpointtype = 'ATTRIBUTE'
ORDER BY autoscript, launchpointtype, objectname
;