ProcessToolProcessStep stepInstance = ptc.getRegistry().getStep(stepName);
if (stepInstance == null) {
throw new IllegalArgumentException("No step defined by name: " + stepName);
}
processAutowiredProperties(stepInstance, params);
res = stepInstance.invoke(prepareStep(pi, execution), params);
} catch (Exception e) {
throw new RuntimeException(e);
}
for (ProcessInstanceAttribute pia : pi.getProcessAttributes()) {