Skip to content

Instantly share code, notes, and snippets.

@baskaran-md
Created February 11, 2015 01:56
Show Gist options
  • Save baskaran-md/6e1a6fb8d1e56270974f to your computer and use it in GitHub Desktop.
Save baskaran-md/6e1a6fb8d1e56270974f to your computer and use it in GitHub Desktop.
Conditional Flows
<Flow name="UseCase1">
<!-- Cassandra Heavy! -->
<Request>
<Step>
<FaultRules/>
<Name>ValidateKey</Name>
<Condition>request.queryparam._excludeVerify != "false"</Condition>
</Step>
<Step>
<FaultRules/>
<Name>LimitBySlowQuota</Name>
<Condition>request.queryparam._excludeSlowQuota != "false"</Condition>
</Step>
</Request>
<Condition>request.queryparam._test = &quot;usecase1&quot;</Condition>
<Response/>
</Flow>
<Flow name="cache_L2">
<Request>
<Step>
<FaultRules/>
<Name>ResponseCache_L2</Name>
</Step>
</Request>
<Response>
<Step>
<FaultRules/>
<Name>ResponseCache_L2</Name>
</Step>
<Step>
<FaultRules/>
<Name>SetCacheHeader</Name>
</Step>
</Response>
<Condition>(request.queryparam._test = &quot;usecase1&quot;) OR (request.queryparam._test = &quot;cache_l2&quot;)</Condition>
</Flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment