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
Expand all | Collapse all

Process Model Retry check

  • 1.  Process Model Retry check

    Posted Thu August 07, 2014 02:23 PM

    Hi All,

    I want to check the retry count value for process model in flow serviuce
    How I can achieve it.

    Thanks in advance


    #webMethods-BPMS
    #webMethods
    #BPM


  • 2.  RE: Process Model Retry check

    Posted Thu August 07, 2014 05:03 PM

    Not aware of any API providing such info.
    If you have to, try directly read it from table: WMPROCESSSTEP

    two columns:
    INSTANCEITERATION
    STEPITERATION
    HTH,


    #BPM
    #webMethods
    #webMethods-BPMS


  • 3.  RE: Process Model Retry check

    Posted Fri August 08, 2014 02:11 AM

    Hi webM vir,

    Could you explain your question in detail? Exactly what is your requirement?


    #BPM
    #webMethods
    #webMethods-BPMS


  • 4.  RE: Process Model Retry check

    Posted Fri August 08, 2014 03:24 AM

    Hi Lance,

    we have process model which invokes Flow service that perform various logic
    fetch record from table consolidate to various table and at last send file to partner’s FTP location.
    currently we facing issue of connection with FTP.
    for that we have to resubmit the process instance from MWS.

    I was planning to implement the the retry logic so that we can retry if any transaction failed while posting to FTP.

    I just want to check the value of retry count in flow service so that I can send email notification to support so that they can aware how much time retried.

    Thanks in advance.


    #webMethods-BPMS
    #BPM
    #webMethods


  • 5.  RE: Process Model Retry check

    Posted Fri August 08, 2014 08:39 AM

    Hi,

    Below is my understanding.

    You are having a process model. One of the steps in the process model doing the job of FTP after aggregation some table content. While sending the aggregated result, you are facing the connection issue. You want to figure it out in the flow step itself.

    I used wasftp:login,cd,put. We can get the status of each and every action. Depends on the status we can decide whether we want to retry the ftp process again or not. Not sure if I am address your question. Correct me if my understanding is wrong.


    #webMethods-BPMS
    #webMethods
    #BPM


  • 6.  RE: Process Model Retry check

    Posted Fri August 08, 2014 09:44 AM

    Hi,

    You have this information in the pipeline under ProcessData/TryCount.


    #webMethods
    #BPM
    #webMethods-BPMS


  • 7.  RE: Process Model Retry check

    Posted Fri August 08, 2014 10:51 AM

    You have this information in the pipeline under ProcessData/TryCount.

    Hi Arnaud,

    Could you give more info on this? where exactly we have to set it? Developer or Designer?


    #BPM
    #webMethods-BPMS
    #webMethods


  • 8.  RE: Process Model Retry check

    Posted Fri August 08, 2014 10:56 AM

    Hi Arnaud, I could see “Step Retry Count” in the step properties in Designer. Do you mean the same?


    #webMethods
    #webMethods-BPMS
    #BPM


  • 9.  RE: Process Model Retry check

    Posted Fri August 08, 2014 11:02 AM

    No.

    There is a document named “ProcessData” which is automatically filled in by the Process Engine for every step of a process. Inside you have several values, and one is named “TryCount”. It represents a String with the current iteration number of the step. You can check the definition of this document in the “Administering Process Engine” Guide.


    #BPM
    #webMethods
    #webMethods-BPMS


  • 10.  RE: Process Model Retry check

    Posted Fri August 08, 2014 11:24 AM

    yes. I got it. It is there in the input pipeline. It is there for all the services in the Process folder. So i can hardcode the value what ever i want. Thank you ArnaudW!!!


    #webMethods-BPMS
    #webMethods
    #BPM


  • 11.  RE: Process Model Retry check

    Posted Fri August 08, 2014 03:33 PM

    Hello ArnaudW,

    is there any way to get the value of max retry count value also just like trigger invoke service from trigger and implement retry mechanism ?


    #BPM
    #webMethods-BPMS
    #webMethods


  • 12.  RE: Process Model Retry check

    Posted Fri August 08, 2014 03:53 PM

    “How to get the value of max retry count ?”

    It’s simple, you just have to use “pub.flow:getRetryCount”. :wink:


    #webMethods
    #BPM
    #webMethods-BPMS


  • 13.  RE: Process Model Retry check

    Posted Sat August 09, 2014 08:35 AM

    Hello ArnaudW,

    in case of process model pub.flow:getRetryCount retrycount and max retry count return zero
    I already tried it.

    I was thinking is there any value coming like TryCount in process model for validate max value.


    #BPM
    #webMethods
    #webMethods-BPMS