title: Setting global variables in karate from one feature to be used in another feature
body: <p><strong>The Problem</strong></p>
  
  <p>I have 3 different feature files. One is for EndToEndTest.feature (the integration test), one is for the create-service.feature (a basic api call), and another is for the create-tariff (an api call that requires the response from create-service.feature)</p>
  
  <p><strong>EndToEndTest.feature</strong></p>
  
  <pre><code>Feature: End To End Standard
  
    Background:
    * def result = call read('../get-user-token.feature')
    * def service = call read('create-service.feature')
    * def location = service.responseHeaders['Location'][0]
    * def serviceId = location.substring(location.lastIndexOf('/') + 1)
  
    # I want serviceId to be set globally so I can access it into the create-tariff.feature
  
    * def tariff = call read('create-tariff.feature')
  </code></pre>
  
  <p><strong>create-tariff.feature</strong></p>
  
  <pre><code>Feature: Create Tariff
  
    Background:
    * def result = call read('../../get-user-token.feature')
    * def service = serviceId
  </code></pre>
  
  <p>Its obvious the second def here (service=serviceid) will fail as it will be unable to obtain the serviceId set from the first</p>
  
  <p>My question is, what is the best way of passing the one variable (serviceId) from EndToEndTest.feature to assign to the other variable (service) in create-tariff.feature</p>