Creating objects with proper stereotypes

Hi,
I'm just trying to create Architecture Areas and Business Functions using VB. This all works as expected, besides of one small but important exception:
I want to create Architecture Areas and Business Functions of a given type (Stereotype).
When I create the Architecture Area or Business Function, assign the code and name, and then set the Stereotype, everything looks OK. The Stereotype is appearing on the symbol etc., but ... the graphical symbol differs from what we have configured for this element.
In the script I'm doing it this way:
L2Process = EamL2.ArchitectureAreas.CreateNew(PdEam.cls_ArchitectureArea)
L2Process.SetNameAndCode Trim(L3SubSubFolder.Name), Trim(L3SubSubFolder.Code)
L2Process.Stereotype = "Process"
The Architecture Area is created, the Stereotype is assigned:
But the graphical symbol is not the expected one, it"s rather the "default" one ...
What I have configured is:
Is there a way to create Architecture areas and Business Functions, so that the configured Custom Symbols are used? MAybe a parameter for CreateNew like in the CreateModel function, where we can set the Diagram Type?
CreateModel(PdEAM.cls_Model, EvaluateNamedPath("%_MODELS%") + L3SubSubFolder.Name + ".eam" + "|" + "Diagram=CityPlanningDiagram", omf_DontOpenView)
I can't find anything in the documentation in regards to this issue...
Thanks,
Rafal

Hi Rafal,
Could you try creating object directly in the collection using the GetCollectionBySteretype("Process") on model ?
Something like:
Dim processes
Set processes = EamL2.GetCollectionByStereotype("Process")
Set L2Process = processes.CreateNew()
L2Process.SetNameAndCode Trim(L3SubSubFolder.Name), Trim(L3SubSubFolder.Code)
This should assign stereotype at initialization and may be fix your issue...
Marc
PS. I did not check code, take care of potential typo.

Similar Messages

  • Error creating Objects with Reflection

    This is the code:
    try{
         System.out.println("Restart - test 1 - sub == " + sub);
         c = Class.forName(sub);
         con = c.getDeclaredConstructor();
    catch(NoSuchMethodException e){
         System.out.println("Unknown event type\t" + e);
    }Output:
    Restart - test 1 - sub == Mouse
    Unknown event type     java.lang.NoSuchMethodException: Mouse.<init>()I have a Mouse class with a declared Constructor. Why can't it find the Constructor?

    SquareBox wrote:
    almightywiz wrote:
    Your code is trying to find the default constructor for your Mouse class. If you don't have a default constructor specified, it will throw the exception you encountered. What does your constructor signature look like?
    public Mouse(int weight){
         this.weight = weight;
    }How do I get the Constructor if it contains parameters?This is answered in your other thread: Creating objects with relfections And you even marked it correct!
    Please don't post the same question multiple times. It leads to people wasting their time duplicating each others' answers, and makes for a fractured discussion.
    Edited by: jverd on Apr 26, 2011 3:59 PM

  • Can we create objects with interface

    can we create objects with interface,if yes then where we implement the
    methods,can we type cast any object with inerface kind of object,if yes what kind
    of objects we can type cast

    can we create objects with interface,if yes then where we implement the
    methods
    Objects are created with classes, not interfaces, which are abstract.
    can we type cast any object with inerface kind of object,if yes what kind
    of objects we can type cast
    Objects may be cast to interfaces, but only if an object's class or one of its superclasses actually implements the interface.

  • Create Object with "Photoshop.Application"

    Cannot create an object reference to Photoshop CC using Excel 2011 and vba, is there missing files with the standard installation?

    Hi;
    I have been writing VBA code for many years and have always used Windows up till now, I am attempting to do things on a MAC I can easily do in Windows. I have for years used macros written by myself referencing Adobe Photoshop and also Microsoft Access from within Excel. I have used what is termed 'Late binding" to create objects for the above applications. I understand Access is not useable on the MAC but I believe I should be able to use the macros I have written with slight modifications for file locations. Typically nearly the first executable statement in these macros are as follows
    Dim appRef as Object
    set appRef = CreateObject("Photoshop.Application")
    the second statement when executed allows me the opportunity to use Photoshop (Versions 7 -> CS5 have been successful) to reference all the procedures and functions that would appear on the desktop when using Photoshop.
    According the scripting PDF manual for CS6 they use the same syntax for the VBScript examples. I believe this should work with Photoshop CC. I think when I installed the cloud version I opted for "Typical" installation" instead of maybe selecting "Custom Installation". How do I achieve the use of the above technique? As stated earlier I have used this since Photoshop 7. Any help would be greatly appreciated.
    Thank you,
    Robert Firman

  • Is it posible to create objects with different names dinamically?

    Hi,
    I'm creating an app that manages different wireless nodes in a network and I was thinking that I could create a class called Node which would have a constructor that every time I created an object Node, I would pass the address and some other data about the Node and the constructor will save all that data and also create a unique ID for every Node object.
    Now the problem is that I need to be able to discover all the nodes in my network every time the user clicks a Ping button. So every time the users clicks Ping I need to do a ping and create as many Node objects as nodes I have in my network. The thing is I don't know how to make it create the node objects with different names so after I've created all the nodes objects I can refer to one of them.
    Something like this.
    int Id=0;
    id++;
    Node node+Id = new Node();
    I think its not possible to do something like that. If it isn't how can I do to refer to one of the objects I've created?
    Thanks.

    Twistx77 wrote:
    Thanks to both of you. I'll check out the Link and if I can't find the solution there I'll make the array , I don't know how I didn't think about doing that. There are two collections you should study specifically:
    First you have the ArrayList which in essense is a growable array. This means you don't have to decide in advance how big it can be.
    Second there's the HashMap. It's sometimes called an associate array. Such an array doesn't have fixed position indexes like an ordinary array. Instead each index (called key) is associated with a value but the keys don't have any particular order. Still, given a certain key, finding the corresponding value in a HashMap is almost as fast as an array access.

  • 4.0 EA2 - Insufficient Privileges When Creating Object With Proxy

    When I have connected by proxying to another user, I receive the following message when trying to create a new object:
    The database user has insufficient privileges for the given operation.
    Steps to reproduce:
    Connect by proxying to another user
    Right Click on Views
    Select New View
    I noticed this under EA1, though, not sure if reported.  This worked under 3.2.2

    Sounds like your management needs a stern lecture on the concept of change management. <g>
    I am not debating what you do. I am questioning the logic, or lack thereof, of doing it that way. My recommendation would be to change your procedure to one that:
    A. Is more in line with good change management practices.
    B. Works.

  • Creating Objects with String name

    How can i create an object, but just having the name as String?
    Like, instead of creating like JInternalFrame obj = new MyInternalFrame(), do it like JInternalFrame obj = createObject("MyInternalFrame") ( i just gave createObject as example, ignore it)...
    Does anyone knows how to do it? Because i have several windows, and by clicking, i dont want to be with a lot of if clauses checking each one to se wich one is the ritgh class to call...
    Tks,
    Bruno

    You need the Class class in package java.lang, specifically class (static) method forName() and instance method newInstance():
    JInternalFrame obj =
        (JInternalFrame) Class.forName("MyInternalFrame").newInstance();

  • Is it possible to serialize a user created object with an oracle.sql.BLOB?

    Is this possible? Cause I'm getting a WSDL Exception that the oracle.sql.BLOB is not a java bean. So how do I make it a java bean? What data type should I use?

    here is the object that was created.
    import java.io.Serializable;
    public class DiagramsObj implements Serializable {
        private int     galleyDiagramId = -1;
        oracle.sql.BLOB galleyDiagramBlob = null;
        private String galleyName = null;
        /** SET THE VALUES TO THE OBJECT */
        public void setGalleyDiagramId(int newGalleyDiagramId) {
            galleyDiagramId = newGalleyDiagramId;
        public int getGalleyDiagramId() {
            return galleyDiagramId;
        public void setGalleyDiagramBlob(oracle.sql.BLOB newGalleyDiagramBlob) {
           galleyDiagramBlob = newGalleyDiagramBlob;
        public oracle.sql.BLOB getGalleyDiagramBlob() {
            return galleyDiagramBlob;
        public void setGalleyName(String newGalleyName) {
           galleyName = newGalleyName;
        public String getGalleyName() {
            return galleyName;
    }

  • Creating Objects with the Shape Tools | Learn Illustrator CS6 | Adobe TV

    In this video you'll see how to use Illustrator's shape tools to create primitive shapes that you can use as the basis for objects. You'll also learn how to use the Shape Builder tool to combine shapes.
    http://adobe.ly/JXWnRj

    What tool did you use to drag between the skull and jaw to join them?  You didn't share how you did that.

  • Creating object with names from a String Array

    Hi all,
    This might be a stupid question .. I have the following method:
         public OptionInputPanel(Option newO, String [] parameter){
              super(new BorderLayout());
              o = newO;
              for (int i = 0; i < parameter.length; i++){
                   testB = BorderFactory.createTitledBorder(parameter);
                   JFormattedTextField parameter[i] = new JFormattedTextField(); // problem
    as you can see I would like to name my text fields with the strings that I have in the parameters array so that I can get their values later on. How can I do it?
    Thanks for help
    Stan

                   JFormattedTextField parameter[i] = new JFormattedTextField(); // problemYou are declare an array of size i, and assigning a single JFormattedTextField to it.
         public OptionInputPanel(Option newO, String [] parameter){
              super(new BorderLayout());
              o = newO;
              JFormattedTextField params[ i ] = new JFormattedTextField();
              for (int i = 0; i < parameter.length; i++){
                   testB = BorderFactory.createTitledBorder(parameter[ i ]);
                   param[ i ] = new JFormattedTextField(parameter[ i ]);
    Resources for Beginners
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java. This one has been getting a lot of very positive comments lately.

  • Create table with storage parameters in a locally managed tablespace

    Hi,
    Can we create object with storage parameters in a locally managed tablespace.
    CREATE TABLE my_hash_table_6 (
    name VARCHAR2(30),
    value VARCHAR2(4000) )
    STORAGE (
    INITIAL 1M
    NEXT 512K
    PCTINCREASE 0
    MINEXTENTS 2
    MAXEXTENTS UNLIMITED )
    users default tablespace is locallly managed.
    Then this table's extent management will be managed as per the tablespace or as the storage parameters which
    were specified at the time of table creation.

    Why don't you try it yourself ?
    TEST@db102 > select * from dba_tablespaces
      2  where TABLESPACE_NAME='USERS';
    TABLESPACE_NAME                BLOCK_SIZE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS
    MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS    CONTENTS  LOGGING   FOR EXTENT_MAN
    ALLOCATIO PLU SEGMEN DEF_TAB_ RETENTION   BIG
    USERS                                8192          65536                       1
    2147483645                   65536 ONLINE    PERMANENT LOGGING   NO  LOCAL
    SYSTEM    NO  AUTO   DISABLED NOT APPLY   NO
    TEST@db102 > CREATE TABLE my_hash_table_6 (
      2  name VARCHAR2(30),
      3  value VARCHAR2(4000) )
      4  STORAGE (
      5  INITIAL 1M
      6  NEXT 512K
      7  PCTINCREASE 0
      8  MINEXTENTS 2
      9* MAXEXTENTS UNLIMITED )
    TEST@db102 > /
    Table created.
    TEST@db102 > select * from user_segments
      2  where segment_name='MY_HASH_TABLE_6';
    SEGMENT_NAME
    PARTITION_NAME                 SEGMENT_TYPE       TABLESPACE_NAME
         BYTES     BLOCKS    EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS
    MAX_EXTENTS PCT_INCREASE  FREELISTS FREELIST_GROUPS BUFFER_
    MY_HASH_TABLE_6
                                   TABLE              USERS
       2097152        256          2        1572864                       1
    2147483645                                         DEFAULT
    TEST@db102 >

  • Best way to creat Objects

    Hi gurus,
    I am in a process of converting CRs to Universe. Based on the business area , I gathered a set of reports that to be converted to Universe. Joining of tables is almost done. Now I am in process of creating objects.
    As we are going in the Bottom- Up approach as the reports are already existed in CR. After analyzing couple of reports, I found lot of formula fields for one report which are in a set of ranges like 0-10, 10-20, 20-30 etc.., with Grand totals, %.
    Should I create each and every object like 0-10, 10-20 ( for one report, I have 50+ formula fields).
    Please suggest me the best way to go or any suggestion the Webi reporting part.
    Thanks
    RUC

    I would recommend creating object with formulas at universe level using universe functions and using Database functions. This will be very useful to create reports on demand. also give flexibility to user to create ad-hoc report.
    Also for specific formulas (which are very report specific) you can create them in universe and hide it from users if you don't want user to use them in ad-hoc reporting.
    for formulas like (Bucket)
    0-10, 10-20, 20-30
    you can use CASE WHEN functionality of database (I am assuming oracle here)
    like
    CASE
    WHEN [Obj] > 0 and [obj] < 10 then '0-10'
    END
    I hope this helps.

  • Object with argument constructor in ATG

    HI guys
    Is it possible to craete an object with argument constructor with component in atg
    if it is possible give me an example

    With ATG 10.0.3 and later, you can use an $instanceFactory to create objects with constructor objects or create a Nucleus component from factory (either a static class method, or a method of another Nucleus component).
    Documentation (and an example) are here: http://docs.oracle.com/cd/E36434_01/Platform.10-1-2/ATGPlatformProgGuide/html/s0208parameterconstructorinstancefact01.html

  • ERROR: Automation server can't create object

    Hi,
    I am at my wits end, and I hope you can help me. I have
    compiled a Webhelp project that runs just fine in Firefox (with the
    exception of expanding text but blah blah blah... :P)
    When I compile the same project in IE, I get an page loading
    error that tells me that "Automation server can't create object"
    (with reference to 'whskin_pdfhtml.html' in a file path, and my ToC
    is not visible.
    My tester, who is on another machine in another location,
    tells me HIS ToC loads fine, but he gets an out of memory error at
    line 59.
    I have trawled thru these forums for an hour now, and I am no
    closer to solving this problem. I have tried creating a brand new
    empty project with one topic and I get the same error.
    Any ideas on what's happening?
    Of course, we have a demo tomorrow at 6am.
    thanks

    Guessing here.
    1] You have created webhelp pro when you don't have RoboHelp
    Server installed on the server.
    2] Your source has some output files in it. The topic
    concerned being the one that gives the memory error. This result is
    what you get when you view in RoboHelp an output file that has been
    imported into the source. I don't know whether it gives the same
    error in the output again.
    Or are you viewing the help locally instead of from a server?
    What version of IE.

  • XML Parsing and creating objects..

    I need to create objects with the value present in the XML file under a specific tag.
    E.g.:
    XML file:
    <employees.
    <employee>
    <name>
    <first>Chandan</first>
    <last>Sharma</last>
    </name>
    <empid>1212</empid>
    <dept>Telecom</dept>
    </employee>
    <employee>
    <name>
    <fitst>First</first>
    <last>Last</last>
    </name>
    <empid>100</empid>
    <dept>Dept</dept>
    </employee>
    </employees>
    There may be tags other than <employees> in the XML file.
    I need to parse this file and create objects of class
    Employees{
    String firstName,lastName,empid,dept;
    Please help me.
    As I am new with this, it would be better if you provide me some with code.
    Thanks & Regards,
    Chandan Sharma

    You can od it using SAX of course but the implementation is completely different. As I haven't used any SAX approach for many years, I can't provide you any example but you should find many of them either with google or by downloading any java implementation (like Xerces, Xalan...)
    The better solution depends on your needs. That's the standard answer, I know :)
    when you use DOM, you load the entire content of the file in the memory. and then you travel through the JAVA structure that has been created by using the methods I gave you.
    When you use SAX, you define a listener for your parser that will be called any time the parser finds something interesting. a new node, a new attribute, a new node content... sometimes it's a pain to implement.
    In my opinion if your application will only handle one message at a time, you should keep the DOM approach because I don't think there will be any big difference in time processing. On the other hand if your application will potentially manage multiple messages at the same time, then your computer memory can be overloaded by a DOM approach and the you will face bad performances, in such case use the SAX approach.
    as a conclusion, the best way to make a decision is to run benchmarks. good luck :)
    Marc

Maybe you are looking for

  • Cannot send email using port 465 from a network other than my ISP

    I cannot send email from my ISP POP mail account when I am in a different network (e.g. when traveling). This happens with my iPad and my iPhone. However, I can send mail if I turn off wifi and use 3G. The outgoing port is 465. Using my .mac account

  • Our EFFECT COLOUR CORRECTION COLOUR BALANCE  feature doesn't work on solids. Any clues?

    Hi, I'm trying to help a friend troubleshoot a light sabre effect. He has followed a series of instructions from the net, but no matter what we try the solid will not change colour using the EFFECT > COLOUR CORRECTION > COLOUR BALANCE feature on the

  • Java ME SDK 3.0 Problems

    I need to develop J2me (Midlet for graduation project)...I installed Java ME SDK 3.0 after installing JDK 6.0 I was running Java ME SDK 3.0 and I faced some errors: An error: A java.io.IOException exception has occurred java.net.ConnectException:conn

  • URL import problem

    I have noticed a problem when I import a vCard from Address Book on my MacBook Pro OS X 10.6.8 The URL addresses always have an extra character in them. The first part - https:// will always be this http\:// when imported into iCloud Contacts. Anyone

  • DELETED FILES DO NOT GO TO TRASH

    Every time I delete a file, it does not go to trash, it simply disapear so trash bin is useless. How can I fix this problem? I want my deleted files to be shown in my recycle bin.