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.

 View Only
  • 1.  Prt process status

    Posted Thu July 15, 2021 12:53 AM

    Hi All,

    Can you please point me to the documentation where the details on built in services to get BPM instance details (including the process status) and to change status appropriately.

    Apparently, some sequence needs to be followed when changing the process instance status (for example, if the process instance is STATUS_FAILED, it can not be set to CANCEL). I would like to know the order that wm prt follows.

    Kind regards,
    Raj


    #webMethods
    #BPM


  • 2.  RE: Prt process status

    Posted Thu July 15, 2021 04:33 AM

    The build in services for process and process instance control are documented in the Monitor Built-in Services Reference

    online here:

    webMethods Monitor Built-in Services Reference (softwareag.com)


    #BPM
    #webMethods


  • 3.  RE: Prt process status

    Posted Thu July 15, 2021 04:59 PM

    Please look in this available monitor service and if you all the required key params from the upstream you can accomplish the CANCEL/RESUME action as well:

    pub.monitor.process.instanceControl:changeInstanceStatus Stops, suspends, or resumes a specified process instance.

    HTH,
    RMG


    #webMethods
    #BPM


  • 4.  RE: Prt process status

    Posted Mon July 19, 2021 12:42 AM

    Hi,

    Thanks for the reply. May I know the difference between these two services?

    pub.monitor.process.instanceControl:changeInstanceStatus
    pub.prt.admin:changeProcessStatus

    Tried these services to change the process status (to CANCEL), but it is failing when the process instance is already in FAILED status. Can you please advise what is the logical flow of statuses for process instances?

    Kind regards,
    Raj


    #BPM
    #webMethods


  • 5.  RE: Prt process status

    Posted Mon July 19, 2021 01:14 AM

    Hi,

    Also, in the PRTPROCESS table, there is a column called status. May I know what are all the possible values for this column and the meaning for each value?

    Looked at this documentation, but this doesn’t look to be representing the status that I’m looking for (as status 3 is missing in this list and I see that code is to indicate FAILED_ESCALATED).

    https://documentation.softwareag.com/webmethods/compendiums/v10-7/C_Admin_and_Monitor_BP/index.html#page/adminmonitorbp-compendium%2Fto-appx_statuses_2.html%23


    #BPM
    #webMethods


  • 6.  RE: Prt process status

    Posted Tue July 20, 2021 03:41 AM

    Answering both your questions -

    pub.prt.admin:changeProcessStatus is documented in the Process Engine guide (link).
    pub.monitor.process.instanceControl:changeInstanceStatus is in the Monitor guide (link).

    The possible process statuses (including EscalateFailure) are documented under the pub.prt.admin:changeProcessStatus service; see “Usage Notes” just after this service’s documentation.

    KM


    #BPM
    #webMethods


  • 7.  RE: Prt process status

    Posted Thu July 22, 2021 07:00 AM

    Hi,

    if I remember right there is an overview table in Monitor Users Guide which describes the correlation between the numeric status and their meanings.

    1 Started
    2 Completed
    4 Failed
    1024 Stopped (after setting Status as CANCEL)
    … (some more I cannot remember oob)

    As Failed is considered a final status it cannot be canceled any more. You will have to resubmit the instance and then cancel it.

    Regards,
    Holger


    #BPM
    #webMethods