Camunda GraphQL is a Community Extension for Camunda BPM that allows you to use GraphQL to query and mutate Process Engine data in a simple way.
-
Build and deploy the WAR file of this project to your Camunda BPM Server.
Use Application Context/graphql
.
That's it. You added GraphQL to Camunda BPM athttp://<server-name>:<PORT>/graphql
-
Optional: To play around with GraphQL we highly encourage you to install GraphiQL.
You can google for GraphiQL or install GraphiQL from these places:
-
https://github.com/redound/graphql-ide
(Windows, Mac OS X) -
https://github.com/skevy/graphiql-app
Mac User just type:brew cask install graphiql
Windows/Linux User:npm install -g electron
- download graphiql-app zip/tar.gz from https://github.com/skevy/graphiql-app/releases
- unzip
electron <app-folder>
with app-folder =GraphiQL.app/Contents/Resources/app
Configure GraphiQL to point to the GraphQL endpoint as defined in step 1.
See examples below. -
###Fetch all Tasks:
(on the left side is the query we just typed in. After pressing the Play-Button on top the result appears on the right side. )
###Fetch Tasks with Filter:
(Queries are based on the Camunda Process Engine API)
###Set the assignee of a specific Task:
(Here it's specified that the fields id
, name
and assignee
should be returned after the mutation.)
###Fields of a Task (TaskEntity)
https://forum.camunda.org/t/developing-the-camunda-graphql-extension