Book a Demo

Author Topic: Simulation: Send Information from Activity Diagram to State Machine  (Read 2652 times)

epizykloid

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Hi there,

1) I have a statemachine, where one state is calling an Activity Diagram (as child diagram). In this Activity diagram I would like to write a value into a signal which then can be used by statemachine as guard condition. I tried the send signal action, but I think I failed by chosing the right target action pin.

2) I have a statemachine, where one state is calling an Activity Diagram (as child diagram). In this Activity diagram I would like to create a trigger that immediately triggers the state machine to switch state. Is that somehow possible?

Thanks in advance!

« Last Edit: December 19, 2023, 06:04:29 pm by epizykloid »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Send Information from Activity Diagram to State Machine
« Reply #1 on: December 14, 2023, 02:48:07 am »
Uhm, you can't "call" a diagram.

q.

epizykloid

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Send Information from Activity Diagram to State Machine
« Reply #2 on: December 15, 2023, 05:57:10 pm »
Sorry for the wording. I use a call behaviour and it then opens the activity diagramm. How can I express this correctly?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Send Information from Activity Diagram to State Machine
« Reply #3 on: December 15, 2023, 09:54:29 pm »
I'd guess executing a callbehavior in a do/enter/exit is what you're looking for

q.

epizykloid

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Send Information from Activity Diagram to State Machine
« Reply #4 on: December 18, 2023, 06:35:17 pm »
So far, my state has and owned behaviour, then it executes the according activity (so in the simulation the activity diagram is opened the simulation runs through it). I know I can easily assign values to a signal attribute in the state (with do/enter/exit). But I do not understand how to model this as a "task" of an activity. So far it only works when I model it as an effect of an action.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Send Information from Activity Diagram to State Machine
« Reply #5 on: December 18, 2023, 09:39:43 pm »
You should probably mention in the title that you are asking about the simulation. (I can't help with that)

q.