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.

Topics - Screwtape

Pages: [1] 2 3
Hi Folks!

This is a long shot - I'm generating documents, for which the original template uses document variables for header and title and version data. I can replace this, but it would be nice if I could set the document variables in the generated document.

Is there any way of doing this, apart from scripting opening the resultant document in a script and setting them that way?

I'm assuming not, but if anyone has a novel way of doing it then please share it!




I'm generating a virtual document using a script with all the necessary sections etc. instead of using a script to generate the whole document.

However, there is one feature when using the script process that I can't find in the virtual document system - that is adjusting heading depth - as was done using the nDepth parameter of say, the DocumentElement method.

When I want to document nested elements etc., it appears that I have to create separate templates if I want to have different heading levels, which is a bit frustrating, as I would need to change the levels of all the subheadings.
(I don't document the nested elements using >>ChildElement entries because that documents all of them using the same template which defeats the point of the virtual document).

Have I missed something, or do I need to create a feature request?



I've just noticed something I presume is a bug, but I wondered if anyone else has had this issue.

It seems when I edit a fragment, if I open or close the "element" level tree on the left hand side, the "ChildElements" automatically gets selected.

If I remove it, then close the tree, it gets reopened.

I've tried several fragments, and they all do the same. I've also updated to 1310 and rebooted all to no avail.

Has anyone else had this occur, and is there any way of stopping it?



I'm using a script to call DocumentElement a large number of times, since I can't create the level of complexity I need in a custom script fragment, since you only can generate a single level of data and you can't hide things with bookmarks in a custom fragment.

The script works fine - but it is incredibly slow. Having put lots of debugging in place, it would seem that there is a huge overhead every time you call DocumentElement, so while the script executes everything else really quickly, this takes multiple seconds per call, and seems to be getting slower, perhaps in line with my repository size increasing?

Does anyone else have this problem, or better still, a solution?



General Board / Unable to set BPMN Gateway Parameters
« on: January 11, 2017, 08:21:46 pm »

I've just tried to update the gateway direction BPMN parameter, on a BPMN gateway, and I can't see how to set the parameter. The parameters are displayed in the BPMN tab, but it does not allow me to update them.

Can anyone suggest what am I doing wrong?



General Board / Linking to Virtualised End Points
« on: July 12, 2016, 08:50:03 pm »
Hi Folks!

I'm trying to draw a class diagram that represents the data required in a query. I thought using virtualised end-points would help show the structure, but it doesn't.

I'm looking to do something like:


So I virtualised the B following C, but I cannot link anything to the virtualised end.

Is there any way to link to the virtualised end-point, or can anyone suggest a better way of representing a table multiply linked in a query structure.

Thanks for your help.

Uml Process / Specifying Overriden Steps in UC Specialisation in EA
« on: April 27, 2016, 08:57:22 pm »
At the risk of opening another huge debate on whether specialisation of use cases is appropriate, I'd like to ask a very specific question about documenting steps.

I have a base (non-abstract) UC with 4 steps.

1 - Get criteria
2 - Expand criteria
3 - Do search with criteria
4 - Filter results

The specialised UC will do 1, 2 and 4 exactly as the base UC, but will override step 3.

How would this best be represented in EA?

I have a BPMN process diagram for the base UC, but repeating the diagram with only the changed step seems to defeat the point of generalisation.

Having searched the web for examples, all I've found is a number of very trivial examples of what generalisation is, and how to represent it on a UC diagram, but nobody has shown any good examples of what the UC description and steps text should look like.

Any pointers or suggestions would be welcome.




I've seen a clever export script that copies EA into Powerporint slides as pictures, but as I want to be able to animate the slide, I need to have individual drawing objects. The powerpoint function to "ungroup" pictures doesn't help, because there are too many objects as every part of the diagram becomes a separate object.

Has anyone seen/used/made a "EA diagram to Powerpoint drawing objects" export? I ask before I invest any time trying to do it myself.




Is there anything built in to EA to generate and link a database table structure from a class diagram? I've looked at the code generation options, but I can't see anything relevant, so I'm assuming it's a manual job.

Given there's no automated way, is there any best practice of how to link the tables to the classes they are persisting in the model?

Again, I can't see an obvious relation, since "realizes" isn't appropriate.

Sorry if the answer is obvious and I've just missed it.



Hi! I've tried about every combination of putting tags in the template etc., but I cannot for the life of me get Notes-Formatted to work in document generation.

I have a custom query starting
Code: [Select]
SELECT t_connector.Name, t_connector.Notes AS [Notes-Formatted],

and have the {Notes-Formatted} tag in the custom fragment, but this only ever appears in the doc as {Notes-Formatted} in a grey box.

I'm using the Jet (.eap) repository and my reading of the manual appears to suggest this is right, but it's not working for me.

Any ideas what I'm doing wrong?

Thanks! Screwtape.

Hi! I've got a package which contains some requirements and I want to display them as a series of tables.

I've created a fragment which has a heading, and then a table in the element> section in the fragment. The fragment filters which requirement types I want, which is working.

The fragment is called by the main template, again in the element> section. I can's seem to call the fragment from any other section.

However, when I run the documentation, I get the whole fragment for each element - it puts the header in each time, and a complete table, rather than just the next row of the table.
When I create a number of fragments, each to show a table, then it becomes clear that each element is being processed by the main template in turn - the filtering in the fragment prevents the fragment occurring for the wrong element types, but what I want is each type to be grouped together under the package.

Any idea what I'm doing wrong? I really don't want to have to do this as a custom query, as the data I want is coming out fine.



Hi! It's my first attempt at a Document Script fragment, and everything I've tried either gives me

Script Error - xpected ';'   

or nothing happens.

I've copied the example from the manual, and just changed the InsertFile command to InsertText for simplicity, and added a debug line, leaving me with the following:

Code: [Select]
!INC Local Scripts.EAConstants-JScript
function main()
     Session.Output("Got here!");
     var reporting as EA.DocumentGenerator;
     reporting = CreateDocumentGenerator();
     if(reporting != null)
               if(!reporting.InsertText("This is some text"))
                    Session.Output( "Error: " + reporting.GetLastError() );
               return reporting.GetDocumentAsRTF();

If I don't have anything in the "Script" combobox, nothing happens. If I have a script, I get the error above. In order to make sure that the script selected didn't cause the issue, I've created an empty "Dummy" script. Still no joy. Everything I do either gives the error above, or nothing happens - i.e. no text, and no debug message.

Has anyone got this working and can anybody suggest what I'm doing wrong. I'm sure it's obvious, but just not to me.




Can anyone point me to an example of a "document script" custom fragment script, as while the document script fragment type has been added in EA12.1, it seems not to have been added to the documentation.

I know I've seen an example somewhere, but neither searching this forum, the main Sparx site, or Google seems to find it.




Since EA12, when adding a pool to a BPMN diagram, EA asks if you want to create a dedicated collaboration. This makes a lot of sense as otherwise you have the same pools and lanes defined under each process which is diagrammed.

However, that now means that the activities created within the pools and lanes now are owned by the lanes/pools which are children of a collaboration element, rather than the process/activity to which they belong.

I have scripted a documentation process that recursively documents the activities within a process/activity, but this will now not find the child activities any more.

How do you navigate in the model from Parent Process A, through Parent Collaboration B, to child activity C when there doesn't appear to be any link between A and C, or between A and B, except the diagram which is a child of A?



Suggestions and Requests / Improve Shape Script!
« on: November 08, 2014, 02:40:32 am »

I'm trying to improve on the embarrassing "cylinder" used for servicebus stereotypes.

However, having read the shapescript documentation, I can't see any way of finding out the size or aspect ratio of the object being laid-out.

You also can set scaling either on, fixed aspect, or off. I've even tried to add a sub-shape with fixed aspect, within a non-fixed main shape, but that doesn't work either.

I'm told on the forum, that shapescript doesn't have any arithmetic or the ability to scale components of the shape differently from the whole.

This makes it impossible to define any usable shapes that scale in non-linear or aspect dependant way. It means you couldn't, for example, use shapescript to create a "Node" box, which scales relating to the size of the front face, but not the "depth" of the box.

This really need to be improved! Please give me a way of showing a professional looking cylinder!

Pages: [1] 2 3