extract method to allow ScriptFlowComponent to update data before evaluating selected code