You can execute a script after the activity input values are evaluated or at the end of the activity.