Maximo Open Forum

 View Only
  • 1.  How to bypass the java filed validation to call the automation script on field?

    Posted 06-22-2023 06:19

    Hi All,

    We have a java class validation on ACTSTART and ACTFINISH field in WO object. Now the class does not allow to insert the future date for both the field and requirement is to remove the validation of java class and call the automation script on those field. Without changing the default functionality.

    Is it possible to bypass java validation?

    Thank you in advance!

    #Workorder #maximo #ibm #validation 


    #Assets

    ------------------------------
    Tanishk Rathi
    Tata consultancy services
    ------------------------------


  • 2.  RE: How to bypass the java filed validation to call the automation script on field?

    Posted 06-23-2023 10:57

    I think the preferred way to do this would be to create your own attributes, MYACTSTART and MYACTFINISH, and have autoscripts on those that do the validation you want for the Attribute Launch Point -> Validation event and then for the Attribute Launch Point -> Run action event do something like `mbo.setValue("ACTSTART", mbo.getDate("MYACTSTART"), mbo.NOVALIDATION)`.



    ------------------------------
    Jason Uppenborn
    Cohesive
    ------------------------------



  • 3.  RE: How to bypass the java filed validation to call the automation script on field?

    Posted 06-28-2023 06:42

    Hi Jason,

    Thanks, we also thought for the same. 



    ------------------------------
    Tanishk Rathi
    Tata consultancy services
    ------------------------------



  • 4.  RE: How to bypass the java filed validation to call the automation script on field?

    Posted 06-24-2023 11:46

    Never intentionally violate Maximo business rules because you don't know what you will break by doing it. If you don't want to use them as intended, use custom attributes. ACTFINISH is used to copy over to PM.LASTCOMPDATE for example which is also not intended to be a future date. 



    ------------------------------
    Steven Shull
    IBM
    ------------------------------



  • 5.  RE: How to bypass the java filed validation to call the automation script on field?

    Posted 06-28-2023 06:42

    Hi Steven,

    You are correct. It may cause future issues. 



    ------------------------------
    Tanishk Rathi
    Tata consultancy services
    ------------------------------



Newest Episode
Ep. 10 | How Naviam DataStudio Makes Data Imports Easier with Lee Daley

Steven Shull and Lee Daley explore how Naviam DataStudio helps IBM Maximo teams simplify bulk data imports, validate information before loading, and improve data quality and management.

MORE by Naviam Episode 10: How Naviam DataStudio Makes Data Imports Easier with Lee Daley
Watch Episode 10
Also available: Ep. 9 | Best Maximo Resources to Stay Informed