REPEAT in webMethods

转载 2018年04月16日 23:58:33
1. The REPEAT step allows you to conditionally repeat a sequence of child steps based on the success or failure of those steps. You can use REPEAT to :

        Re-execute (retry) a set of steps if any step within the set fails.

        Re-execute a set of steps until one of the steps within the set fails.

2. Specifying the REPEAT Condition : Repeat on (FAILURE or SUCCESS) .

3. Specifying the REPEAT Counter :

        0 : does not re-execute children.
        Any value > 0 : re-execute children up to this number of times.

        -1 or blank : re-execute children as long as the specified Repeat on condition is true.

4. Important :

  • note that the children of a REPEAT always execute at least once. The Counter property specifies the maximum number the children will be re-executed.
5. Using REPEAT to Retry a Failed Step
  • If your flow invokes services that access external systems, you can use the REPEAT step to accommodate network errors, such as busy servers or connection errors, at run time. If you use the REPEAT step for this purpose, keep the following points in mind:

6. The following types of failures satisfy the FAILURE condition:

  • Expiration of a child step's Timeout limit
  • An exception thrown by a Java service
  • A document query that returns an un-permitted null value
  • If you specify multiple children under a REPEAT step, the failure of any one of the children will cause the entire set of children to be re-executed.
  • The REPEAT step immediately exits a set of children at the point of failure (that is, if the second child in a set of three fails, the third child is not executed).
  • When Repeat on is set to FAILURE, the failure of a child within a REPEAT step does not cause the REPEAT step itself to fail unless the Count limit is also reached.
  • The Timeout property for the REPEAT step specifies the amount of time in which the entire REPEAT step, including all of its possible iterations, must complete. When you use REPEAT to retry on failure, you may want to leave the Timeout value at 0 (no limit) or set it to a very high value. You can also set the property to the value of a pipeline variable by typing the name of the variable between % symbols.
  • As a developer, you must be thoroughly familiar with the processes you include  within a REPEAT step. Make  certain that the child steps you specify can safely be repeated in the event that a failure occurs. You don’t want to use REPEAT if there is  the possibility that a single action, such as accepting an order or crediting an account balance, could be applied twice.
7. Using REPEAT to Retry a Successful Step. Apart from using REPEAT to retry a failed step, you can also use it as a looping device to repeat.  a series of steps until a failure occurs. If you use the REPEAT step to re-execute successful child steps, keep the following points in mind:
  • The success condition is met if all children of the REPEAT step execute without returning a single exception.
  • If one child in the set fails, the REPEAT step exits at the point of failure, leaving the remaining children unexecuted.
The failure of a child does not cause the REPEAT step to fail; it merely ends the loop. (In this case, the REPEAT step itself succeeds and execution of the flow proceeds normally)

Original post:


三周前,公司说是可能会新到一个webMethods相关的项目,所以组织了我们几个人培训。 现在项目似乎是黄了,但是培训的东西好歹是有一定价值的。所以打算在这里做一些记录,如果以后有机会再用,或者还有人...
  • dr2tr
  • dr2tr
  • 2006-08-29 14:16:00
  • 9712


  • 2010-10-18 14:30:00
  • 4200


  • 2015年06月29日 11:02
  • 919KB
  • 下载


  • 2007年11月03日 11:19
  • 387KB
  • 下载


  • 2009年08月14日 10:52
  • 301KB
  • 下载

webMethods之Developer (4)

成功进入Developer之后,我们就可以开始工作了。比较简单的内容这里就不写了,下面只摘录一些我在做case study时的理解。 在一般编程时,我们常常需要定义一些数据类型。在Develop...
  • dr2tr
  • dr2tr
  • 2006-08-29 16:31:00
  • 2531

webMethods配置 JDBC Adapter

1.  查看IS下 Adapter 模块下是否已经安装了 JDBC Adapter。 1.1若没有需重新安装该组件。Adapters -> JDBC Adapter 6.5 1.2安装后重启IS。1....
  • sufuchao
  • sufuchao
  • 2011-01-11 11:28:00
  • 1099

webmethods sftp client

  • 2014年01月07日 16:52
  • 254KB
  • 下载

ASP.NET Web Service如何工作(1)

ASP.NET Web Service如何工作(1)SummaryASP.NET Web Service方法(WebMethods)怎样为创建Web服务提供一种高效的解决方案呢。WebMethods使...
  • sunnyzhao
  • sunnyzhao
  • 2003-06-23 13:47:00
  • 792

webMethods之Developer (5)

publish(以下简称pub)和subscribe(以下简称sub)的概念与JMS中的类似 ,可以说是webMethods中数据同步的核心部分。pub&sub主要有两个方面:本地与分布本地的pub&...
  • dr2tr
  • dr2tr
  • 2006-08-30 09:46:00
  • 2397
您举报文章:REPEAT in webMethods