You can automate activities and tasks within a process variation. However, if you automate a shared activity, the automation will not apply to all variations in which the shared activity is linked. In comparison view, when you copy an automated activity to another variation, automation will not apply to that activity in the variation to which it is copied.