-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
INI Configuration #1
Comments
Good morning, Herve, I need to integrate Service Now with Archi. I have installed the plugin for Archi 4 but I have problems to understand the .ini file. Could you give me a hand to set up the file? Thanks and best regards, |
Hi Javier, To be honest, the ServiceNow plugin has not been used by a lot of people. It may not be very useful for you as it has been developed to map full ServiceNow tables to Archi and it was more than 2 years ago. I do not know if the plugin still works with the actual datamodel of ServiceNow. This said, the ini file has got comments that explain the different fields to fill in. So could you be a bit more explicit about the help you require and I'll do my best to assist you. Best regards |
Good Morning, Thanks and best regards, |
SNowPlugin.version = 1.1 log4j.rootLogger = ALL, SNowPlugin log4j.appender.SNowPlugin = org.apache.log4j.FileAppender servicenow.site = https://dev64799.service-now.com/ archi.elements.id = sys_id
archi.elements..sys_id = sys_id
archi.elements.cmdb_ci_database.mapping = "SystemSoftware" |
I have managed to connect to the Service Now Database. I commented: I have a table called "x_252969_test_cmdb_ci_database". In that table I have 6 records. The columns are: Active, Number, Name, Description, Type, Version. With the following code I only load the 6 objects of type "SystemSoftware" and in the properties only the sys_class_name and sys_id. How do I have to put it so that I put all the properties? I put only the code part of the properties Thanks and best regards, |
.... archi.elements.id = sys_id
archi.elements.x_252969_prueba_cmdb_ci_database.sys_id = sys_id
archi.elements.x_252969_prueba_cmdb_ci_database.mapping = "SystemSoftware" |
Hi, The plugin is effectively a bit too old to work with the latest version of Archi (4.2):
I recompiled a new 1.2 version with these 2 changes and it works with my ServiceNow access :-) Please note that you also need to double the backslash in your log filename (i.e. C:**\**archimate-import_servicenow.log). Best regards |
Thank you very much for the help Herve91, Regarding the .log file: Regarding the behavior of the .ini I have some doubts. If you can connect to my instance in Service Now: servicenow.site = https://dev64799.service-now.com/ You can see that I have an application called test and in it a table called "x_252969_prueba_cmdb_ci_database" with the following fields: Active, Number, Name, Description, Type, Version, etc. These fields do load me in the properties of the objects, putting it in the following way: The problem comes when you create the objects, you create them all with the name "System Software". How do I have to do it so that I put the names and the documentation in each one of the objects? I do not mean in the "propierties" tab but in the "main" tab of each object. Could you give me your email and we talk better? Would be a great help I hope you have explained me well. Thanks and best regards, |
I do not need a proxy. The code of the servicenow.ini that I use is the following: SNowPlugin.version = 1.1
log4j.rootLogger = ALL, SNowPlugin log4j.appender.SNowPlugin = org.apache.log4j.FileAppender
servicenow.site = https://dev64799.service-now.com/
archi.elements.id = sys_id
archi.elements.x_252969_prueba_cmdb_ci_database.sys_id = sys_id
archi.elements.x_252969_prueba_cmdb_ci_database.mapping = "SystemSoftware" |
Hi, My apologies for this late answer, I just came back from holidays and spent a lot of time on roads these last days. Basically, the ini file maps ServiceNow tables content to Archi components. To check your ServiceNow structure, you may retrieve the following web service: Then you can see that there is no "name" property, so the mapping "archi.elements.name = name" lead to elements having no name, which is not permitted in Archi so the name defaults to the elements class. In the opposite, you can see that there is a property called "u_nombre" which should be what you are searching for. So I believe you should replace the previous mapping by "archi.elements.name = u_nombre". And same for "archi.elements.documentation = u_descripcion" Hope this helps Best regards |
Good morning Herve, Doing tests, I think I have detected an error. If you modify the properties of the object in Archi, for example, I modify the properties "Active", "Descripcion" and "Tipo" of the object "0prueba_borrar", and then import again from Service Now (File-> Import-> Import from Service Now); it only modifies the "Active" property (false-> true), because it is the first property in alphabetical order. It does not modify either the "Description" property or the "Type" property. Reviewing the code, I think the error may be in this loop on line 308, since it seems that in this loop it takes the properties and checks without having to update them or not, and apparently only takes the first property in alphabetical order. for (Iterator i = element.getProperties().iterator(); i.hasNext(); ) { If I modify some property in Archi, it must be modified according to the properties of Service Now. Can you help me? Thanks for the support. Greetings, |
Hi, I effectively found the property update and solved it. I let you check the 1.2.1 version. Please note that you'll have to update the property "SNowPlugin.version" to "1.2.1" at the top of the ini file. As for the accents, this is not related to my plugin but to Archi. You need to run Archi in UTF-8, adding the following line to the archi.ini file (in Archi's folder): -Dfile.encoding=UTF-8 I close this case. Please do not hesitate to open a new one if you discover other issues. Best regards |
Buenos días herve,
necesito integrar Service Now con Archi. He instalado el plugin para Archi 4 pero tengo probelmas para entender el archivo .ini. ¿podrías echarme una mano para configurar el archivo?
Gracias y un saludo,
Javier.
The text was updated successfully, but these errors were encountered: