Take a look at the following example - which shows the modularization or partitioning of an activity diagram.

activity diagram with partitions

The diagram above was rendered by PlantUML with the following code:

@startuml
partition Checker {
  (*)  -> "check input"
    -->If "verbose?" then
  }

  partition Verbalizer {
     -> [Yes] "turn on\n verbosity"
  }

  partition RunnerĀ 
   --> "run\n command"


   else
     ->  [no] "run\n command"
     -> "finalize"
   Endif
     ->(*)

@enduml