1 <routes xmlns="http://camel.apache.org/schema/spring">
2 <route id="get-blueprint-workflow-list">
3 <from uri="direct:get-blueprint-workflow-list"/>
4 <log loggingLevel="INFO"
5 message="Getting blueprint workflow list from CDS"/>
6 <to uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=invokeLog('CDS', 'Getting workflow list from CDS')"/>
8 <setHeader headerName="CamelHttpMethod">
9 <constant>GET</constant>
11 <setHeader headerName="Content-Type">
12 <constant>application/json</constant>
14 <log loggingLevel="INFO"
15 message="Endpoint to query workflows from CDS : {{clamp.config.cds.url}}/api/v1/blueprint-model/workflows/blueprint-name/${exchangeProperty[blueprintName]}/version/${exchangeProperty[blueprintVersion]}"></log>
16 <toD uri="{{clamp.config.cds.url}}/api/v1/blueprint-model/workflows/blueprint-name/${exchangeProperty[blueprintName]}/version/${exchangeProperty[blueprintVersion]}?bridgeEndpoint=true&useSystemProperties=true&throwExceptionOnFailure=${exchangeProperty[raiseHttpExceptionFlag]}&authMethod=Basic&authUsername={{clamp.config.cds.userName}}&authPassword={{clamp.config.cds.password}}&httpClient.connectTimeout=10000&httpClient.socketTimeout=30000&authenticationPreemptive=true&connectionClose=true"/>
17 <convertBodyTo type="java.lang.String"/>
19 <exception>java.lang.Exception</exception>
21 <constant>true</constant>
24 <log loggingLevel="ERROR"
25 message="GET CDS request FAILED: ${exception.stacktrace}" />
28 <to uri="direct:reset-raise-http-exception-flag"/>
29 <to uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=invokeReturnLog()"/>
33 <route id="get-blueprint-workflow-input-properties">
34 <from uri="direct:get-blueprint-workflow-input-properties"/>
35 <log loggingLevel="INFO"
36 message="Getting blueprint input properties for workflow"/>
37 <to uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=invokeLog('CDS', 'Getting input properties for workflow')"/>
39 <setHeader headerName="CamelHttpMethod">
40 <constant>POST</constant>
42 <setHeader headerName="Content-Type">
43 <constant>application/json</constant>
45 <log loggingLevel="INFO"
46 message="Endpoint to query input properties for workflow from CDS : {{clamp.config.cds.url}}/api/v1/blueprint-model/workflow-spec"></log>
47 <toD uri="{{clamp.config.cds.url}}/api/v1/blueprint-model/workflow-spec?bridgeEndpoint=true&useSystemProperties=true&throwExceptionOnFailure=${exchangeProperty[raiseHttpExceptionFlag]}&authMethod=Basic&authUsername={{clamp.config.cds.userName}}&authPassword={{clamp.config.cds.password}}&httpClient.connectTimeout=10000&httpClient.socketTimeout=30000&authenticationPreemptive=true&connectionClose=true"/>
48 <convertBodyTo type="java.lang.String"/>
50 <exception>java.lang.Exception</exception>
52 <constant>true</constant>
55 <log loggingLevel="ERROR"
56 message="GET CDS workflow input request FAILED: ${exception.stacktrace}" />
59 <to uri="direct:reset-raise-http-exception-flag"/>
60 <to uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=invokeReturnLog()"/>