Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Melodic
melodic-integration
Commits
f4f1ce81
Commit
f4f1ce81
authored
Feb 12, 2020
by
Marta Różańska
Browse files
add http configuration for pt solver
parent
bca57766
Changes
2
Hide whitespace changes
Inline
Side-by-side
mule_esb/mule-integration/src/main/app/global.xml
View file @
f4f1ce81
...
...
@@ -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>
mule_esb/mule-integration/src/main/app/implementation.xml
View file @
f4f1ce81
...
...
@@ -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"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment