com.camunda.consulting.util:camunda-util-demo-support

This pom defines the required plugins and profiles to allow a camunda release build. Inherit this pom when you want to release your project into the camunda nexus and/or maven central.

License

License

GroupId

GroupId

com.camunda.consulting.util
ArtifactId

ArtifactId

camunda-util-demo-support
Last Version

Last Version

0.4.3
Release Date

Release Date

Type

Type

jar
Description

Description

This pom defines the required plugins and profiles to allow a camunda release build. Inherit this pom when you want to release your project into the camunda nexus and/or maven central.
Project Organization

Project Organization

camunda services GmbH
Source Code Management

Source Code Management

https://github.com/camunda-consulting/camunda-util-demo-support

Download camunda-util-demo-support

How to add to project

<!-- https://jarcasting.com/artifacts/com.camunda.consulting.util/camunda-util-demo-support/ -->
<dependency>
    <groupId>com.camunda.consulting.util</groupId>
    <artifactId>camunda-util-demo-support</artifactId>
    <version>0.4.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.camunda.consulting.util/camunda-util-demo-support/
implementation 'com.camunda.consulting.util:camunda-util-demo-support:0.4.3'
// https://jarcasting.com/artifacts/com.camunda.consulting.util/camunda-util-demo-support/
implementation ("com.camunda.consulting.util:camunda-util-demo-support:0.4.3")
'com.camunda.consulting.util:camunda-util-demo-support:jar:0.4.3'
<dependency org="com.camunda.consulting.util" name="camunda-util-demo-support" rev="0.4.3">
  <artifact name="camunda-util-demo-support" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.camunda.consulting.util', module='camunda-util-demo-support', version='0.4.3')
)
libraryDependencies += "com.camunda.consulting.util" % "camunda-util-demo-support" % "0.4.3"
[com.camunda.consulting.util/camunda-util-demo-support "0.4.3"]

Dependencies

provided (1)

Group / Artifact Type Version
org.camunda.bpm : camunda-engine jar 7.6.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

Helper to Setup Environment for Demo Use Cases

As this dependency to your project (available via Maven Central to avoid problems with building demos/showcases):

    <dependency>
        <groupId>com.camunda.consulting.util</groupId>
        <artifactId>camunda-util-demo-support</artifactId>
        <version>0.4.3</version>    
    </dependency>

Now you can do a couple of things in a @PostDeploy hook of a process application:

@ProcessApplication
public class MyProcessApplication extends ServletProcessApplication {

  @PostDeploy
  public void setupEnvironmentForDemo(ProcessEngine engine) {

    LicenseHelper.setLicense(engine);
    DataGenerator.createDefaultUsers(engine);

    addUser(engine, "ben", "ben", "Ben", "Brooks");
    addGroup(engine, "clerk", "Clerk", "ben");  
    addFilterGroupAuthorization(engine, "clerk", FILTER_myTasks, FILTER_groupTasksFilter, FILTER_allTasksFilter);   

    addUser(engine, "lisa", "lisa", "Lisa", "Floyd");
    addGroup(engine, "management", "Management", "lisa");
    addFilterUserAuthorization(engine, "lisa", FILTER_myTasks, FILTER_groupTasksFilter, FILTER_allTasksFilter);

    createGrantGroupAuthorization(engine, //
        new String[] { "clerk" }, //
        new Permission[] { Permissions.READ, Permissions.READ_HISTORY, Permissions.UPDATE_INSTANCE }, //
        Resources.PROCESS_DEFINITION, //
        new String[] { "insurance-application" });

See InsuranceProcessApplication for an example of using it.

Features

Now the process application will automatically:

  • Set a license found in USER-HOME/.camunda/build.properties
  • Create default user "admin" and group "management"
  • Create users & groups as specified (if not already existant)
  • Set the password of created users to the password given + a suffix read from USER-HOME/.camunda/build.properties

Configuration

In order to configure the util create a file USER-HOME/.camunda/build.properties:

camunda.license=...(your camunda ee license key)...
camunda.password.suffix=MySecret

Environment Restrictions

You need Camunda BPM 7.4.0-alpha2 onwards

License

Apache License, Version 2.0.

com.camunda.consulting.util

Camunda Consulting

Versions

Version
0.4.3
0.4.2
0.4.1