Skip to content

Workflow driven test application using Camunda BPM and .NET Core

License

Notifications You must be signed in to change notification settings

freneza/camunda-workflow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

camunda-workflow

Workflow driven test application using Camunda BPM and .NET Core 3.1


This sample application was built with the sole purpose of exercising a Camunda BPM Process upon an API call inside a .NET Core 3.1 project.

This solution has two projects:

  • UserRegistrationApi: Contains a POST endpoint that captures de user data and starts the Camunda Process.
  • UserRegistrationWorkerService: Contains the workers implementation responsbile for executing the external tasks defined in the workflow.

This is the workflow definition, built with Camunda Modeler:

Image description

The workflow definition can be found inside the folder /Workflows.

This project uses the C# client Camunda library Camunda.Api.Client.

Running the solution:

  1. Start Camunda Server. You can do this running the docker-compose.yml in the root folder: docker-compose up
  2. Deploy the workflow to http://localhost:8080/engine-rest (if you wish feel free to change this address but remember to also change the connection path inside the projects). You can use curl or any rest client: curl --location --request POST 'http://localhost:8080/engine-rest/deployment/create' \ --form 'upload=@"./camunda-workflow/Workflows/user_registration.bpmn"'
  3. Run both projects of the solution.
  4. Send a POST /users/register request. Payload example:

curl -X POST "https://localhost:44340/users/register" -H "accept: */*" -H "Content-Type: application/json" -d "{\"name\":\"user1\",\"password\":\"1234\",\"repeatPassword\":\"1234\"}"

About

Workflow driven test application using Camunda BPM and .NET Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%