Cohesive Maximo 7.x Automation Scripting

36
Butch Berlemann 03/20/15 Maximo Automation Scripting 7.x

Transcript of Cohesive Maximo 7.x Automation Scripting

Page 1: Cohesive Maximo 7.x Automation Scripting

Butch Berlemann 03/20/15

Maximo Automation Scripting7.x

Page 2: Cohesive Maximo 7.x Automation Scripting

About Cohesive Solutions

Cohesive Solutions operates out of Kennesaw, Georgia. Cohesive provides business process transformation and consulting services which enables organizations to achieve higher ROI from their assets and the information technology that manages and maintains those assets. Cohesive’sprofessionals have been serving clients since 1990.

For more information visit www.cohesivesolutions.com or contact Matt Logsdon at [email protected]

2

Page 3: Cohesive Maximo 7.x Automation Scripting

About Me – Butch Berlemann Senior Technical Consultant at Cohesive

Solutions IBM Certified Advanced Deployment

Professional IBM Certified Infrastructure Deployment

Professional Over 13 Years of Experience Developing

Maximo and GIS Systems Automation Scripting Nerd !

Contact: [email protected]

Page 4: Cohesive Maximo 7.x Automation Scripting

4

Automation Scripting- 2 Parts

Part 1 Part 2

Launch Points – Execute the Code Scripts – “The Code”

Page 5: Cohesive Maximo 7.x Automation Scripting

Launch Points – Types

Object

Attribute

Action

Custom

5

Page 6: Cohesive Maximo 7.x Automation Scripting

Launch Points - Objects

Initialize

Add

Update

Delete

Condition

Examples- WORKORDER – PM - ASSET

6

Page 7: Cohesive Maximo 7.x Automation Scripting

Launch Points – Continued

Attribute Script is executed when a field value changes

Action Workflows, Escalations, UI Buttons, Select Actions drop

down

Custom Script is executed when the condition is evaluated

7

Page 8: Cohesive Maximo 7.x Automation Scripting

Variables

Implicit and Explicit

Implicit

IN

INOUT

OUT

Explicit

app

user

mbo

errorkey

8

Page 9: Cohesive Maximo 7.x Automation Scripting

Advantages to Automation Scripts

Alternative to Java Customizations

NO Java skills or Maximo API knowledge required

Stored in the database

Migratable

Faster Turn Around

No Compiling

No EAR Build

No System Outages

No access to UI components9

Page 10: Cohesive Maximo 7.x Automation Scripting

JavaScript

Simple

Wide Knowledgebase

Baked in Goodness

Resources http://www.tutorialspoint.com/javascript/

http://www.w3schools.com/js/

http://stackoverflow.com/

10

Page 11: Cohesive Maximo 7.x Automation Scripting

How to ??

Creating a Object Based Automation Script

11

Page 12: Cohesive Maximo 7.x Automation Scripting

Opening the Automation Script Application

12

Page 13: Cohesive Maximo 7.x Automation Scripting

Create Script with Object Launch Point

13

Page 14: Cohesive Maximo 7.x Automation Scripting

Configuring the Object Launch Point

14

Page 15: Cohesive Maximo 7.x Automation Scripting

Configuring the Script

15

Page 16: Cohesive Maximo 7.x Automation Scripting

Configuring the Script – Continued

16

Page 17: Cohesive Maximo 7.x Automation Scripting

The Star of the Show !!! The Script !

17

Page 18: Cohesive Maximo 7.x Automation Scripting

Error !

18

Page 19: Cohesive Maximo 7.x Automation Scripting

Success !

19

Page 20: Cohesive Maximo 7.x Automation Scripting

Logging

20

Page 21: Cohesive Maximo 7.x Automation Scripting

The Logging Application

21

Page 22: Cohesive Maximo 7.x Automation Scripting

Automation Scripting Root Logger

22

Page 23: Cohesive Maximo 7.x Automation Scripting

Testing ! - Load a Work Order

23

Page 24: Cohesive Maximo 7.x Automation Scripting

Log file output

24

Page 25: Cohesive Maximo 7.x Automation Scripting

Runtime Errors

25

Page 26: Cohesive Maximo 7.x Automation Scripting

Enhancements at 7.6 - Attribute Launch Point

Initialize

Access level

Set Value

Retrieve

List of valid Values

26

Page 27: Cohesive Maximo 7.x Automation Scripting

Enhancements at 7.6 – Object Launch Point

Creation

Deletion

Save

Before Save

After Save

After Commit

27

Page 28: Cohesive Maximo 7.x Automation Scripting

Enhancements at 7.6 – Library Script

28

Page 29: Cohesive Maximo 7.x Automation Scripting

Enhancements at 7.6 - Cron

Configuring

Class = com.ibm.tivoli.maximo.script.ScriptCrontask

Parameter

SCRIPTARG = argument

SCRIPTNAME = Script you want to run

Run As User

29

Page 30: Cohesive Maximo 7.x Automation Scripting

Enhancements at 7.6 - MIF

Inbound

Outbound

30

Page 31: Cohesive Maximo 7.x Automation Scripting

Enhancements at 7.6 – Dialog Boxes

OK

Close

Cancel

Yes

No.

31

Page 32: Cohesive Maximo 7.x Automation Scripting

Enhancements at 7.6

Saving Time with Automation Scripts https://www.ibm.com/developerworks/community/blogs/a9ba1efe-b731-4317-9724-

a181d6155e3a/entry/saving_time_with_automation_scripts?lang=en

32

Page 33: Cohesive Maximo 7.x Automation Scripting

Automation Scripting Limitations

Admin Mode

UI

NOVALIDATION

33

Page 34: Cohesive Maximo 7.x Automation Scripting

Lessons from the Trenches

JavaScript

DEBUG

Standards

Performance

34

Page 35: Cohesive Maximo 7.x Automation Scripting

Questions

35

Page 36: Cohesive Maximo 7.x Automation Scripting

Want More !!!!

Contact- Sean Clark-McCarthy

Operations Manager

[email protected]

36