I can see you use rules as the condition language, so you need to insert process instance into working memory (ksession) before you can access it inside the rule. So you can do it in two ways:
- first createProcessInstance, then insert it into ksession, and start the process instance
- employ process event listener to do it for you, take a look here for sample on how it can be done
HTH