" </connections>\n" +
"\n" +
"</process>");
builder.addRuleFlow(source);
Package pkg = builder.getPackage();
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage( pkg );
StatefulSession session = ruleBase.newStatefulSession();
ProcessInstance processInstance = session.startProcess("org.drools.event");
assertEquals(ProcessInstance.STATE_ACTIVE, processInstance.getState());
assertEquals("SomeText", ((VariableScopeInstance)
((org.jbpm.process.instance.ProcessInstance) processInstance).getContextInstance(
VariableScope.VARIABLE_SCOPE)).getVariable("MyVar"));