I found an old thread on SourceForge regarding pseudostates and it seems exit and entry points work nicely:
@startuml
state Stopped {
state exS1 <<exitpoint>>
state exS2 <<exitpoint>>
[*] --> choice
choice --> Closed : [Position==Closed]
choice --> PartClosed : [Position==PartClosed]
choice --> Open : [Position==Open]
Closed --> exS1 : OpenDoor
PartClosed --> exS1 : OpenDoor
PartClosed --> exS2 : CloseDoor
Open --> exS2 : CloseDoor
Closed: ResetPosition / NullEncoders()
}
state Moving {
Moving : Entry / SetLed()
Moving : Exit / StopMotor(); UnsetLed()
Opening: Entry / MotorForward()
Closing: Entry / MotorBackward()
}
[*] --> Stopped
exS1 --> Opening
exS2 --> Closing
Moving --> Stopped : StopMotion
@enduml

However, I can't seem to find the keyword for a choice pseudostate. It should look like a branch in an Activity diagram i.e, a diamond.
Has this been implented yet?
Thanks,
Steve.