hello guys.......................
how to create custom flows in proxy endpoint for policy attachments?
Solved! Go to Solution.
Conditional flows has an associated condition.It tells Edge, When you see this condition, perform this logic.When you create a proxy ,you will see proxyendpoint and a target endpoint . In each of these endpoints you will see a preflow, one or more conditional flow and a post flow.
For example, look at the below proxy endpoint ,you will see two conditional flows . These flows will be executed if the condition specified in the <condition></condition> is met.
Here ,Conditional flow1 will be executed only when the request URI matches /gettablet and conditionalflow2 will be executed only when the URI matches /getiphone. Hope this helps.
<?xml version="1.0" encoding="UTF-8"> <ProxyEndpoint name="Getcomputer"> <Description/> <PreFlow name="PreFlow"> <Request> <!---steps--> </Request> <Response/> </PreFlow> <PostFlow name="PostFlow"> <Request/> <Response/> </PostFlow> <Flows> <Flow name="conditionflow1"> <Description/> <Request> <!---steps-----> </Request> <Response> <!----Steps----------> </Response> <Condition>(proxy.pathsuffix MatchesPath "/gettablet") and (request.verb = "GET")</Condition> </Flow> <Flow name="conditionalflow2"> <Description/> <Request> <!---Step---------> </Request> <Response> <!-----Step----------> </Response> <Condition>(proxy.pathsuffix MatchesPath "/getiphone") and (request.verb = "GET")</Condition> </Flow> </Flows> </ProxyEndpoint>
I understand that you are trying to create a conditional flow using developer portal. You can refer the below apigee doc link which explains it clearly :
http://docs.apigee.com/api-services/content/flow-configurations
I needed to know that while creating a flow rule, which condition do we use and why do we use it?
Conditional flows has an associated condition.It tells Edge, When you see this condition, perform this logic.When you create a proxy ,you will see proxyendpoint and a target endpoint . In each of these endpoints you will see a preflow, one or more conditional flow and a post flow.
For example, look at the below proxy endpoint ,you will see two conditional flows . These flows will be executed if the condition specified in the <condition></condition> is met.
Here ,Conditional flow1 will be executed only when the request URI matches /gettablet and conditionalflow2 will be executed only when the URI matches /getiphone. Hope this helps.
<?xml version="1.0" encoding="UTF-8"> <ProxyEndpoint name="Getcomputer"> <Description/> <PreFlow name="PreFlow"> <Request> <!---steps--> </Request> <Response/> </PreFlow> <PostFlow name="PostFlow"> <Request/> <Response/> </PostFlow> <Flows> <Flow name="conditionflow1"> <Description/> <Request> <!---steps-----> </Request> <Response> <!----Steps----------> </Response> <Condition>(proxy.pathsuffix MatchesPath "/gettablet") and (request.verb = "GET")</Condition> </Flow> <Flow name="conditionalflow2"> <Description/> <Request> <!---Step---------> </Request> <Response> <!-----Step----------> </Response> <Condition>(proxy.pathsuffix MatchesPath "/getiphone") and (request.verb = "GET")</Condition> </Flow> </Flows> </ProxyEndpoint>
can we use (" ") and quot interchangeably?
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |