# Is it possible to add more than one action to "do Activity" of a state (state machine)

**URL:** <https://forums.visual-paradigm.com/t/is-it-possible-to-add-more-than-one-action-to-do-activity-of-a-state-state-machine/16054>\
**Category:** UML\
**Tags:** uml\
**Created:** [May 1, 2020, 8:33am UTC](https://forums.visual-paradigm.com/t/is-it-possible-to-add-more-than-one-action-to-do-activity-of-a-state-state-machine/16054 "2020-05-01T08:33:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jedepaepe](https://avatars.discourse-cdn.com/v2/letter/j/dec6dc/32.png) [@jedepaepe](https://forums.visual-paradigm.com/u/jedepaepe)\
**Post date:** [May 1, 2020, 8:33am UTC](https://forums.visual-paradigm.com/t/is-it-possible-to-add-more-than-one-action-to-do-activity-of-a-state-state-machine/16054/1 "2020-05-01T08:33:59Z")

</div>

Hi,

I have a state with more than on “do Activity”  
I’m able to add the first.  
But when I add the second, it replaces the first.

How is it possible to have multiple “do Activity”?

yours,  
Jean-Michel

---

<div class="post-metadata">

**Author:** ![roykeung](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/roykeung/32/2313_2.png) [@roykeung](https://forums.visual-paradigm.com/u/roykeung)\
**Post date:** [May 4, 2020, 7:31am UTC](https://forums.visual-paradigm.com/t/is-it-possible-to-add-more-than-one-action-to-do-activity-of-a-state-state-machine/16054/2 "2020-05-04T07:31:14Z")

</div>

Hi Seckin,

According to [UML Spec](https://www.omg.org/spec/UML/About-UML/) Section 14.2.3.4.3

> A State may also have an associated doActivity Behavior.`

State only allow one doActivity.

Best Regards,

Roy.
