IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

ho to delete the used process model from MWS Admin console

  • 1.  ho to delete the used process model from MWS Admin console

    Posted Fri June 25, 2010 03:02 PM

    Hi,

    am using wM8.0.1 in windows 2003 R2 standard edition server, i have developed BPM process and published the MWS server, i have tested the process model so many times, please help me to delete the used process model from Administration–>Buisness–>Business processes.

    am anot able to select the check box of the process model to click delete button, i observed that process model check box is enabled allow us to select it and can be delete it if we did not tested the process model ( Used–>No), If process model Used–Yes, check box is diabled.

    Can any one help me on this…

    Regards,
    Anil kumar ellendula


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 2.  RE: ho to delete the used process model from MWS Admin console

    Posted Mon June 28, 2010 07:19 AM

    Hello,

    try using “pub.prt.admin:deleteProcess”, it should work if not then go through the traditional way :wink: i mean to say clear the PRT Audit db entires… according to me its the most efficient way to delete the models :slight_smile:

    try your luck!

    -nD


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 3.  RE: ho to delete the used process model from MWS Admin console

    Posted Mon June 28, 2010 01:38 PM

    Process models can’t be deleted ( at least the proper way) as long as there are instances of them logged in the database.

    The proper way to delete them (afaik) is:
    Run the Archive/Delete jobs to cleanup the log database.
    If the process instances are older than the “keep in database” value they will be archived or deleted.
    If all existing instances are gone, you can delete the process model.


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 4.  RE: ho to delete the used process model from MWS Admin console

    Posted Thu July 01, 2010 01:54 PM

    that’s why if you are looking for clean removal of process model and its instances… remove all the entries from PRT and AUDIT database… you can check advantage for the SQL scripts (queries) and the table information which all needs to be cleared for a particular process id.

    Note: its a tricky thing… but its proper… strongly recommend only to be performed by administrators in project environment…

    cheers!
    nD


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 5.  RE: ho to delete the used process model from MWS Admin console

    Posted Thu July 01, 2010 01:57 PM

    Thanks for reply to all, can you please list me the table names to clear the process instances and process model from DB.


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 6.  RE: ho to delete the used process model from MWS Admin console

    Posted Tue August 31, 2010 09:32 PM

    Anil, you can do that with the Database Component Configurator and recreate the database ProcessAudit.
    Regards!


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 7.  RE: ho to delete the used process model from MWS Admin console

    Posted Tue September 07, 2010 09:07 PM

    but, this will be erase all your process, hehe. I use it in my machine to clear the database.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 8.  RE: ho to delete the used process model from MWS Admin console

    Posted Tue September 21, 2010 06:23 PM

    This should help,

    delete from wmprocesstransition where instanceid in(select instanceid from wmprocess where processkey=‘abc’)
    delete from wmprocessstep where instanceid in(select instanceid from wmprocess where processkey=‘abc’)
    delete from wmprocessrecent where processkey=‘abc’
    delete from wmprocess where processkey=‘abc’
    delete from wmsteptransitiondefinition where processkey=‘abc’
    delete from wmstepdefinition where processkey=‘abc’
    delete from wmprocessdefinition where processkey=‘abc’
    delete from wmprocessimage where processkey=‘abc’ and modelversion=‘1’


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 9.  RE: ho to delete the used process model from MWS Admin console

    Posted Mon May 09, 2011 08:37 AM

    Just to add on, after running the above scripts, delete all instances of the process from the following tables:
    BAM_DIM_FACTAGG_V1
    BAM_DIM_PROCESS_V1
    BAM_DIM_STEP_V1
    BAM_EVENT_AGG_FACT
    BAM_EVENT_TMP_ATTR

    This ensures that the process gets deleted from Administration->Business->Business Processes page even if it has been used.


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine