GraphQL Mapping Json Generator
graphql.mappingjsongenerator
Id | Name | Version | Publish date | Download |
---|---|---|---|---|
6c7c2d42e8c448e19ba4c70b28614ea3 | GraphQL Mapping Json Generator | 63.1.0+13 | 8/6/2025 |
This module provides the generator to build mapping Json files that will be used as GraphQL schemas.
This module provides the generator to build mapping Json files that will be used as GraphQL schemas.
GraphQL Module
This generator is an executable jar file that expect some parameter to run. It works for HOPEX V5 and above. It is recommended to use the default HOPEX JRE to run it.
Should you want to complete the default schema with additional MetaClass, MetaAttribute... follow the steps below :
This generator apply the following rules :
In this example all the files will be moved to the destination folder C:\temp\java. You can adjust according to your case.
{
"included": "true",
"schemaName": "ITPM",
"metaModelAbsoluteIdentifier": "TeEKeRMmSPYK",
"login": "Tibere",
"password": "Hopex",
"profile": "ITPM Functional Administrator"
},
The targeted Hopex core should be registered in windows. To do that you should go where your hopex is installed and using the cmd: mgwmapp.exe /regserver Or if there is a powershell file named "HOPEX-regserver.ps1" in the root folder, you should run it instead of the cmd command line.
Before to run the generator edit the file 'run.bat' to adjust :
To run the program execute the run.bat file. In case of success the message appear in the console.
Processing the request may take a while : between 30 to 45 min depending on the complexicity of the metamodel.
Example of console message in debug :
[2020-09-14 08:35:21] [CONFIG ] debug = true
[2020-09-14 08:35:21] [CONFIG ] verbose = false
[2020-09-14 08:35:21] [CONFIG ] Folder = c:\temp\java\
[2020-09-14 08:35:21] [CONFIG ] Log Folder = c:\temp\java\
[2020-09-14 08:35:21] [CONFIG ] File Name Override = 00_OverrideName_Global.JSON
[2020-09-14 08:35:21] [CONFIG ] File Name Schema = 00_SchemaToGenerate.JSON
[2020-09-14 08:35:21] [CONFIG ] Environment = C:\Users\Public\Documents\HOPEX V5\PRESALESV5
[2020-09-14 08:35:21] [CONFIG ] Repository = SOHO
[2020-09-14 08:35:21] [INFOS ] Read schema name
[2020-09-14 08:35:22] [INFOS ] ########### Starting ###########
[2020-09-14 08:35:22] [INFOS ] ########## Starting : Custom
[2020-09-14 08:35:22] [INFOS ] Open HOPEX
[2020-09-14 08:35:29] [INFOS ] Open Session
[2020-09-14 08:35:29] [INFOS ] sAdministrator: Mega - sPassword: *****
[2020-09-14 08:35:30] [INFOS ] Read overRideName JSON
[2020-09-14 08:35:30] [INFOS ] Creating JSON
[2020-09-14 08:35:30] [INFOS ] Start Metaclass
[2020-09-14 08:35:32] [INFOS ] Size = 1
[2020-09-14 08:35:33] [INFOS ] MetaClass = Application
[2020-09-14 08:36:01] [INFOS ] Starting Reverse Id
[2020-09-14 08:36:01] [INFOS ] Start Interfaces
[2020-09-14 08:36:01] [INFOS ] Wrting filec:\temp\java\ABC.JSON
[2020-09-14 08:36:01] [INFOS ] Write overRideName JSON
[2020-09-14 08:36:01] [INFOS ] HOPEX Closed
[2020-09-14 08:36:01] [INFOS ] ########### All done ###########
NA