Team,
in the API proxy, I have a ProxyEndpoint-1.xml, which has
FaultRules,PreFlow,PostFlow,Flows,HTTPProxyConnection configuration.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ProxyEndpoint name="ProxyEndpoint-1"> <Description/> <FaultRules/> <PreFlow name="PreFlow"> <Request/> <Response/> </PreFlow> <PostFlow name="PostFlow"> <Request/> <Response/> </PostFlow> <Flows name="a"> <Flow name ="a1"> <Condition > a1</Condition> </Flow> <Flow name ="a2"> <Condition > a2</Condition> </Flow> </Flows> <HTTPProxyConnection> <BasePath>/test/v1</BasePath> <Properties/> <VirtualHost>default</VirtualHost> </HTTPProxyConnection> <RouteRule name="default"> <TargetEndpoint>default</TargetEndpoint> </RouteRule> </ProxyEndpoint>
For more readability, I would like to create a new proxy flow XML -say ProxyEndpoint-2 in my API - which has its own set of flows -conditions (b1) -- This proxy XML have the same HTTP Proxy Connections -BasePath.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ProxyEndpoint name="ProxyEndpoint-2"> <Description/> <FaultRules/> <Flows name="b"> <Flow name ="b1"> <Condition > b1</Condition> </Flow> </Flows> <RouteRule name="b1"> <TargetEndpoint>b1</TargetEndpoint> </RouteRule> </ProxyEndpoint>
When I do this - I am not able to deploy my Proxy.. what I am missing??? How to achieve this
Hi Anil,
Actually I am not trying to create a flow inside another flow . If you notice ProxyEndpoint-1.xml and ProxyEndpoint-2.xml . they have their own flow nodes like-a1, a2, b1, b2 & based on condition i would like to execute the respective flow's..
All I want to achieve here to keep a1,a2 & b1 ,b2 flow nodes in a separate proxy.xml .. based on conditions I want to execute the appropriate flows.. there target can be same or different but base URI will be same for all the flows in the proxy
I see APigee edge has a option to add a new proxy xml in the project. I want to make use of this feature.I don't want to keep all my flow inside one proxy xml.
Regards
Murali
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |