Behaviors (Method Body)can be state machines or activities - activities are easy to understand, as they are the equivalent of procedural code.
I don't understand how a state machine can be used as the behavior for an operation?
Could you Please provide a simple example for that?
---Note---
Operation is a specification-only element - imagine it as the method signature in OO programming languages. It has a name and a list of parameters.
Behavior is (among other things) what an operation (or another behavioral feature such as a reception) does when invoked - imagine it as the body of the method.