Hi everybody,
I have been developing a script to update a by reading an Excel. The structure of my design is a combination of models, having objects with assigned models which i have to dig in in order to insert my data.
When I finally get the final model where I'm going to create my objects, I'm not able to create a connexion between the father of the herarchy and my new object (While the connexion between the two object types is defined in the model selected connections). Is there a way to know why I can't create that connexion? The function only gives me a null return and I have no clue of which error I'm making.
Tank you.
Conrad Romagosa.
Please check the filter you used to login to the database. Make sure the connection type is allowed for the pair of symbols in the model type where your are trying to create the connection. If you are using the entire method filter, check the ARIS method, that this connection type is available for this pair of symbols in the model type.
Also check, that the user running the script has got write permissions on the group of the model and the groups where the objects are that you are connecting, though I'm not sure, if the latter is really necessary. You can find out by modelling manually with the permission configurations.
I'm creating other objects and connexions in the same model, so I have permissons to write. Also, my symbols and connexions are defined in my model properties (see image attached), this are some things that come to my mind:
- Does the top object of the Organizational chart have any restriction to be modified?
- Can the PointList parameter in CreateCxnOcc be a problem? I'm using a java.awt.Points list with (0,0) and (1,1).
PD: I added the connexion creation code and the values so you can see what I'm doing.
Hello,
there is nothing that distinguishes a "top object" from any other object occurrence. They are equal citizens. I would suspect, that your dummy point list might be a problem. Have you tried an empty point list there? You might take a look at a "real" point list from something you modelled by hand in order to learn, which points are expected there.
You can query it from an existing CxnOcc with getPoints().
This behaviour is a strong indication that your current method filter does not allow the connection. When you extend the ARIS method in any way, at first the new method element is available only in the Entire Method filter. You have to add the new element (e.g. the connection) to the method filter you are actually working with in the database.