You can use the “filter” feature in document action if you would like to merge only open activities.¬†¬†Task activities are based on Status there is a flag IsClosed <> TRUE which will show open activities. Then for event activities, its Date so if date is in future, it will be an “open activity.” So you would need to base your filter off this logic.