Maximo

Maximo

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

 View Only
  • 1.  Batch-apply a JP to WOs

    Posted Mon June 21, 2021 06:40 PM
    MAM 7.6.1.2:

    I have queried multiple WOs in the WOTRACK list view -- where the classification=POTHOLE. 

    I want to batch-apply a job plan to those WOs. The JP contains:
    • Planned Labor: Roads Asphalt Crew
    • Tasks
    • Priority

    Is there a way to batch-apply JPs to WOs?

    Thanks.
    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: Batch-apply a JP to WOs

    Posted Tue June 22, 2021 02:38 AM
    I don't think there is a way to batch apply job plans to work order.
    You would have to write a script to apply job plan to work orders in batch.
    If you are expecting a lot of work orders in the user's where clause then I would use the Maximo 7612 Asynchronous script. So, that user can run the apply and continue working on other tasks.

    ------------------------------
    Biplab Choudhury
    Maximo Consultant
    Tata Consultancy Services
    Melbourne
    ------------------------------



  • 3.  RE: Batch-apply a JP to WOs

    Posted Wed June 23, 2021 09:49 AM
    Dear User1971,

    While I didn't think it would work I tested using an Escalation and a Set Value Action to apply a Job Plan to a Work Order.
    I then examined the WO and the Job Plan field was populated as expected and on the Plans tab I saw the Tasks.   It worked much to my surprize.

    The Action was:
    Type:  Set Value
    Object:   Workorder
    Value:   the jpnum in single quotes such as:  'BREAKOVER'
    Parameter/Attribute:   jpnum

    Escalation:
    Applies To:  WORKORDER
    Condition:    where clause to select your WO such as:  wonum like 'DPCJP%'
    Schedule:    I used Every 2 minutes using the Set Schedule icon
    Escalation Point:   click New Row as every Escalation needs one but leave all fields blank, make sure Repeat is unchecked
    Action:    the new action created above.

    Now Save and Activate.

    Then when the Escalation runs it will apply the Job Plan to all of the selected WO.
    It is intended to be run only one time so deactivate it when it has been run.   With Repeat unchecked once it has processed a WO it will not process it again so no harm done running it again but it is a waste of resources.

    As I said I did not expect it to work but try it out.

    ------------------------------
    Dick Chertow
    L2 Maximo Support
    IBM
    Littleton MA
    ------------------------------



  • 4.  RE: Batch-apply a JP to WOs

    Posted Thu June 24, 2021 06:18 PM
    Thanks Dick. Will investigate.


  • 5.  RE: Batch-apply a JP to WOs

    Posted Tue June 22, 2021 08:16 AM
    Biplap is correct. There is special logic that occurs in bulk actions like status changes to handle it failing on some while processing successfully on others. Normally a transaction all succeeds or fails which is (typically) what you don't want in a bulk action where some succeeding is OK. There's a couple of ways you could implement it but I like the async approach Biplap suggested for things like this typically since you don't know how long it will take and applying job plans can take a while if you're doing it to a lot of work orders.

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