Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Activiti module for Ninja framework

License

NotificationsYou must be signed in to change notification settings

mortezaadi/ninja-activiti-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Activiti (http://activiti.org/) is a light-weight workflow and Business Process Management (BPM) Platform targeted at business people, developers and system admins. Its core is a super-fast and rock-solid BPMN 2 process engine for Java.

This module helps running activiti inside Ninja framework (http://www.ninjaframework.org/).

Getting started

Setup

  1. Add the ninja-activiti-module dependency to your pom.xml:

    ir.cafebabe.ninja ninja-activiti-module 0.0.1
  2. Install the module in your conf.Module:

    @Overrideprotected void configure() {install(new ActivitiModule());}

  3. All set! Start Ninja application and activiti engine will be started with an in-memory database and default configs.you can inject activiti ProcessEngine, FormService, TaskService, ... in your code.

    @Singletonpublic class Sample {

     @Inject ProcessEngine processEngine; @Inject FormService formService; @Inject HistoryService historyService; @Inject IdentityService identityService; @Inject RepositoryService repositoryService; @Inject RuntimeService runtimeService; @Inject ManagementService managementService; @Inject TaskService taskService;

    }

Activiti Engine Configurations

  1. You can create activiti.cfg.xml in 'conf' directory. This file will be used as a default activiti configurations. for more detail on how to use the file refer to "www.activiti.org/userguide/".

  2. You can also choose the "configuration file" in conf/application.conf.

    activiti.cfg.path=conf/my.activiti.cfg.xml%test.activiti.cfg.path=conf/mytest.activiti.cfg.xml

  3. There is also possibility to set activiti configuration in conf/application.conf file without providing activiti xml configuration file.

    ...activiti.jdbcDriver=org.h2.Driveractiviti.jdbcUrl=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000activiti.jdbcUsername=saactiviti.jdbcPassword=activiti.mailServerHost=localhost...

consult activiti documents for list of all process engine configurations "www.activiti.org/userguide/".

  1. Mixed-mode: You can also mix xml and property configuration. by providing both activiti.cfg.xml file and ninja properties(conf/application.conf). configs in conf/application.conf overrides xml configuration.

  2. No configuration: If there was no configuration, the default activiti configurations with an in-memory database will be applied.

Order of applying configurations

Step1) If Default activiti.cfg.xml is provided it will be read unless you explicitly set the config file path in "conf/application.conf" --> activiti.cfg.path=conf/my.activiti.cfg.xml

Step2) If there are activiti configuration in "conf/application.conf" they will be override xml configurations.

About

Activiti module for Ninja framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp