Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - avantol13

Pages: [1]
1
Bugs and Issues / Crash on built-in script debugging
« on: November 19, 2015, 03:36:03 am »
Initial Info:
EA 12.0.1209 Corporate Edition
Windows 7 64-bit machine
Using EAExample project
Trying to debug JScript-CSV in EAScriptLib in Scripting window

Okay, so when I attempt to debug a built-in script Windows tells me that "Debug & Profile Application has stopped working". Running scripts don't appear to do anything either (no crash, but they don't execute).

Output is below:

Problem signature:
  Problem Event Name:      APPCRASH
  Application Name:      SSProfiler32.exe
  Application Version:      1.0.0.1
  Application Timestamp:      546ec596
  Fault Module Name:      ole32.dll
  Fault Module Version:      6.1.7601.18915
  Fault Module Timestamp:      55981b9e
  Exception Code:      c0000005
  Exception Offset:      0004226b
  OS Version:      6.1.7601.2.1.0.256.4
  Locale ID:      1033
  Additional Information 1:      0a9e
  Additional Information 2:      0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:      0a9e
  Additional Information 4:      0a9e372d3b4ad19135b953a78882e789


That .exe is located here on my machine:
C:\Program Files (x86)\Sparx Systems\EA\VEA\x86

Note that this doesn't crash EA. It just pops up this dialog about that EXE crashing.

Is this some kind of installation issue? I got a new machine and my IT department installed EA. Now my scripts aren't working, not even the built in example scripts. Not sure what to do/try next.

Any help is appreciated. Thanks!

Associated SO Question (I'll update when I get an answer on either one): http://stackoverflow.com/questions/33873293/debug-profile-application-failure-in-ea-for-script


2
"StateFlow" worked! Thank you so much.. I would've spent a bunch more time sifting through the help topics to figure this one out. I must've missed "StateFlow" the first time checking the different types of connectors.

Thanks,
Alex

3
I tried that and when I go into EA and look at the connection, it's a dashed line and when right clicked it says "Dependancy Properties" instead of the desired "Transition Properties".

Here's a snippet of my code. states is a List<EA.Element>

connector = (EA.Connector)states[0].Connectors.AddNew("TRANSITION_EVENT_ONE", "Transition"); //source state
            connector.SupplierID = states[1].ElementID; //destination state
            if (!connector.Update()) //check for error
            {
                Console.WriteLine(connector.GetLastError());
            }
            states[0].Connectors.Refresh();
            connector.TransitionEvent = "TRANSITION_EVENT_ONE";
            connector.Constraints.AddNew("TRANSITION_EVENT_ONE", "Signal");
            connector.Update();

On another note, the constraints attempt above doesn't appear to work either. :(

4
I'm trying to connect two states together with a transition in a C# addin. I can create the states and the "Transition" but don't know how to set the destination of the transition.

Alternatively, I've attempted using EA.Connector and setting the TransitionEvent/TransitionAction/TransitionGuard values. When using EA.Connector, it connects the 2 states but with a "dependancy"  not a "transition".

Any help would be greatly appreciated. Just getting to know the software and it's capabilities so forgive me.

Regards,
Alex

5
In the near future I will be working on a project to convert our existing state machine models in EA to C code. I am currently researching and checking some background information to judge what I will have to do to ensure that this is possible.

What's the best way to approach this problem? I've come across some frameworks for EA plug-ins, and I know EA has the capability to generate source code but I haven't been able to successfully generate code from a state machine, the option is grayed out in EA.

Eventually, I'd also like to find a way to convert source code to a state machine model in EA but I've seen on the FAQs for EA that this isn't possible? If that's true, is there a work around? I'd like to keep the source code and EA synchronized for the state machines.

Any information anyone can provide on the subject would be more than appreciated. Like I said, this is the initial research that I’m conducting, so I apologize for not having more technical knowledge of EA or its capabilities.

Thank you very much for your time,
Alex

Pages: [1]