FormalParameter[] fps
= processDefinition().formalParameters();
ProcessData pd = new ProcessDataWithParams (fps);
for (int i = 0; i < fps.length; i++) {
FormalParameter fp = fps[i];
if (fp.mode() == FormalParameter.Mode.IN) {
continue;
}
String fpn = fps[i].id();
pd.put (fpn, res.get (fpn));
}