Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Maximo Mobile Technician application > Change status action is not getting recognized as User Interactive session in Maximo Base.

    Posted Thu July 11, 2024 08:52 AM
    We are on Maximo 7.6.1.3 with Mobile 8.10
    We have developed an automation script to restrict Workorder status change if there are open tasks on them.
    This script works fine in Maximo but not from Technician mobile app.
    After some troubleshooting, I've observed that Change Status action from Mobile app is not getting recognized as User Interactive session.
    There is user interactive check in the automation script code and from Maximo Mobile this check is getting failed, and the expected Error is not thrown.
    If the interactive check is removed, it throws Error.
     
    Any pointers if this is expected behavior or not is very helpful.

    Thanks



    ------------------------------
    Meghana
    ------------------------------


  • 2.  RE: Maximo Mobile Technician application > Change status action is not getting recognized as User Interactive session in Maximo Base.

    Posted Fri July 12, 2024 01:11 AM

    I believe so. At some point, I saw a comment from @Steven Shull that we can't intercept change status requests from Mobile at this stage.



    ------------------------------
    If this post helps, please consider accepting it as a solution to help other members find it more quickly.

    Maycon Belfort
    Consultant
    BPD Zenith
    Melbourne
    ------------------------------



  • 3.  RE: Maximo Mobile Technician application > Change status action is not getting recognized as User Interactive session in Maximo Base.

    Posted Fri July 12, 2024 10:10 AM

    If your Users are coming in via an API key, this link may be helpful to explain the no session:

    https://ibm-maximo-dev.github.io/maximo-restapi-documentation/authentication/apikey



    ------------------------------
    John Q. Todd
    Sr. Business Consultant
    Total Resource Management
    ------------------------------



  • 4.  RE: Maximo Mobile Technician application > Change status action is not getting recognized as User Interactive session in Maximo Base.

    Posted Mon July 15, 2024 08:39 AM

    What Maycon is referring to is the inability to use OSIN (https://ibm-maximo-dev.github.io/maximo-autoscript-documentation/integration/osevents) automation scripts on status changes. This is because we're utilizing webmethods in most of the applications today. In 9.0 we enhanced the MIF to support backdating status dates and transitioned one of the inventory applications (Issues & Transfers) to utilizing this method of changing the status. I'd like to see us move the other apps as well but no commitment on those yet. 


    There are a few times in mobile we change the interactive flag, including on status changes. You'll see this in the ChangeStatusController in the changeStatus event 



    If there are integration scenarios that you do not want this error thrown, then you have two options.

    1) You can check if it's coming from the REST API which would work for the web & mobile versions of our applications. The downside is if your integration also sends via the REST API, you would not be able to distinguish. You can do that with something like:
    if IntegrationContext.getCurrentContext() and IntegrationContext.getCurrentContext().isAPICall():
    2) You can check the mobile context. This will evaluate properly with any of the native applications and be mobile specific. However, in the web scenario, this context would not be set. You can do something like:
    if IntegrationContext.getCurrentContext() and IntegrationContext.getCurrentContext().getStringProperty("mobile")=="1":



    ------------------------------
    Steven Shull
    ------------------------------