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

fixes in choice in Mule

parent 62e9fc15
......@@ -545,7 +545,7 @@ http://www.mulesoft.org/schema/mule/imap http://www.mulesoft.org/schema/mule/ima
<set-property propertyName="Content-Type" value="application/json" doc:name="set Content-Type to application/json"/>
<set-property propertyName="authorization" value="#[message.inboundProperties.authorization]" doc:name="Set authorization token"/>
<choice doc:name="Choice">
<when expression="#['PTSOLVER'.equalsIgnoreCase((flowVars.designatedSolver)])">
<when expression="#['PTSOLVER'.equals(flowVars.designatedSolver)]">
<logger message="Sending request to PT Solver: #[message.payloadAs(java.lang.String)]" level="INFO" doc:name="PTSolver - Logger"/>
<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">
......@@ -557,7 +557,7 @@ http://www.mulesoft.org/schema/mule/imap http://www.mulesoft.org/schema/mule/ima
<set-property propertyName="http.status" value="#[message.inboundProperties.'http.status']" doc:name="Set Http status"/>
<flow-ref name="LogPayload" doc:name="LogPayload"/>
</when>
<when expression="#['GENETICSOLVER'.equalsIgnoreCase((flowVars.designatedSolver)])">
<when expression="#['GENETICSOLVER'.equals(flowVars.designatedSolver)]">
<logger message="Sending request to Genetic Solver: #[message.payloadAs(java.lang.String)]" level="INFO" doc:name="Genetic - Logger"/>
<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">
......@@ -569,7 +569,7 @@ http://www.mulesoft.org/schema/mule/imap http://www.mulesoft.org/schema/mule/ima
<set-property propertyName="http.status" value="#[message.inboundProperties.'http.status']" doc:name="Set Http status"/>
<flow-ref name="LogPayload" doc:name="LogPayload"/>
</when>
<when expression="#['NCSOLVER'.equalsIgnoreCase((flowVars.designatedSolver)])">
<when expression="#['NCSOLVER'.equals(flowVars.designatedSolver)]">
<logger message="Sending request to NC Solver: #[message.payloadAs(java.lang.String)]" level="INFO" doc:name="NCSolver - Logger"/>
<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">
......
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