I'm not sure if I understood the question, but if what you need is to access process variables inside your rules, you can use something like this:
rule A | |
| ruleflow-group "ABC" |
| when |
| | $process: WorkflowProcessInstance() |
| then |
| | Map variable = (Map)((WorkflowProcessInstance)kcontext.getKnowledgeRuntime().getProcessInstance($process.getId())).getVariable("variableName"); |
end