Book a Demo

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 - Mhatch

Pages: [1] 2
1
General Board / Re: BPMN relocating elements
« on: January 01, 2015, 06:16:47 am »
If someone could report on the status of these three 'bugs/features' in the release candidate it would be appreciated (I cannot install it due to locked down workstation).  I'm currently using version 11.1.1112.

1. Existing items dropped onto a BPMN model are moved to the package where the model resides (Bad!).  
2. When adding a pool to a diagram, a new CollaborationModel is added as the parent of the working diagram (Confusing.)
3. The default properties page of BPMN objects is the BPMN properties, rather than the general page. (Annoying.)
4. After changing an Intermediate Event BPMN Type to something other than the default (blank), it is not possible to change it back.

Thanks!
-Mike

2
General Board / Information Items Conveyed- doesn't 'Find in Diag'
« on: July 26, 2011, 07:30:42 am »
When I use Information Flow relationships between elements and indicate 'Information Items Conveyed' on the relationships, I cannot subsequently find these elements through search or 'Find in diagrams' (Ctrl+U).  

How can I perform a search or find diagrams with information flow relationships that convey items (like classes)?

Repro:
1. Create a diagram with any two elements
2. Create a 'class' element, but do not add it to the current diagram
3. From the 'common' toolbox, select Information flow and link the two elements from step 1.
4. In the 'Information Items Conveyed' dialog that pops up, click 'Add'
5. Select the class element from step 2.
6. In the Project Explorer, select the same class element and type Ctrl+U
   - The current diagram is NOT displayed/found, even though the class is conveyed in the relationship
7. Type Ctrl+F and type the name of the class from step 2 and 5.  
  - The current diagram is not found.

3
I really respect the complexity you're having to deal with.

At the same time, as the maker of the tool that provides the visualization, and control over the visualization, you've clearly heard from your users in the past that element visibility should be controllable since you have features to allow different elements to be toggled on/off.

I humbly request that the features controlling label visibility work for connectors, regardless of where the data comes from, and how it is managed within the model 'schema'.

I'm 70% done with a script that will toggle this for information flows, and will post it here when complete.

4
I second this issue, which I would call a bug from previous versions, since you could go into Diagram Properties -> Connectors -> Show Stereotype Labels and deselect the option and the diagram would not display the connector stereotypes for Information Flow.  In V11 this no longer works, and there does not seem to be a way to hide the stereotype labels.

I don't accept the idea that "the <<flow>> keyword is ... part of the notation .. and it would be wrong to hide it".  The whole point of visualizations (diagrams) is being able to control the presentation according to different stakeholder needs, and sometimes it is appropriate to hide information.  And besides, sparx used to do this, and it obviously provides the feature in general, it just no longer works for Information Flow connectors specifically.

5
Yes certainly wouldn't want to break established customers scripts.  This could be added as a new script, though, and any new scripts created could use the new include as the default.
[edit]I realized another approach would be to simply add the object from my script into the existing script, making the constants available both ways.  Since I've encapsulated all the constants into an 'EA' object, they would not conflict with the existing ones.  A little wasteful because they would all be defined twice, but would allow people to migrate gracefully.[/edit]

Just a thought.  Anyone really anxious enough about this could do it manually as I have done.  (I've been reading a number of javascript patterns & performance books, which highlighted the risks of the javascript global namespaces, which is one of it's weaknesses).


6
The default EAConstants-JScript file - included in every new JScript and JavaScript as
Code: [Select]
!INC Local Scripts.EAConstants-JScriptpollutes the global namespace by leaving all the variables global.

I've updated the script to wrap the constants in an object literal, which cleans up the namespace, and unifies the constants with the other EA automation objects by making them accessible through the 'EA.' namespace:
Code: [Select]
Session.Prompt( "Prompt text", [highlight]EA.promptOK[/highlight]);
I'd suggest updating the script and documentation.  If you'd like to update your scripts,  simply copy/paste the script below into a new Normal Script group ('Utilities' in the example below, script name is still 'EAConstants-JScript') and change your includes as follows:

Code: [Select]
!INC Utilities.EAConstants-Jscript
//!INC Local Scripts.EAConstants-JScript

https://github.com/mikehatch/SparxScripts/blob/master/EAConstants.js

7
Yeah, now that you mention it, I remember chasing this some while back.  I was never able to figure out what the ProgID for the WebBrowser control was that would successfully instantiate inside of the AddTab method and gave up.

In this world of HTML5+CSS+JavaScript apps, it would be really useful to be able to create new visualizations on Sparx data within the UI using this approach (Scripts that launch a browser window and inject the visualization).

Any other ideas out there?  Thanks!

8
Yes, but I do not see the documentation for how to access it and automate it from scripts?

9
I would like to create a custom view using HTML5, CSS, and JavaScript by adding a new tab within Sparx by calling
Code: [Select]
Repository.AddTab() with parameters such as
Code: [Select]
AddTab("ViewName", "InternetExplorer.Application") and then injecting HTML and script, etc., but this doesn't work?

I know that it is possible to create a new custom control that rehosts a web browser control to do this, but then I have to deploy that, whereas everyone on my network should already have this component available.

Is it possible to enable this scenario?

10
I have a script that automates creating diagrams in Visio.  I have been porting it from a 'JScript' to 'JavaScript' type scripts (select 'New JavaScript' in the Scripting window).

In JavaScript, I am getting errors when trying to call methods on the Visio automation object  "'Object.method' is not a function" that I cannot resolve.  The same code works great in JScript, but not in JavaScript.  Anyone know why?  

Here is the script for you to try.  The last call to Visio.ActivePage.PageSheet.CellsSRC fails with 'CellSRC is not a function'.
Code: [Select]
function main()  {
      var Visio = new COMObject("Visio.Application");
      Visio.Documents.AddEx("Basic Diagram (US Units).vst", 6, false, false);
[highlight]      Visio.ActivePage.PageSheet.CellsSRC(1, 10, 0).FormulaU = "8.5 in";
[/highlight]}

main();

Looking at the Visio object model, CellSRC is actually a property of the object that takes parameters, so apparently the COMObject function behaves differently than ActiveXObject when creating the types for execution.  

Here is the link to the Visio automation documentation for this object: http://msdn.microsoft.com/en-us/library/office/dn480902(v=office.15).aspx

11
Was your issue by any chance errors calling the com object method, where you would get an error in javascript code that said 'method is not a function'?

I am seeing this error as well and would like to know if there is a solution.  This only occurs in scripts created specifically as type 'JavaScript', but not JScript.

12
I uninstalled and resinstalled Sparx V11 RC, and get similar error (format changed a little):

[00303318]      Failed to create Debugging process
"C:\Program Files (x86)\Sparx Systems\EA\vea\x86\SSProfiler32.exe" "C:\Program Files (x86)\Sparx Systems\EA\vea\x86\SSAgent32" "3712"

Any help troubleshooting this would be appreciated.

I will post a support ticket as well. Thanks!

13
When I try to debug a script, I am getting the following error
[04328854]      Failed to create Debugging process
SSProfiler75.exe SSAgent "4824"

I've seen this on a couple of machines now, on one machine I was able to get it working by retrying repeatedly, and it would work in 1 out of 5 times.  On my most recent machine, it fails consistently, even after reboot.

any ideas?
-Mike

14
Thanks, it wasn't clear that you were recommending to do the coordinate math, but that is the direction I was considering without the ability to get the rotation from Sparx programmatically.

Thx.

15
I'm working with the Automation object model, re-creating diagrams in Visio through automation.  I did see the Shape Script query method HasProperty, but don't see this exposed in the automation model.  Is there a way to query rotationdirection (which is a connector property?) for the ProvidedInterface/RequiredInterface objects from the automation model?

Pages: [1] 2