Author Topic: Diagram simulation with prompts  (Read 602 times)

Guillaume

  • EA User
  • **
  • Posts: 587
  • Karma: +18/-0
    • View Profile
    • www.umlchannel.com
Diagram simulation with prompts
« on: January 12, 2018, 04:33:29 am »
Hi,

I need to set up an example for a project that needs to generate result values based on the input value + rules on an activity (or state chart diagram).
I had a look at Sparx EA Example. I found that triggers & signals with attributes can be used to prompt users for inputs (e.g. in the Music Player > PlayList).
Oddly I cannot get this to work on a new State diagram.
I created a Trigger call Input1 with an associated signal Input1 that has a Name attribute.
In the statechart diagram, I created a transition to the first state with:
- effect = this.input1=this.Input1.Name
- Triggers = Input1 (Signal) -> an entry is visible in the list.

When running the interpreted simulation, EA doesn't stop nor prompt for anything. What seems to be missing?

Also, can I triggers on Activity Diagrams to prompt for values when running the simulation?

Thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com | Automated tests for scripts & addins: www.eatests.com

Nizam

  • EA User
  • **
  • Posts: 142
  • Karma: +5/-1
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Diagram simulation with prompts
« Reply #1 on: January 12, 2018, 04:06:47 pm »
Hi Guillaume
Have you looked at the 'Example Model.Model Simulation.State Machine Models.Customer Login.Customer.Customer Login' Example

the 'Login' state's entry behavior has the following in 'behavior'
dialog.Login.Show=true;

and the dialog refers to the win32Dialog (Login).

Nizam

Start sharing EA Models to wider teams now!!.
View EA Diagram Online or Take a Trial Try Now

Guillaume

  • EA User
  • **
  • Posts: 587
  • Karma: +18/-0
    • View Profile
    • www.umlchannel.com
Re: Diagram simulation with prompts
« Reply #2 on: January 12, 2018, 05:21:39 pm »
Hi Nizam,

Yes I looked at it but I found the dialog window from a trigger & signal better as it does not require to define any custom window.
Where the BPMN + Win32 dialog works ok, I'm still interested in understanding how to make the Triggers/Signal work on a common activity diagram.

thanks
« Last Edit: January 12, 2018, 07:28:10 pm by Guillaume »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com | Automated tests for scripts & addins: www.eatests.com

Nizam

  • EA User
  • **
  • Posts: 142
  • Karma: +5/-1
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Diagram simulation with prompts
« Reply #3 on: January 13, 2018, 03:11:26 pm »
Hi Guillaume
True, i thought the  music player  playlist example (in the old example model) was an activity diagram. But realized its a state diagram too.
Event the event driven example of Activity diagrams doesn't seem to stpo for external triggers. (Example Model.Model Simulation.Activity Models.Order Processing.MultipleOrders.Multiple Orders)

have to seek Support inputs on this?

Best Regards
Nizam Mohamed

Start sharing EA Models to wider teams now!!.
View EA Diagram Online or Take a Trial Try Now