pipeline.setReceiver( setGlobal );
pipeline.insert( globals, null );
org.drools.runtime.process.ProcessInstance instance = ksession.startProcess("org.drools.event");
StatefulKnowledgeSessionSignalEventStage signalEvent = new StatefulKnowledgeSessionSignalEventStage( "MyEvent",
instance.getId());
pipeline = new StatefulKnowledgeSessionPipelineImpl(ksession);
pipeline.setReceiver( signalEvent );
pipeline.insert( "MyValue", null );