Hi Felix,
I could tell you that we could event listener to let some code run when the execution arrive an activity.
But I thought analyse step should be a assignee to analyse form data by handle. Your sample is verifying data automaticly. So I don't know what you want to do, again. As I always said, first of all, you should make sure your requirement.