在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):camunda-community-hub/camunda-platform-7-graphql开源软件地址(OpenSource Url):https://github.com/camunda-community-hub/camunda-platform-7-graphql开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):Camunda Platform GraphQLCamunda Platform GraphQL is a Community Extension for Camunda Platform 7 that allows you to use GraphQL to query and mutate Process Engine data in a simple way. Release 0.4.0
Spring Boot Camunda GraphQL Server EmbbeddedSpring Boot (only supported on version 0.4.0 or higher)In your Camunda Spring Boot project add the following dependencies Gradle Camunda Extension GraphQL implementation group: 'org.camunda.platform7.extension.graphql', name: 'camunda-platform-7-graphql', version: '0.5.0' Spring Boot GraphQL Kickstart (the version 11.1.0 or higher) implementation group: 'com.graphql-java-kickstart', name: 'graphql-spring-boot-starter', version: '11.1.0'
implementation group: 'com.graphql-java-kickstart', name: 'graphiql-spring-boot-starter', version: '11.1.0'
implementation group: 'com.graphql-java-kickstart', name: 'graphql-java-tools', version: '11.0.1' Maven Camunda Extension GraphQL <dependency>
<groupId>org.camunda.platform7.extension.graphql</groupId>
<artifactId>camunda-platform-7-graphql</artifactId>
<version>0.5.0</version>
</dependency> Spring Boot GraphQL Kickstart (the version 11.1.0 or higher) <dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-spring-boot-starter</artifactId>
<version>11.1.0</version>
</dependency>
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphiql-spring-boot-starter</artifactId>
<version>11.1.0</version>
</dependency>
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-java-tools</artifactId>
<version>11.0.1</version>
</dependency> Use the example if necessary. By default the GraphQL and GraphiQL are available at the uri /graphql and /graphiql respectively, this configuration and others can be change by properties. The available settings can be consulted directly in the project of Spring Boot GraphQL Kick Start Install the Camunda GraphQL Server on Tomcat or WildflyBuild the GraphQL server
Tomcat installation
Wildfly installationFor WildFly you have to clone the project and build the Test the InstallationAccess the GraphQL endpoint with a browser
Access the GraphQL endpoint with GraphiQL an in-browser IDE for exploring GraphQL
Other GraphQL clientsBeside the build-in GraphiQL you can use other GraphQL clients.
Examples of other GraphQL clients:
GraphQL Queries and MutationsQuery Tasks: Query Tasks using a Filter: Query Process Instances: Query Process Instance Variables: Query Task Variables: Mutation Mutation GraphQL Schemas and TypesA GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations. Currently defined queries:Currently defined mutations:Defining / Extending the Camunda GraphQL SchemaWe decided to use the Schema Definition Language (a GraphQL DSL) to define the Camunda GraphQL schema instead of coding it in Java. To get an understanding of Schemas please visit: The Camunda GraphQL Schema is comprised of several schema files located at The so called Root Types serve as entry points for Queries and Mutations (in the future: Subscriptions etc.) The Root Types schema file is IntrospectionFor interactive GraphQL code completion, build-time validation, GraphQL Schema stiching or other fancy things This is a possible and probably quite complete Introspection Query (from GraphQL Voyager):
Awesome! AuthenticationThe Camunda GraphQL server supports three Authentication methods:
Properties which manage authentication are:
These properties can be set as
E.g. if you are using Tomcat you can add them to catalina.properties. If authentication is switched on (Basic or JWT) the Camunda GraphQL Server expects an Authorization-Header in the client request. Basic AuthenticationTo switch to Basic Authentication use: For example if you have a Camunda user JSON Web Token) AuthenticationJWT (To switch to JWT you must set three properties: A JWT Authorization-Header could look like this: Important!
must be the same, otherwise the JWT cannot be validated and user do not get authenticated. (BTW, this is also a good option to basically implement Single Sign On). Further information about JWT: https://jwt.io No AuthenticationTo switch off authentication you simply set: Goals
Camunda Forum Thread (initial)https://forum.camunda.org/t/developing-the-camunda-graphql-extension |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论