title: How to read external parameters from within a process?
body: <p>Here's my code that starts a process:</p>
  
  <pre><code>StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
  
  Map&lt;String, Object&gt; params = new HashMap&lt;String, Object&gt;();
  params.put("doctorsDecision", "L1");
  ksession.startProcess("MyProcess", params);
  </code></pre>
  
  <p>And here's how I expect this variable to be available in MyProcess. This is the Action of one of my script tasks in MyProcess:</p>
  
  <pre><code>System.out.println("doctorsDecision: "+doctorsDecision);
  </code></pre>
  
  <p>Is this the right way to access external variables from within a process? </p>
  
  <p>P.S.</p>
  
  <p>When I run my application, the process definition is never added to knowledge base because jBPM doesn't seem to recognize doctorsDecision variable. How can I tell jBPM that this variable is external and it's value will be provided on runtime?</p>