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.

Лицензия

Лицензия

Группа

Группа

com.camunda.consulting.util
Идентификатор

Идентификатор

camunda-util-demo-support
Последняя версия

Последняя версия

0.4.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

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.
Организация-разработчик

Организация-разработчик

camunda services GmbH
Система контроля версий

Система контроля версий

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

Скачать camunda-util-demo-support

Как подключить последнюю версию

<!-- 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"]

Зависимости

provided (1)

Идентификатор библиотеки Тип Версия
org.camunda.bpm : camunda-engine jar 7.6.0

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.4.3
0.4.2
0.4.1