BPM, Workflow, and Case

 View Only
  • 1.  BAW - Configuring the cleanup service and cleanup jobs

    Posted 16 days ago

    Hi All,

    I need to configure the cleanup service and cleanup jobs in a script. Through the console it can be done by following Configuring the cleanup service and cleanup jobs
    I was hoping that there was a wsadmin process for doing this but I raised a case with IBM and they said no. 
    I looked at the updating the config-bpc.xml directly ( I know not a good idea) but it uses xmi:id number ids and I am not sure how they are derived.

    Does anyone have any suggestions on how to configure this through a script as I need to add it to a build pipeline.

    Thanks,

    Rab. 

    Ibm remove preview
    Configuring the cleanup service and cleanup jobs
    Use the administrative console to configure and schedule cleanup jobs that periodically delete instances of BPEL processes and human tasks that are in particular states.
    View this on Ibm >

    .



    ------------------------------
    Rab McGill
    ------------------------------


  • 2.  RE: BAW - Configuring the cleanup service and cleanup jobs

    Posted 13 days ago

    That cleanup script is for BPEL processes, so, just to confirm - are you looking to cleanup BPEL processes/tasks? This script won't work with any of BAW processes and tasks. So, I'd like to make sure you are aware of that. 

    If we talk about the standard BAW processes and tasks then there is a number of ways how those can be automated to run on regular basis or as part of the pipeline.



    ------------------------------
    Sergei Malynovskyi
    ------------------------------



  • 3.  RE: BAW - Configuring the cleanup service and cleanup jobs

    Posted 13 days ago

    Hi Sergei, 
    Thanks for replying. Yes this is for BPEL processes. We are in the process of migrating an old WPS infrastructure to BAW. The old WPS build documentation has a number of manual steps through the console to configure it. Configuring the cleanup service and cleanup jobs is one of the manual steps. 
    For the BAW build it is all being done via a build pipeline and hence I need to be able to script similar functionality. By the looks of things there are no wsadmin commands that I script to activate this functionality. 
    Regards,

    Rab. 



    ------------------------------
    Rab McGill
    ------------------------------



  • 4.  RE: BAW - Configuring the cleanup service and cleanup jobs

    Posted 13 days ago

    Hi Rab - 

    Got it. Well, there is no exact "analog" of that same cleanup service and cleanup jobs that you found on the link but there is a number of scripts (jython) you could use to do the same thing - 

    Deleting completed task instances - 

    https://www.ibm.com/docs/en/baw/20.x?topic=objects-deleting-completed-task-instances

    Deleting BPEL process instances - 

    https://www.ibm.com/docs/en/baw/20.x?topic=objects-deleting-bpel-process-instances

    You should be able to use those to accomplish your task and add it to the pipeline. You could also use REST API's if that's easier from a pipeline configuration standpoint - 

    https://www.ibm.com/docs/en/baw/20.x?topic=instance-delete

    Hope this helps.



    ------------------------------
    Sergei Malynovskyi
    ------------------------------



  • 5.  RE: BAW - Configuring the cleanup service and cleanup jobs

    Posted 13 days ago

    Hi Sergei,

    Thanks for the information I will investigate the methods you have suggested.
    Have a great day.
    Rab. 



    ------------------------------
    Rab McGill
    ------------------------------