A lock device which includes a bolt actuated by a flexible shape memory element. The memory element can assume an extended or a shortened configuration as a result of heating. A constraining element which includes two points between which an intermediate portion of the shape memory extends is also provided. The two points belong to a moveable transmission element which moves when the shape memory element extends. As a result, a controlled element is moved from between an operating position and a non-operating position.