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 - OpenIT Solutions

Pages: 1 [2] 3 4 ... 31
16
Hi,

Is there a way to automatically show custom compartments for a given stereotype? I've added a shapescript to a stereotype. It works and displays my compartments - but only if I select the Features & Properties -> Feature and Compartment Visibility and check the option to show my custom compartment. I'd like them to be shown by default somehow. My shapescript is below, it adds and compartment and shows the details of related Activities and Components...

shape RelatedElement
{

if(HasProperty("Element.Stereotype", "Activity"))
   {      
   SetCompartmentName("Process");
   AppendCompartmentText("#Connector.Name#   #TAG:taskType#: #Element.Name#");
   }   
   
      if(HasProperty("Element.Type", "Component"))
   {      
   SetCompartmentName("IT Systems");
   AppendCompartmentText("#Connector.Name#   #Element.Stereotype#: #Element.Name# - #Element.Alias#");   
   }         

   
   
   if(HasProperty("Element.Stereotype", "MeasurementPoint"))
   {      
   SetCompartmentName("Measurement Points");
   AppendCompartmentText("#Connector.Name#   #Element.Name#:  #Element.Alias#");
    }         
   
   if(HasProperty("Element.Stereotype", "ControlCategory"))
   {      
   SetCompartmentName("Control Category");
   AppendCompartmentText("#Connector.Name#   #Element.Name#");
    }
   
   
   if(HasProperty("Element.Stereotype", "DataObject"))
   {      
   SetCompartmentName("Deliverables");
   AppendCompartmentText("#Connector.Name#:  #Element.Name#");   
   }   
}

17
Hi,

The dll needs to be on your PATH AND the eaapi.jar needs to be on your Java classpath. It looks like a config issue so check both are OK.

Regards,

Jon.

18
Hi,

You can do this I think. Have a look at the bpmn2.xml MDG in the sparx install folder for an example. If you just generate a 'profile' you may not get the xmi your after - I think you need to generate an MDG - as you need to define a <taggedvaluetypes> section

Regards,

Jon.

19
Automation Interface, Add-Ins and Tools / Re: Shapescript #TAG
« on: July 12, 2017, 07:58:09 pm »
Yes, just wanted to double check - feels like an enhancement request - i'll raise one ....

20
Automation Interface, Add-Ins and Tools / Shapescript #TAG
« on: July 12, 2017, 06:37:16 pm »
Hi,

I have a tagged value of type <memo> (ie value is <memo> and notes contain the tagged values actual value/content). In my shape script if I use 'print("#TAG:condition#")' where condition is the tagged value name - the value column, ie <memo> is displayed note the actual value in the notes field. Is there anyway in a shapescript to print the actual value of a tagged value of type memo ?

Regards,

Jon.

21
Hi,

FYI, the way I ended up solving this:

Repository.Execute ("UPDATE t_diagramobjects SET ObjectStyle='Tag=1;' WHERE diagram_id = " + diagramID + " AND object_id = " + diagramObjectID);

I found that the ShowTags=true; method on EA.DiagramObject didn't work. So I had to use the above code when I wanted to show my tagged values (i.e. the ProgressBar) for a specific DiagramObject.

Regards,

Jon.

22
Hi,

In my VBscript I just use:

Set activity = package.Elements.AddNew (activityName, "BPMN2.0::Activity")
activityName.Update

And the activity has the correct BPMN2.0 tagged values.

Regards,

Jon.

23
Hi,

I have a similar requirement and would like some advice please :-)...

I'd like to show a ProgressBar ONLY if its value is less then 100%. Plus my element has multiple tagged values - I only want to show its ProgressBar tagged value, none of the others.

Is this possible via a ShapeScript ? I can't see a function/command in the shapescript notation to show a ProgressBar only the print/println statements to show the text of a tagged value. Is it possible ?

24
General Board / Re: Add an image to stereotype
« on: February 15, 2017, 01:42:14 am »
Hi,

As mentioned by Simon you will need to use a shape script ... you were almost there add _image to name and click ... then in the shape script editor add a decoration that uses the "image" command described in the link below to add an Image that you will have added to the Sparx Image Manager ...

http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/drawing_methods.html

Hope this help,

Regards,


Jon.

25
General Board / Re: matrix overlays on BPMN activities/pool
« on: February 10, 2017, 12:20:04 am »
Hi,

I don't think so; the only think that has changed since my original post which would have related to v9.x of Sparx I think - is that v13 by default nests activities as a child of the containing pool in the project browser. See http://sparxsystems.com/resources/webinar/partners/bpmn/bpmn-enhancements-cephas.html which explains how to create BPMN models in Sparx. If you adopt this approach, you should be able to query an activities t_object.parent_id column to find out the containing pool; if the activity itself has a classifier defined in a library of processes you should also be able to query this...


Regards,


Jon.

26
General Board / Re: SQL - Macro #Branch#: Result entire model
« on: January 16, 2017, 11:54:54 pm »
Hi,

Your query is missing a join, try :

select o.ea_guid AS CLASSGUID, o.Object_Type AS CLASSTYPE, o.name, o.ea_guid, o.Object_type AS Type, o.Stereotype, o.Author, o.modifiedDate AS Modified, o.note AS [Notes] FROM t_object o, t_package pkg WHERE pkg.Package_ID IN (#Branch#)
AND o.package_ID = pkg.Package_ID

Regards,

Jon.

27
General Board / Re: Respository Usage Statistics
« on: January 13, 2017, 11:54:30 pm »
Hi Phil,

Hope your well; one thing to consider re db triggers is the user account used to connect to a db. Some of my clients have DBA policies that don't allow direct database connection by individual users. In these situations you create a 'service' account which connects to the db. These account details are then imbedded/encrypted in the sparx connection string. In this scenario the db trigger would not be able to tell you/record the actual user connecting. So your first option would be more generally applicable. Although again in a corporate env you may well find access/security issues associated with writing to event logs.

Also as an aside the cloud service can I think be configured to log which users are connecting / disconnecting - so simple solution might be to install it and insist all users connect via the cloud url ?

Regards,

Jon.

28
General Board / Re: Unable to set BPMN Gateway Parameters
« on: January 12, 2017, 10:42:51 pm »
Do you have security on your model ? It could be that the diagram is locked or you don't have permission to edit ...

29
General Board / Re: Modeling Informationflow in BPMN
« on: January 11, 2017, 03:27:54 am »
Hi,

The long winded way to model your requirement using BPMN 2 would be to use DataStore and DataObject elements on your diagram. DB1 would be added as a DataStore (see BPMN2 Palette) you should then use a DataAssociation to connect DB1 to a DataObject that describes the data being conveyed (via its tagged values). The DataObject is then connected via a DataAssociation to the appropriate Activity (or activities).

The direction of the association dictates if you are reading or updating the data store.

30
Hi,

There are XPDL to BPMN translation tools, you can then import the BPMN. See

https://www.businessprocessincubator.com/cloudapps/#web-service-28 (tip, select 'translate')

Or you can pay someone for a full translation service, see:

http://enterprisemodelingsolutions.com/xpdl-to-bpmn/

Regards,

Jon.

Pages: 1 [2] 3 4 ... 31