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 ... 4 5 [6] 7

I've managed this using a tagged value, which seems to be rather an inelegant way of achieving it, as it actually modifies the element in question.

Has anyone out there got a better way of passing data from the controlling script to a custom fragment script?


I'm scripting document generation (with jscript for some reason), and it would be very useful to be able to pass "global" variables or something between the script calling DocumentElement and the custom fragment script.

Is there any way of doing this?

I'm trying to create a custom fragment which has some optional data, and I don't want line breaks etc. if the fields aren't there.

I can achieve this using bookmarks for normal fields, but custom fields it doesn't seem to work in the same way.

Can this be done, and if so, what is the syntax for the bookmark names?


I'm generating a RTF document with JScript.

I've put a data field in the template, and am using ReplaceField to update the value just prior to calling DocumentElement. When I do this, I keep getting Bell sounds and the document had the field replaced, not with what I specified, but several element names and descriptions.

If I comment out the ReplaceField method, it all works fine and just prints the default for the data field each time.

Very strange.

Anyone suggest what I might be doing wrong?

Thanks - it's always something simple.

By the way - it's listed as Parent_ID in section 2.4.1 of Inside Enterprise Architect, or at least on the online preview that I was looking at...


I've a really simple query and yet I'm getting this error message "Too Few Parameters - Expected 1" each time the fragment is called.

The SQL is
Code: [Select]
SELECT name FROM t_object
where stereotype = "StartEvent"
and t_object.parent_id = #OBJECTID#
which seems so simple there couldn't be anything wrong with it, but I might just be blind.

Any help with this would be great! Thanks!


Brilliant! That worked perfectly. Thanks! Life-saver!

Is it possible to export or copy somehow an RDF template from one model to another (both in EAP files).

As it happens, one of my fragments has become corrupt and I want to restore it from the a backup of the EAP file, without losing all the rest of the changes to the model since the backup.

Any ideas?

Thanks for the suggestion.

I've just looked at the automation interface documentation, and it seems like ancient history - VB6 and Word 2000?

Is it the documentation that is out of date, or does the document automation system really rely on such out of date technology?

Am I missing something? Can you give me a link to the releveant documentation, so I'm in the right place?

Hi Simon,

When I talked about parents it was in an inheritance kind of way, rather than element heirarchy.
However, reading your reply - it has dawned on my why it isn't working.

I'm trying to filter out Activity and BusinessProcess elements, but not ActivityPartition elements. If I filter Activity I don't get anything.

This is because the fragment is being called from an activity and therefore is being filtered out before it get's chance to find the child elemenets.

I have the "Include child elements even if the parent element is filtered out" ticked, but that doesn't seem to do anything.

So, the fragment is called in an activity, but I want to process the children that are ActivityPartitions. However, I can't call a template from within Child Elements, just within Element.

This is connected with my query about skipping heading levels previously - I'm trying to generate a document which refers to the pools and lanes, but doesn't make them part of the heirarchy - there would just be too many levels.

So if my tree looks like this...
Activity A
|--Pool X
|   |--Lane Y
|   |   |--Activity B
|   |--Lane Z
|   |   |--Business Process C
|   |   |   |--Pool Q...

What I'm trying to get is

1. Activity A

Pool - X (ActivityPartition only fragment)
    Lane - Y (ActivityPartition only fragment)
        Activity B (Fragment called from ActivityPartition Fragment)
    Lane - Z (ActivityPartition only fragment)
        Business Process C

1.1 Activity B
1.2 Business Process C

Pool - Q...

I therefore want to produce a second summary heirarchy using the pools and lanes, and then ignore the pools and lanes in the main hierarchy.

If I filter ActivityPartition in the main document, I don't get any of the child activities, even with the "Include child elements..." checkbox ticked.

I'm sure theres a logic to how the "Include child elements..." checkbox works, but I don't understand it.

I realise that I'm trying to subvert the heirarchy, but I thought I'd be able to do that using fragments.



I'm really struggling with the exclude filter in a template fragment.

If I exclude nothing, it works, but includes everything.

I want to show only ActivityPartition types in this fragment.

If I filter everything else out, then I get nothing.

So, the items I don't want to show in this fragment are mainly Activities and BusnessProcesses. So I try to filter out only Activity - and get nothing.

Are there hierarchies in these filters that if you filter the parent you filter out all the child types as well?

What do I need to do to make the filter exclude the things I want to exclude without excluding everything?

Hi! Thanks for the idea - sadly it didn't work on two accounts - one is that I am looking for more than just the headings I described, which I think would make the custom fragment very complex - and secondly, each time the engine digs down a level it increases the heading level - despite the fact that there was nothing displayed at heading level 2 or 3, it goes from 1 to 4.

What I want to do is tell EA to pretend it hadn't dug down a level - just ignore those pesky ActivityPartitions and go straight to the children.

I could do that with the sql - but not then be able to process those elemenets normally, which is what I'm trying to do.

If the "Include child elements even if the parent element is filtered out" worked as it sounds like it should - it might just do what I wanted, all filtering I've tried prevents all child elemnts of excluded parents.

Hi! I'm trying to produce process documentation from a hierarchy of BPMN business processes and activities. The problem is that there are pools and lanes in the diagram, which I want to keep, but I don't want to report them as hierarchy levels.

What I'm trying to get is
1.1 Business Process 1
1.1.1 Business Process 2 (In Pool 1/Lane 1 say) Activity 1
1.1.2 Activity 2 (In Pool 1/Lane 2 say)

I've managed to get the Pools and lanes not to display, but they retain their hierarchy levels, so I'm getting

1.1 Business Process 1 Business Process 2 (In Pool 1/Lane 1 say) Activity 1 Activity 2 (In Pool 1/Lane 2 say)

so I've got two levels of headings numbering that I don't want.

I've tried filtering out the ActivityPartition type, and selected "Include child element even if the parent is filtered out.", but that just removes all the child elements of the pools/lanes and reports only the top level. I've done this both at the master template level, or at the specific fragment level, but in both cases the "Include child element..." flag seems to be ignored.

Any ideas would be welcome!

Anyone with any ideas how to do this?

I note in most of the templates and fragments, there are fields which have labels, where the label is only displayed if the field has data in it.

I've tried every context menu I can find to see how this is done, but to no avail. I also can't find anything in the documentation or help for this.

Can someone let me in on the secret?

Thanks! That's great.

Pages: 1 ... 4 5 [6] 7