First of all, knowledge base is a runtime representation of your processes, rules, etc so there is no need to have two of them especially in terms of execution. For execution you use sessions that you can create as many as you want from the same knowledge base and these sessions are independent from each other, they share same definitions but that's it. So in your case you could create two session each for every process instance you're currently testing. Just make sure you put the facts into both sessions. Nevertheless, I do think it should be possible to achieve this with just one session, as I don't know all the details of your scenario here is a generic one:
An example of the condition could be like this (please note I did not test it so could be not 100% executable)
o: Order() p: WorkflowProcessInstance() String( this == o.orderId ) from p.getVariable("OrderId")
HTH
Sent a test project to your private email address. HTH to clarify things. Tell me if you need more information.
Maciej found the remaining problem
The variable for the WorkflowProcessInstance MUST be named "processInstance". Otherwise there will be not the expected behaviour.
I created an issue for it: https://issues.jboss.org/browse/JBPM-3626