Well that could help but I'm having trouble casting the process to a processInstance:
WorkflowProcessInstance wfpI = (WorkflowProcessInstance) (process);
or
RuleFlowProcessInstance rfpI = (RuleFlowProcessInstance) (process);
doesn't work. how do you do that?