title: jBPM - Access signal event data?
body: <p>I am new to jBPM and I seem to lose something fundamental. I cannot seem to find any descent tutorial on how to make an actual process work from a developer's point of view. Therefore, I follow the official <a href="http://docs.jboss.org/jbpm/v6.1/userguide/" rel="nofollow noreferrer">jBPM 6.1 user guide</a>. I have setup the process shown in the screenshot
  <img src="https://i.stack.imgur.com/xhKW8.jpg" alt="enter image description here"></p>
  
  <p>As you can see, the process is very simple. A signal event is raised and the data given to this signal event are mapped to the <code>IncomingData</code> object. In the following script task, I write a message to the console and try to write the <code>IncomingData</code> object's testing property data content to test the handling of event's data. </p>
  
  <p>I test my process using a unit test:</p>
  
  <pre><code>@Test
  public void testProcess() {
      RuntimeManager manager = createRuntimeManager("workflow.bpmn");
      RuntimeEngine engine = getRuntimeEngine(null);
      KieSession ksession = engine.getKieSession();
  
      ProcessInstance processInstance = ksession.startProcess("testing.OA");
  
      IncomingData dataObject = new IncomingData();
      dataObject.testProperty = "Testing data 2";
      ksession.signalEvent("StartSignalWithData", dataObject, processInstance.getId());
  
  
      // check whether the process instance has completed successfully
      assertProcessInstanceCompleted(processInstance.getId(), ksession);
  
      manager.disposeRuntimeEngine(engine);
      manager.close();
  
  }
  </code></pre>
  
  <p>However, all I get in the console output is the message <code>Script task logging null</code>. Could you please explain where am I wrong?</p>
  
  <ol>
  <li><p>I am pretty confident that in my unit test, I pass the event data using the right procedure as indicated <a href="http://docs.jboss.org/jbpm/v6.1/userguide/jBPMBPMN2.html#d0e3196" rel="nofollow noreferrer">here</a>. I don't believe the problem is there...</p></li>
  <li><p>Is the problem in the modelling of the process? I have created the data object <code>IncomingData</code> which I believed it could hold the data of the event. EDIT:I have also mapped the signal incoming data to the respective data object (see the next screenshot). Is something wrong with that?</p></li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/syDZA.jpg" alt="enter image description here"></p>
  
  <ol start="3">
  <li>Am I doing something wrong while calling the <code>IncomingData</code> object in the script task? Should I use the <code>kcontext</code> or something?</li>
  </ol>
  
  <p>Could you by any chance point me to a tutorial for jBPM 6.1 or something?</p>
  
  <p>Thank you in advance</p>
  
  <p>EDIT: PS. You can find my bpmn file in <a href="https://www.dropbox.com/s/ikbjksgx7y6uj7n/workflow.bpmn?dl=0" rel="nofollow noreferrer">this link</a></p>