Skip to content

developerworks/camunda-bpm-graphql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Camunda GraphQL

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.

Overview

Installation

  1. 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 at http://<server-name>:<PORT>/graphql

    If you use tomcat, you could deplay your war with Manager App to test the graphql, see: camunda-community-hub#10 (comment)

  2. Optional: To play around with GraphQL we highly encourage you to install GraphiQL.

    You can google for GraphiQL or install GraphiQL from these places:

    Configure GraphiQL to point to the GraphQL endpoint as defined in step 1.

    Basic Authentication:
    You must add an Authorization-Header to your GraphQL-request!
    Example for user 'demo' and 'password 'demo' is:
    Key='Authorization'
    Value='Basic ZGVtbzpkZW1v'

    In GraphiQL (graphiql-app) there is a link 'Edit HTTP headers' where you can adjust your request headers.



Example Queries

###Fetch all Tasks:

query 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:

query tasks with args

(Queries are based on the Camunda Process Engine API)

Example Mutation

###Set the assignee of a specific Task:

setAssigne mutation

(Here it's specified that the fields id, name and assignee should be returned after the mutation.)

Camunda GraphQL Types (automatically generated documentation)

###Fields of a Task (TaskEntity)
type Task

Camunda Forum Thread (initial)

https://forum.camunda.org/t/developing-the-camunda-graphql-extension

About

GraphQL for Camunda BPM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%