title: Calling external service from corda
body: <p>There is a bank which creates a contract which is then accepted by the lender and the borrower. After signing the contract the lender provides fund to the borrower. The bank then creates an obligation state based on the data received by calling an external service automatically.</p>
  
  <p>And Now</p>
  
  <p>1) In API Layer, I am calling first flow which creates one state.</p>
  
  <p>2) In API layer itself, On success of first flow , I am calling the http request to external service and get the data.</p>
  
  <p>3) Now I pass the http response to the the second flow for creating the other state.</p>
  
  <p>Can you please let me know if there is any issue with this approach.</p>
  
  <p>Requirment is I want to trigger the first flow manually, but calling external service and initiating the second flow should happen automatically</p>
  
  <p>I had referred the link given below.
  <a href="https://stackoverflow.com/questions/47700190/making-asynchronous-http-calls-from-flows">Making asynchronous HTTP calls from flows</a></p>