Sorry, I forgot to mention that the WorkflowProcessInstance object is not a fact by default. You need to insert it before the Rule Node is executed. One way to do this is to add a Script Task node that executes:
kcontext.getKnowledgeRuntime().insert(kcontext.getProcessInstance());