This documentation is for WSO2 Enterprise Integrator version 6.0.0 . View documentation for the latest release.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<template name="ep_template">
     <parameter name="codes"/>
     <parameter name="factor"/>
     <parameter name="retries"/>
     <endpoint name="$name">
            <default>
                <timeout>
                     <duration>$timeout</duration>
                     <responseAction>$action</responseAction>
                </timeout>
                <suspendOnFailure>
                     <errorCodes>$codes</errorCodes>
                     <progressionFactor>$factor</progressionFactor>
                </suspendOnFailure>
                <markForSuspension>
                     <retriesBeforeSuspension>$retries</retriesBeforeSuspension>
                     <retryDelay>0</retryDelay>
                </markForSuspension>
            </default>
     </endpoint>
</template>

...

Code Block
<endpoint name="ep1" template="ep_template">
       <parameter name="timeout" value={get-property('timeout)} />    <!-- timeout is defined using a Property mediator outside the endpoint configuration -->
       <parameter name="codes" value="10001,10002" />
	   <parameter name="factor" value="1.0" />
	   <parameter name="retries" value="5" />
</endpoint>
Code Block
<endpoint name="ep2" template="ep_template">
           <parameter name="codes" value="10001,10003" />
	   <parameter name="factor" value="2.0" />
	   <parameter name="retries" value="3" />
</endpoint>

...