A process application to show how you can use all features of the task list with dynamically configured content.
You have to pass process variables for
- task name:
taskName
- assignee:
assignee
- candidateGroups:
candidateGroups
- due date:
dueDate
- follow up date:
followUpDate
- priority:
priority
- task form key:
formKey
- task description:
description
when starting the process instance.
All these variables have to be passed, otherwise you will get this error:
org.camunda.bpm.engine.ProcessEngineException: Unknown property used in expression: ${dueDate}. Cause: Cannot resolve identifier 'dueDate'
...
Caused by: org.camunda.bpm.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'dueDate'
To start a process instance by rest call may look like this:
POST /engine-rest/process-definition/key/single-task-process/start HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Cache-Control: no-cache
{
"variables" : {
"taskName" : { "value" : "My task" },
"assignee" : { "value" : "john" },
"candidateGroups" : { "value" : "management" },
"dueDate" : { "value" : "2016-09-23" },
"followUpDate" : { "value" : null },
"priority" : { "value" : 15 },
"formKey" : { "value": "embedded:app:forms/task-form.html" },
"description" : { "value" : null}
}
}
If you like to get a readable name in the process diagram, you can set the name in a TaskListener
.
There is no web interface to access the application.
To get started refer to the InMemoryH2Test
.
To deploy it, you can use the maven plugin and run mvn clean tomcat7:[|re|un]deploy
for tomcat or
mvn clean [jboss-as|wildfly]:[un]deploy
for the application servers.
Once you deployed the application you can run it using Camunda Tasklist and inspect it using Camunda Cockpit.
Built and tested against Camunda BPM version 7.5.0.
A Process Application for Camunda BPM.
This project has been generated by the Maven archetype camunda-archetype-servlet-war-7.5.0.