I want to share a small trick I have learned from this presentation.
It is an undocumented feature of Automation Scripts that will automatically launch a script based on a special naming convention.
For example if you want to run a script each time a ASSET object is saved you just have to create an automation script (without a Launch Point) and call it ASSET.SAVE.
There are just three events that can be used:
- .NEW
- .SAVE
- .DUPLICATE
As an example lets define the a script that sets a default description when an asset is duplicated.
Open the Automation Scripts application and select Create > Script from the action menu. Create the following script.
- Script: ASSET.DUPLICATE
- Description: Override description when duplication an asset
- Language: python
- Source Code:
dupmbo.setValue("DESCRIPTION", "New asset!!!")
Thanks to Stephen Hume and Steven Cliff from BPD Zenith.
Related:
Launch Automation Script on New Record Creation in Maximo
https://www.youtube.com/watch?v=kI4bORXxbyA
Hi Bruno,
this feature is documented… sort of… if You know where to look, You can find it 😉
https://www.ibm.com/developerworks/community/wikis/form/anonymous/api/wiki/02db2a84-fc66-4667-b760-54e495526ec1/page/03ad118c-6040-43dd-bc6d-d7a03510d135/attachment/1004fd2b-1b51-411e-8df0-a8b02ca86272/media/Scritping76Features%20%285%29.pdf
heh – and even that obscure documentation that WW posted is now lost. Nice work IBM.