Maximo Integration

  • 1.  Use of maximodev-cli(ADD ON Development)

    Posted Wed August 19, 2020 04:16 PM

    First of all, I am very new to Maximo add on development. So far I have been successful in creating applications using the GUI, add classes in maximo and so on.

     We recently started looking at this https://github.com/ibm-maximo-dev/maximodev-cli  

    After completing these many tasks as explained in this article

    $ npm install maximodev-cli -g

    $ maximodev-cli create addon

    $ cd bpaa_myproduct

    $ maximodev-cli create sample-classic-app

    $ maximodev-cli build

    $ maximodev-cli deploy

    We have our own Music Application created. But when we started it for our application for e.g.

    maximodev-cli create java-field-validator 

    it would put C:\windows\system32>maximodev-cli create java-field-validator

    Invalid command: java-field-validator 

    However this would work

    maximodev-cli create script-field-validator

    is that an unintentional typo or did it use to exist at one time?


    Thanks and let me know if this is a tool that is used in IBM community to develop add ons or whether other tools like this exist



    ------------------------------
    Appu Nair
    ------------------------------


  • 2.  RE: Use of maximodev-cli(ADD ON Development)

    Posted Thu August 20, 2020 08:18 AM
    Unfortunately this command was removed but is still listed in the readme. When I was testing it out I noticed it and Sean confirmed it was removed because it wasn't ready (https://github.com/ibm-maximo-dev/maximodev-cli/issues/2). I'll be honest, aside from testing we never used the CLI. I really like the idea but was worried time commitments would prevent it from being actively maintained which seems to be a valid assessment. 

    There aren't tools like this that I'm aware of, but there are good resources on the asset management developer page (https://developer.ibm.com/assetmanagement/). For example, documentation around the REST API, a 7.6.0.9 javadoc, and most importantly based on your stuff above, a Maximo command line tool document & DBC file document. The command tool did more than just calling commands inside of Maximo, but some things (like calculating the presentation difference between two XML files to generate a MXS file) are pretty easy via command line. I would look at these resources if you haven't already. https://developer.ibm.com/static/site-id/155/maximodev/dbcguide/ & https://developer.ibm.com/static/site-id/155/maximodev/toolsguide/TOOLS.html

    ------------------------------
    Steven Shull
    Director of Development
    Projetech Inc
    Cincinnati OH
    ------------------------------



  • 3.  RE: Use of maximodev-cli(ADD ON Development)

    Posted Thu August 20, 2020 09:28 AM
    Thanks very much @Steven Shull . At the very least I am more planning on using the tool under the covers and probably reverse engineer the created objects.​
    The tools link I had not seen but that gives me more ideas. Continue the good work much appreciated.  :)

    ------------------------------
    Appu Nair
    ------------------------------



  • 4.  RE: Use of maximodev-cli(ADD ON Development)

    Posted Wed September 23, 2020 04:54 PM
    I am reviving this again as I was asked by my project team to get the most relevant information. When you install an "Add On" from IBM one goes to the support site and adds the repository.zip to your existing maximo administrative workstation.e.g the SAP Add On. So you will see the TPAE installer identify the new software and it takes over building the maximo ear file,update db and all the chores.(I am not talking about the commandline approach where one uninstalls maximo.ear from WAS tun buildmaximoear.cmd) .is that kind of install package only available to IBM folks? or is there any help or documentation regarding using that as an installer...

    TPAE installer help

    ------------------------------
    Appu Nair
    ------------------------------



  • 5.  RE: Use of maximodev-cli(ADD ON Development)

    Posted Thu September 24, 2020 09:07 AM
    I'm not sure about creating a repository file for IBM Installation Manager that works with Maximo. I'm sure it's possible, but I haven't tried that yet.

    However, you can use the TPAE Configuration Tool's "Update Database and Build and Deploy Application EAR Files" option to deploy add-on changes to Maximo. You need to create a Product XML file and drop it in the C:\IBM\SMP\maximo\applications\maximo\properies\product\ folder. The file is explained here:
    https://developer.ibm.com/static/site-id/155/maximodev/dbcguide/#_the_product_xml_file

    Then you create a scripts directory in the C:\IBM\SMP\maximo\tools\maximo\en\ (or your base language) folder. That folder needs to be populated with DBC and/or MXS files that will contain the add-on configuration changes. Those files are explained here:
    https://developer.ibm.com/static/site-id/155/maximodev/dbcguide/#_getting_started_with_dbc_scripts

    The combination of Product XML plus the scripts directory and DBC/MXS files is all you need. When you run the "Update Database and Build and Deploy Application EAR Files" command from the TPAE Configuration Tool, those scripts will deploy the changes automatically to Maximo for you without the need for running command-line utilities.

    Hope this helps,
    Alex

    ------------------------------
    Alex Walter
    ------------------------------



  • 6.  RE: Use of maximodev-cli(ADD ON Development)

    Posted Thu September 24, 2020 09:17 AM
    Agreed with Alex on approach. I'm not aware of anyone who has gone through the process of integrating their product with the IBM Installation Manager. I did a quick search trying to figure out if you could create a custom package for IBM Installation Manager and haven't found any info on how. Everything I found was related to custom repositories which allows you to host your own collection of IBM packages. I'd be a little surprised if it isn't possible (it's pretty extensible and used by a lot of IBM products), but it doesn't seem common at least.

    The ConfigTool won't automatically recognize that an updatedb or build ears is required if you just extract your files into the directory but would still incorporate your product when the user executes the build ears or updatedb steps themselves. There are many third party add-ons that depend on users doing this, so it's not unexpected in this space.

    ------------------------------
    Steven Shull
    Director of Development
    Projetech Inc
    Cincinnati OH
    ------------------------------



  • 7.  RE: Use of maximodev-cli(ADD ON Development)

    Posted Thu September 24, 2020 10:08 AM
    @Steven Shull and Alex Walter,

    Your replies are much appreciated. I have conveyed this to our project team.

    Thanks once again

    ------------------------------
    Appu Nair
    ------------------------------