Maximo

 View Only
Expand all | Collapse all

Work Order Workflow Query

  • 1.  Work Order Workflow Query

    Posted Mon February 15, 2021 08:32 AM

    Hi All,

    New to Maximo here and attempting to create a workflow on the Work Order table with the intention of firing a Communication Template on each status update of the work order. I have the concept of this working but for some reason I am getting two update entries and I have no idea why (and is probably something simple)!

    Workflow:

    On the workflow, after the start I have a WAIT node, the event on this wait node is: maximo.workorder.statuschange.* which then moves onto a condition to check the stats not in ('CAN','COMP','CLOSE'). The negative flow here moves to the stop node, the positive flow moves back to the wait condition.

    When enabling the logging on the communication template I can see this logged twice when the status is changed - any ideas why? Is there anything I can check?






    #Maximo
    #Support
    #AssetandFacilitiesManagement
    #SupportMigration


  • 2.  RE: Work Order Workflow Query

    Posted Mon February 15, 2021 05:31 PM

    Shane,

    I work in Maximo Support and specialize in Workflow. While it sounds like you are doing things correctly we do have online training that may be of use at https://www.ibm.com/training/watsoniot/.

    Search for 'maximo workflow' to find the section on WF.

    When you say you see the communication template logged twice that must be on the Communication Log sub-tab on the Log tab in WOTrack, right? I have not heard of a problem like this before. Is it possible you have used that Communication Template in 2 places in your process? Maybe on the Wait node itself and on the Action Arrow leaving the Wait node?

    I suggest you open a Case with Support and we can do an online session to review your WF design.

    regards ..................dick






    #AssetandFacilitiesManagement
    #SupportMigration
    #Support
    #Maximo


  • 3.  RE: Work Order Workflow Query

    Posted Mon February 15, 2021 11:48 PM

    Hi Dick,

    Thanks for your reply.

    I will check out the training today and see if anything here assists with the issue so thanks for that!

    You are correct on the communication template logging - sorry, I should have elaborated on that. Yes this is against the "Log" tab on the Work Order record. This is firing twice here.

    I did re-check every connector and node in the workflow yesterday to ensure that the communication template wasn't listed twice and I couldn't see this but will also re-check this. Is there anything else I can check in the meantime?

    Thanks again,

    Kind Regards,

    Shane






    #Maximo
    #SupportMigration
    #AssetandFacilitiesManagement
    #Support


  • 4.  RE: Work Order Workflow Query

    Posted Tue February 16, 2021 07:24 PM

    Hi Shane,


    I can't think of anything else to check. What exact version of Maximo are you using? Go to Help - System Information and copy all the text there and paste it into a reply to this post. Or better yet, open a Case with Support and ask that it be assigned to me. And include the Sys Info on that Case.


    Then we can set up a webex and get logs and all that.


    As you are using Maximo you will likely have a support contract allowing you to open Cases. If you are a consultant then your client should have all that and you can open a Case with their customer number.


    But send me the Sys Info at least for now. .............dick






    #Support
    #AssetandFacilitiesManagement
    #Maximo
    #SupportMigration


  • 5.  RE: Work Order Workflow Query

    Posted Tue February 28, 2023 07:29 AM

    Hello Everyone,

    Could you please let me know if you had managed to find the cause or resolution for this issue?

    I also have a similar issue - duplicate communication log entry created on WO when its dispatched.

    Thanks in advance.

    Thanks,

    Channa



    ------------------------------
    channakshava gode
    ------------------------------



  • 6.  RE: Work Order Workflow Query

    Posted Tue February 23, 2021 03:02 AM

    Hi Dick,


    Thanks for your help. I think I just created two x cases by accident! TS005071451 and TS005071443.


    I did end up giving up for the day with this workflow and logged in again yesterday to find this is now behaving as expected?!


    So I re-built this (manually) in our TEST environment (as not sure how to export / import this between environments) and am back to square one. The workflow is starting and stopping as expected, but changing the status to INPRG is adding 2 x entries to the communication log - I cannot see anything in the workflow that would suggest that firing the communication template is happening twice though.


    Not sure if you're able to pickup those cases?

    Do you need to log out and back into Maximo after making a workflow change and triggering the workflow to run?

    Is there a way to export / import this workflow?


    I have added the System Information to the cases mentioned above. But in short we are using Maximo Asset Management v7.6.0


    Cheers Dick,


    Kind Regards,

    Shane






    #SupportMigration
    #Maximo
    #AssetandFacilitiesManagement
    #Support


  • 7.  RE: Work Order Workflow Query

    Posted Tue February 28, 2023 10:55 PM

    Hello,

    Are the emails also being sent twice through comm templates or is it just logging twice and sending email once? Can you try to remove wait node and add a task node and accept the assignment through task node and see if you face same issue? you can add status change action on the line going out of task node.



    ------------------------------
    Suhas Joshi
    ------------------------------



  • 8.  RE: Work Order Workflow Query

    Posted Wed March 01, 2023 03:29 AM
    Question:. Did you have a reason for using workflow?  I ask because I would use an escalation for this normally.





  • 9.  RE: Work Order Workflow Query

    Posted Thu March 02, 2023 12:47 AM

    Hello Everyone,

    I also have a similar issue - duplicate communication log entry created on WO when its dispatched. Email also sent twice in my case.

    But here we are using a custom workflow on PO (without any wait node) but has a custom class action associated and that is sending email when WO is dispatched.

    For most of the WO's its working fine (sending only one email with one communication log entry) but for few of the WO's issue is happening.

    As email is being sent from class file, I have also verified the class logic and found that respective methods are triggering only once with no repetition/loop. 

    What could be the issue here, is it something related to JVM? Please share your thoughts. Thanks in advance.

    Thanks,

    Channa



    ------------------------------
    Channa Maximo Consultant
    ------------------------------



  • 10.  RE: Work Order Workflow Query

    Posted Thu March 02, 2023 12:58 AM

    Hi Channa,

    Is there any pattern for which WO's this is happening? Are there any other configurations such as automation scripts invoking similar action? Try to turn on admin mode and test again. If it works then there must be something else as well doing same action.



    ------------------------------
    Suhas Joshi
    ------------------------------



  • 11.  RE: Work Order Workflow Query

    Posted Thu March 02, 2023 06:50 AM

    Hi Suhas,

    Thanks for your reply.

    i dont see any difference in WO pattern. I have verified other configurations like automation scripts.. etc so same action is not invoked.

    Today from logs i found one difference between WO's (success and failed one). The difference is, for WO where email is sent twice, there is one query executing on WO object (log message --> [WARN] [MaxCRON01] [CID-CRON-573985] BMXAA6720W - USER = (MAXADMIN) SPID = (263) app (null) object (WORKORDER) ) which is not triggered/shown up for other WO (where email is sent once).

    Seems like some lag/delay in sql execution (BMXAA6720W) might be causing this issue but not very sure.. 



    ------------------------------
    Channa
    ------------------------------



  • 12.  RE: Work Order Workflow Query

    Posted Thu March 02, 2023 07:15 AM

    This warning message should not cause any issues. You said you are sending email using a custom class and not using a communication template? Did you check the workflow history to see if the same record is going through the same node twice? Also have you attached a commtemplate to send email at the workflow node as well? (May be this is sending one email and other one sent by class?)



    ------------------------------
    Suhas Joshi
    ------------------------------