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

Pages: 1 2 3 [4] 5 6
46
Bugs and Issues / Re: Output of an RTF Script without linebreaks
« on: October 23, 2014, 02:43:18 am »
Hi,

I noticed the same. I was using a custom fragment script to display notes fields with formatting, and what you describe happend to me too. I noticed that the formatted seemed to be translating html tags to RFT, so I tried enclosing my notes data in <pre></pre> tags in a CDATA section, but they just appeared as text before and after my notes.

It seems that is only interprets certain tags.

I tried using
curElem.Notes.replace("\n","<br/>")
to replace line breaks with forced formatting, but that doesn't work either.

I suspect this is a bug, as the behavior is very inconsistent.

47
Bugs and Issues / Re: ActivityPartition "claims" edge-mounted event
« on: October 23, 2014, 05:12:51 pm »
Great! I will await with baited breath... Thanks!  ;)

48
Bugs and Issues / ActivityPartition "claims" edge-mounted event
« on: October 23, 2014, 01:37:40 am »
Hi!

I've noted since the latest upgrade, ActivityPartitions in a BPMN diagram are very aggressively moving items within the partition into the partition within the model hierarchy. This is annoying with some items I have linked to, but completely unusable when just moving the activity partition causes it to move an edge mounted start event from the activity it's supposed to be linked to, and mounts it on the activity partition!

Has anyone else had this happen? Does it need to be raised as a bug.

Any suggestions appreciated...

Screwtape.

49
Bugs and Issues / Scripting engine seems to "cache" parts of scripts
« on: October 23, 2014, 02:25:41 am »
Hi!

I'm having some very weird stuff going on with a script in 11.1.1112.

I run a script a few times, and make changes from one run to another. After a few runs, it appears to cache certain functions, and not run the current script.

In order to get the changes to run, I need to quit EA and restart.

It even did this across projects - I closed one project, opened a new one, and run a script with a function having the same name, and it ran the function from the previous project, not the current one.

Is there some setting I need to change or is this a bug? (It's hard to reproduce at will, as it only happens from time to time.)

Screwtape.

50
Uml Process / Postcondition in a BPMN Business Process element
« on: October 21, 2014, 08:55:13 pm »
Hi!

I've tried to add a postcondition (in the advanced attributes section of the properties page) and it's made a complete mess of the diagram element. It seems to have vertically partitioned the business process element and shown the postcondition as a stereotype on the right hand side. Nothing I do will remove this - even explicitly suppressing postcondition in the stereotypes feature visibility.

Does anyone know how to stop this, other than by removing the postcondition (which I'm using for documentation elsewhere).

This only appears on Business Process elements. Activity elements are fine.

Thanks!

Screwtape.

51
Uml Process / How to represent a process call in BPMN
« on: October 06, 2014, 10:58:35 pm »
Hi!

I have a diagram I want to put one process on, but called from more than one flow. I'm obviously looking at this all wrong, because I can't find anything by googling.

How do I represent the following on the same diagram?

Start --> Activity 1 --> Process --> Activity 2 --> End

Start --> Activity 3 --> Call to Same Process as Above --> Activity 4 --> End

Thanks for looking!

Screwtape.

52
Uml Process / Re: Representing accounting consequences of activi
« on: June 11, 2014, 05:14:13 pm »
Hi! Thanks for the reply.

Somewhere between the two. I currently have a "flowchart" of how the financial process works, which I want to incorporate into the physical business process, so there is one version of the truth, as part of the problem I'm facing is so many "process diagrams" from different area's points of view.

I kind of want to see the financial impact of an activity on the diagram without it taking over the whole diagram, hence not having a separate "credit this account" and "debit this account" activity.

It seems something that just isn't done, as I've not found any previous discussions of this, except for one academic paper, which was too academic to be useful to me.

53
Uml Process / Representing accounting consequences of activities
« on: June 11, 2014, 01:29:31 am »
Hi! I'm trying to model a set of processes in BPMN, which include buying, stock movements etc., and each of these physical processes has an accounting consequence.

Is there any accepted way of showing the debit/credit impacts of an activity? Googling hasn't come up with anything useful.

Thanks!

54
I've always linked my fragments within an element, but I'm not sure that is necessary.

Presumably, you are running the report against a single object (either a package or element) - if it's an element, then nothing in the package space will get printed unless it's within the element space (I think).

55
Had already been reported...

Bug no 15082132

56
Hi! I'm generating documents in EA12.1, and it would seem that whenever I have a notes field in my template, such as {Element.Notes}, {Att.Notes} or {Meth.Notes}, it puts a blank line after the notes field, regardless of the fact there is no blank line within the notes page, and I've been very careful to ensure that there is no blank line are in the template that aren't properly bookmarked, every notes field is followed by a blank line.

It makes my tables look ridiculous!  :(

Is there any way of stopping it, or do I need to file a bug report?

57
Hi!

I had written a script in EA 11 which worked brilliantly. When I called DocumentElement for a full template, it bookmarked the element with it's GUID. In EA 12, it appeared to bookmark the element incorrectly. In 12.1 it's working better again, except where I reference the element more than once.

It appears, that if I have element X referred to (as a custom fragment via a specific template) in the document, and then document element X again using a normal template, the start bookmark is the first time I referred to it, and the end bookmark is the end of the second time I document it.

Is there any way of preventing the engine from bookmarking the references from the custom fragment?
(I manually generate a table which includes bookmarked references to the main entry for the element, which worked beautifully in EA 11, but hasn't worked properly since. The custom fragment reference could be before or after the main entry.)

Any suggestions gratefully received.

Screwtape.

58
Automation Interface, Add-Ins and Tools / What is the scope of ReplaceField?
« on: September 16, 2015, 11:05:27 pm »
I'm using the EA12 (1215) document generator API to create some documentation. I've a situation where is would be very useful to replace the field value for one or two fields within a template in a particular situation, so I've tried the following JScript fragment:

Code: [Select]
generationSuccess = docGenerator.DocumentElement( connectedElement.ElementID, level, PROCESS_TEMPLATE );
if ( !generationSuccess )
    ReportWarning( "Error generating process documentation: " + docGenerator.GetLastError() );
generationSuccess = docGenerator.ReplaceField("Element.Name", "Method: " + method.Name );
if ( !generationSuccess )
    ReportWarning( "Error replacing field: " + docGenerator.GetLastError() );

However, it doesn't seem to replace the field, or give any error. What it does seem to do is truncate the document at the point I call ReplaceField

I don't understand the scope of the ReplaceField method, since wherever I put it, it either breaks the document, or does nothing.

The only reason I could think of for this not doing anything, is that the template calls fragments in which the `Element.Name` field was referenced, but having converted the fragment to a template and called it explicitly, ReplaceField still seems to do nothing.

Does anyone have a good example piece of script that uses ReplaceField effectively with element data fields?

The ACMEContextDocumentGenerator example I've found so far only uses ReplaceField on a single document level custom data field, which is not what I'm trying to do.

Any pointers or suggestions would be greatly appreciated, since I've tried everything I can think of.

59
Tried using DOCX generation instead of RTF.

The same issues seem to be happening. The bookmarks are in the same places as before, and the diagrams are not sizing correctly - see http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1433924671.

It looks like the document generator isn't working quite correctly when called from the API.

60
D'oh!

That's using Google for you! I'd just Googled the class name and I hadn't noticed the hit it gave me was from 9.2 which may explain why the API seemed so far behind the normal functionality!

Maybe I'll have less issues now... I'll give it a go! :)

Thanks!

Pages: 1 2 3 [4] 5 6