Activiti BPM

Introduction

Activiti is an open-source workflow engine written in Java that can execute business processes described in BPMN 2.0.

Download

If the download page [https://www.activiti.org/download-bpm] does not seem to work.

Github has the releases available [https://github.com/Activiti/Activiti/releases].

References

Note: activiti.version must be changed from former 5.19.0.2 to current 6.0.0 (in pom.xml)

  • Activiti 5.x Business Process Management Beginner's Guide by Dr. Zakir Laliwala; Irshad Mansuri. Packt Publishing, 2014

Troubleshooting

Unfortunately, the Windows shell (cmd.exe) uses quote marks differently from Mac OSX and Linux.

The simplest fix is to avoid single-quotes and use double quotes, with the double-quotes in the JSON document escaped.

Another option is to use a different shell, as 'Git Bash' (C:\Program Files\Git\git-bash.exe).

Sample GET >

curl -u admin:admin http://localhost:8080/api/ui/v1/test-get/john.doe@gpra.com

Sample POST >

curl -u admin:admin -H "Content-Type: application/json" -d '{"name":"John Doe", "email": "john.doe@alfresco.com", "phoneNumber":"123456789"}' http://localhost:8080/start-hire-process

So, the original:

curl -u admin:admin -H "Content-Type: application/json" -d '{"processDefinitionKey":"hireProcess", "variables": [ {"name":"applicantName", "value":"John Doe"}, {"name":"email", "value":"john.doe@alfresco.com"}, {"name":"phoneNumber", "value":"1234567"} ]}' http://localhost:8080/runtime/process-instances

becomes:

curl -u admin:admin -H "Content-Type: application/json" -d "{\"processDefinitionKey\":\"hireProcess\", \"variables\": [ {\"name\":\"applicantName\", \"value\":\"John Doe\"}, {\"name\":\"email\", \"value\":\"john.doe@alfresco.com\"}, {\"name\":\"phoneNumber\", \"value\":\"1234567\"} ]}" http://localhost:8080/runtime/process-instances