Maximo

 View Only
Expand all | Collapse all

Route Multiple records in Workflow from List tab

  • 1.  Route Multiple records in Workflow from List tab

    Posted Fri September 23, 2022 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 Sat December 03, 2022 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
    ------------------------------