lib/jruby_activiti.rb in jruby_activiti-1.1.3 vs lib/jruby_activiti.rb in jruby_activiti-1.2.0

- old
+ new

@@ -1,14 +1,26 @@ require "jruby_activiti/version" require "jbundler" Bundler.require "activiti-engine" -ActivitiConfigPath ||= "config/activiti.cfg.xml" - module JrubyActiviti + ConfigPath ||= "config/activiti.cfg.xml" + def self.get_engine configuration = Java::OrgActivitiEngine::ProcessEngineConfiguration. - createProcessEngineConfigurationFromResource(ActivitiConfigPath) + createProcessEngineConfigurationFromResource(ConfigPath) configuration.buildProcessEngine end -end + + module Activiti + Engine = JrubyActiviti.get_engine + RepositoryService = Engine.getRepositoryService() + RuntimeService = Engine.getRuntimeService() + TaskService = Engine.getTaskService() + ManagementService = Engine.getManagementService() + IdentityService = Engine.getIdentityService() + HistoryService = Engine.getHistoryService() + FormService = Engine.getFormService() + + end +end \ No newline at end of file