Maximo

Maximo

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

 View Only
  • 1.  Route Multiple records in Workflow from List tab

    Posted 09/23/22 01:42 PM
    Hi Guys,
    Can someone guide us how to route multiple records e.g. WOs in Workflow from list tab


    thanks in Advance

    ------------------------------
    mx pro
    ON
    ------------------------------

    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: Route Multiple records in Workflow from List tab

    Posted 12/03/22 06:25 AM
    You can create an Action Automation Script and attach it to the Sig Option. Then in the Action Script you may need to loop through the mboSet and initiate the work flow.
    Below is one such example:

    app = service.webclientsession().getCurrentApp()
    maxintMboSet = app.getResultsBean().getMboSet()
    mxs = MXServer.getMXServer()
    wfsr = mxs.lookup('WORKFLOW')
    
    if(maxintMboSet.isEmpty()==False):
    maxintMbo=maxintMboSet.moveFirst()
    while maxintMbo:
    wfsr.initiateWorkflow('PRSTATUS',maxintMbo)
    maxintMbo=maxintMboSet.moveNext()​


    ------------------------------
    keshav ravindran
    ------------------------------