IT Process Automation

  • 1.  Reset Operator

    Posted Jan 31, 2018 12:35 PM

    Hi All,

     

    I am trying to reset the failed operator using reset operator. But after the reset operator succeed the process went to blocked state. Can anyone help me to know more on this.

     

    Regards,
    Amala



  • 2.  Re: Reset Operator

    Broadcom Employee
    Posted Jan 31, 2018 12:48 PM

    The Blocked state indicates the process did not have a path it could successfully travel down.  Is the process looping back to the failed operator?  Something like this:

     



  • 3.  Re: Reset Operator

    Posted Jan 31, 2018 01:04 PM



  • 4.  Re: Reset Operator

    Broadcom Employee
    Posted Jan 31, 2018 01:14 PM

    That is looped, something else must be blocking, can you take a more comprehensive screenshot of a blocked instance?



  • 5.  Re: Reset Operator
    Best Answer

    Posted Jan 31, 2018 01:24 PM

    I'm not sure if that's the best way to do this. 

    You can check your log on the running instance

     

    And it will probably lead to an unreachable path due to there is nowhere to go when the conditions yellow and maybe red are satisfied.

     

    Is this the only operator that have to be retried?

    If it is, fine. 

     

    What I think is the best way to work with pam is use the execption handler as this

     

    The GetError Operator checks the necessary conditions to allow a retry or simple throw the exception,

    If the blue condition is satisfied, you retry the failed operator

    In most of the cases I've worked I put a 10 times max retry variable. something like this

     

    Process[OpName].retry = false;

    for (var i = 1; i <= 4; i++) {
        var operatorSource = Process["Exception_" + i].Source;

        Process.faltOperator = operatorSource;
        if (operatorSource != undefined &&
            Process[operatorSource].scriptOutput != undefined &&
            Process.retryCount <= Process.maxRetry) {

            Process[OpName].retry = true;
            Process.retryCount++;
        }   
    }

    And the reset operator receives the Process.faltOperator