11/03/2015
ASimpleAutomationScript(AssetManagement)
IBM
Signin | Register
Technicaltopics
Evaluationsoftware
Community
Events
SearchdeveloperWorks
Myhome Forums Blogs Communities Profiles Podcasts Wikis Activities IBMChampionprogram
ThisBlog
MyBlogs
PublicBlogs
Search
MyUpdates
anywhere asset bi
management maxim
maximo7.5 performance
Login
toparticipate
Aboutthisblog
WelcometotheAsset
ASimpleAutomationScript
PNolan | Jan10 | Visits(667)
ManagementBlog,whereyou
canreadtheperspectivesfrom
[Link]
Blogprovidestechnicalinsightsintothe
Therearetimeswhenyoumaywishtosetadefaultvalueforanewattributeonanapplication,but
[Link]
fromoneattributetoanother
asyouareenteringtherecord,thensometimesthebestwaytodothisiswithanAutomation
[Link]
Maximoproductsolutions.
usingadefaultcontrolora
Like
Share
Tweet
sounddauntingbutyoucancreateasimplescriptwithonlyasinglelineofcodethatwillcopythevaluefromoneattribute
toanother.
Onceyouaredonesubmittingyourscriptitgetsexecutedimmediatelyandthereisnoneedtorestartyourserveror
rebuild/redeploy
Links
Manuallyinstallandconfigure...
Recenttweets
[Link].
InthefollowingexampleinthePersonapplication,wehaveaddedauserdefinedattributecalledCURRENTPHONE,and
Follow@ServMgmtConnect
wewishto
automaticallycopythevaluefromPRIMARYPHONEtoCURRENTPHONEwhenthenewPersonrecordisbeingentered.
Wewilluse
anAttributeLaunchPointscriptthatcanbeusedtocustomizefieldvalidationsandactions.
1)GoToSystemConfigurationPlatformConfigurationAutomationScriptingclickonSelectActionCreate
ScriptingwithAttributeLaunchPoint:
[Link]
1/6
11/03/2015
ASimpleAutomationScript(AssetManagement)
2)Thenenterthefollowingvalues:
LaunchPoint:PHONE
Description:SettingCURRENTPHONEfromPRIMARYPHONE
Active:CHECKED
Object:PERSON
Attribute:PRIMARYPHONE
Clickonthe'Next'button.
3)Withinthe'CreateScriptwithAttributeLaunchPoint:Step2of3'addthefollowing:
Script:PHONE
Description:SettingCurrentPhonefromPrimaryPhone
ScriptLanguage:jython
[Link]
2/6
11/03/2015
ASimpleAutomationScript(AssetManagement)
4)WithintheVariablespane,[Link]:
Variable:PRIMARYPHONE
VariableType:INOUT
Override?CHECKED
BindingType:ATTRIBUTE
LaunchPointAttribute:PRIMARYPHONE
5)WithintheVariablespane,[Link]:
Variable:CURRENTPHONE
VariableType:INOUT
Override?CHECKED
BindingType:ATTRIBUTE
LaunchPointAttribute:CURRENTPHONE
[Link]
3/6
11/03/2015
ASimpleAutomationScript(AssetManagement)
Wedon'tactuallyneedtoexplicitlydefinethePRIMARYPHONEvariablesinceitisalreadyavailableimplicitlyinsidethe
script
[Link]
all
variablesareexplicitlydefined.
6)[Link]'CreateScriptwithAttributeLaunchPoint:Step3of3'addthefollowingscript:
CURRENTPHONE=PRIMARYPHONE
[Link]
(AutomationScript)
[Link]
4/6
11/03/2015
ASimpleAutomationScript(AssetManagement)
[Link]
valueset
[Link]?checkboxcontrolsthelogiciftheLaunchPointisexecuted,andisset
tochecked
(active)[Link],unchecktheActive?checkboxandclickonSave.
7)YoucantestyourscriptbyeitheraddingormodifyinganexistingPrimaryPhonevalueinthePerson(People)
application.
CreateanewpersonrecordandenteraPrimaryPhonevalue.
OnceyoutaboutofthePrimaryPhoneattributeorsavetherecord,thephonenumbervaluewillbecopiedautomatically
fromthe
PrimaryPhoneattributetotheCurrentPhoneattribute.
Thisisasimpleexampleofascriptbutshowshowyoucancreateascriptusingonlyafewlinesofcodeandthatyou
don'tneedtobe
anexperiencedscriptwritertodothis.
AddaComment
MoreActions
AddaComment MoreActions
Comments(0)
PreviousEntry
Main
NextEntry
About
Feeds
Reportabuse
Faculty
Selectalanguage:
Help
Newsletters
Termsofuse
Students
English
Thirdpartynotice
BusinessPartners
Contactus
Follow
[Link]
5/6
11/03/2015
Submitcontent
ASimpleAutomationScript(AssetManagement)
Like
IBMprivacy
IBMaccessibility
Portugus(Brasil)
Espaol
Vit
[Link]
6/6