Forum Replies Created
-
AuthorPosts
-
Ken NorcrossParticipant
I will also explore model views and ad-hoc diagrams, thanks for the pointer to another direction.
Ken NorcrossParticipantThanks, I have not thought of doing anything like this, this is an interesting technique and I will explore this, thanks!
Ken NorcrossParticipantThe timing is not good for me to upgrade eaDocX (nor Sparx) so I cannot answer this.
Ken NorcrossParticipantSome additional detail…
eaDocX v3.4.1.1
Sparx v10.0.1008
Ken NorcrossParticipantAnyone have any luck with a JScript script called from eaDocX?
I do not believe there is any unterminated string in this very simple test script, so I have to think the error is elsewhere.
I have a large library of Sparx scripts written in JScript, so I would hate to have to start over with a new language (VBScript) that I have no experience with.
Ken NorcrossParticipantI have cut my attempt down to the simplest script we could run but calls to JScript seem to fail.
[code]
!INC Local Scripts.EAConstants-JScript/*
* Script Name:
* Author:
* Purpose:
* Date:
*/function APITestJScript() {
Session.Output(“Hello”);
return “Hello”;
}APITestJScript();
[/code]The error message is:
Syste.Runtime.InteroptServices.COMException (0x800A03F7): Unterminated string constant
at MSScriptControl.ScriptControlClass.AddCode(String code)
at eaDocXAddIn.EAScript.runUsing(Repository Repository, String ElementType, String ElementGuid, String HeadingLevel, String Param1, String Param2, String Param3)Ken NorcrossParticipant3.4.1.1 picked up, installed, and tested on one document.
Seems to fix my issue.
Thanks yet again for a quick turnaround!
Ken NorcrossParticipantHas 3.4.1.0 been made available? I do not see it on the latest release notes page.
Ken NorcrossParticipantThank you, I will look for this later today.
I admit it is not ideal and probably unexpected to have the same use case details twice in the same document, but this is a sort of compromise solution for some abuses of our BA metamodel.
Ken NorcrossParticipantOK forget the BPMN layer, I think the issue is demonstrated nicely if you try and print the same Use Case Structured Scenario twice in the same document.
I used an empty word Doc, added the Use Case Detail profile provided by eaDocX.
Create a Use Case, with a simple structured scenario like:
1. User does A
2. System does BAdd a section to the document pointing to the Use Case, and then add another section to the document pointing to the same Use Case.
Document generation fails here in quite a severe way.
Ken NorcrossParticipantJust ran across another related case where the same or similar failure seems to be happening.
We have a document that contains 2 BPMN process map diagrams. There are Activities in the document that appear on both maps. Through relationships these activities are traced to Use Cases with scenarios, which also print in the document.
When we hit the scenario that is repeated elsewhere in the document the generation fails in a similar way as above. I can describe this case in more detail if needed but there seems to be an issue with repeating the same scenario in a document more than once.
- This reply was modified 10 years, 8 months ago by Ken Norcross.
Ken NorcrossParticipantExample sent to Ian via email.
Ken NorcrossParticipantI should add I am using V3.4.0.3
Ken NorcrossParticipantWhen I set heading level back to 1 in the Package Cross Reference report, all links in my test document work.
When I set heading level to 0, some links work, some don’t as described above.
Ken NorcrossParticipantSorry to report but this does not work all of the time.
I have reports where the linkage to Packages works for some but not all of the packages in the report.
I have tried narrowing down the difference between a working example and a failing example, but I do not notice anything yet.
To get the table of contents the way I want it I have set the report heading level to 0. This way the Package name comes out in the TOC as a first level item.
One thing I noticed in the Word output is that for a Package where the link works, I see two bookmarks in the word document. One that starts with _TOC and one that start with BK_.
For the Packages where the link does not work, I only see one bookmark in the Word output, just the one that starts with _TOC. So as far as I can tell there actually is no bookmark to link to. When you click on the link in the document you end up at the top of the document.
-
AuthorPosts
Download a free trial
Download eaTeamWorks today for several free for life features, plus no obligation, 30-day trials of all the products: eaDocX, ea Revision Manager, eaSheets, Model Expert and PortfolioManager. Discover for yourself why we sell the world’s best-selling Enterprise Architect extension.
Download