Commit f4f1ce81 authored by Marta Różańska's avatar Marta Różańska
Browse files

add http configuration for pt solver

parent bca57766
......@@ -57,6 +57,9 @@ http://www.mulesoft.org/schema/mule/tls http://www.mulesoft.org/schema/mule/tls/
<spring:bean id="emsTransformer" class="transformers.ems.EMSTransformer"></spring:bean>
</spring:beans>
<http:request-config name="jwt_server_HTTP_Request_Configuration" host="${jwt_server.http.host}" port="${jwt_server.http.port}" responseTimeout="40000" doc:name="HTTP Request Configuration"/>
<http:request-config name="PT_Solver_HTTP_Request_Configuration" host="${pt_solver.http.host}" port="${pt_solver.http.port}" doc:name="HTTP Request Configuration" responseTimeout="40000">
<tcp:client-socket-properties connectionTimeout="30000"/>
</http:request-config>
</mule>
......@@ -546,11 +546,13 @@ http://www.mulesoft.org/schema/mule/imap http://www.mulesoft.org/schema/mule/ima
<when expression="flowVars.designatedSolver == ptsolver">
<until-successful maxRetries="${eai.http.failover.nb_of_retries}" millisBetweenRetries="${eai.http.failover.timeout}" synchronous="true" doc:name="Copy_of_Until Successful">
<processor-chain doc:name="Copy_of_Processor Chain">
<http:request config-ref="PTSolver_HTTP_Request_Configuration" path="/constraintProblemSolution" method="POST" doc:name="PtSolver">
<http:request config-ref="PT_Solver_HTTP_Request_Configuration" path="/constraintProblemSolution" method="POST" doc:name="PtSolver">
<http:failure-status-code-validator values="0"/>
</http:request>
</processor-chain>
</until-successful>
<set-property propertyName="http.status" value="#[message.inboundProperties.'http.status']" doc:name="Copy_of_Copy_of_Set Http status"/>
<flow-ref name="LogPayload" doc:name="Copy_of_LogPayload"/>
</when>
<otherwise>
<until-successful maxRetries="${eai.http.failover.nb_of_retries}" millisBetweenRetries="${eai.http.failover.timeout}" synchronous="true" doc:name="Until Successful">
......@@ -560,10 +562,10 @@ http://www.mulesoft.org/schema/mule/imap http://www.mulesoft.org/schema/mule/ima
</http:request>
</processor-chain>
</until-successful>
<set-property propertyName="http.status" value="#[message.inboundProperties.'http.status']" doc:name="Copy_of_Set Http status"/>
<flow-ref name="LogPayload" doc:name="LogPayload"/>
</otherwise>
</choice>
<set-property propertyName="http.status" value="#[message.inboundProperties.'http.status']" doc:name="Copy_of_Set Http status"/>
<flow-ref name="LogPayload" doc:name="LogPayload"/>
</flow>
<flow name="RefreshTokenGET">
<logger message="Sending refresh Token request to JWTServer" level="INFO" doc:name="Logger"/>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment