Java Activiti User Guide Digest

JavaActivitiUserGuideDigest

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 46

Scroll down to view the document on your mobile browser.
2018/7/4 Java Activiti User Guide Digest - @//メモhttps://hondou.homedns.org/pukiwiki/index.php?Java%20Activiti%20User%20Guide%20Digest 1/46Java Activiti User Guide Digest2018-07-2018-07-030320182018    JulyJuly    Week 27Week 27    Day 03Day 03TueTue  ⽬次FrontPage ・さくらVPS ・Fedora13 ・SuSe10 ・Docker ・Ansible ・Java ・Scala ・Python ・Ruby ・Lisp ・Computer ・GIS ・HTML ・Culture ・Random ・Link ↑訪問者total: 5611  today: 21 yesterday: 11 now: 4↑更新最新の10件2018-07-02PythonCuPy onMacBookProPython2018-06-28Thought 逆伝搬についての整理2018-06-25RandomMemorandum2018Q12018-06-24Mac 数式の⼊った資料を作るOmniGraffle+LaTeXiT2018-06-23Mac2018-06-12Books 深層学習 DeepLearning2018-06-07Thought テンソル2018-05-30CulturePythonMatplotlib1. Introduction2. Getting Started3. Configuration3.16. Loggin3.18. Event handlers4. The Activiti API4.1~4.3 ワークフローを実⾏するコンソールアプリ4.3.4.プロセスの Suspend と Activate4.4 Query API4.5.Variables4.7 Unit Test4.9 The process engine in a web application6. Deployment7.標準 BPMN 2.08.Activiti 拡張 BPMN 2.08.2.Event8.3 Sequence Flow8.4 Gateways8.5 Task8.15.12.Execution listener8.5.13. Task listener8.5.14 Multi-instance (for each)8.6. Sub-Processes and Call Activities9. Form11.History13. Activiti Explorer 14. Modeler15. REST API本家 : http://www.activiti.org/userguide/1. Introduction †Activiti 本体 Apache License V2Activiti Modeler LGPL 2.1http://activiti.org/download.htmlhttps://github.com/Activiti/ActivitiJDK6+Eclipse designer pluginhttp://www.eclipse.org/downloads/ (最新の Mars でも OK だった)http://activiti.org/designer/update/ (Plugin Repository)↑2. Getting Started †TutorialJava6 + Tomcat + Activiti-ExplorerDemo database setup flagActiviti Explorer や Rest API では、後述する標準の activiti.cfg.xml の代わりに db.properties,engine.properties でアプリケーションの設定を⾏うWEB-INF/classes/db.propertiesWEB-INF/classes/engine.properties12345db=h2jdbc.driver=org.h2.Driverjdbc.url=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000jdbc.username=sajdbc.password=1234567# demo data propertiescreate.demo.users=truecreate.demo.definitions=truecreate.demo.models=truecreate.demo.reports=true # engine properties
2018/7/4 Java Activiti User Guide Digest - @//メモhttps://hondou.homedns.org/pukiwiki/index.php?Java%20Activiti%20User%20Guide%20Digest 2/46⼈気の10件FrontPage(431163)MavenEclipseとの連携(72491)Jakartalog4j.xmlに設定するログレベルの整理(67255)VBAの基本構⽂(60656)Win32 TracLightning(54708)JakartaPOI(45451)JavaSE RSA暗号(41483)Java(40691)OpenAMWordpressとの SAML連携(37622)OpenAM インストール(37126)↑MenuBar↑3. Configuration †独⾃の Workflow アプリ ⇒ ProcessEngine? を使ってワークフローを操作ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();デフォルト設定では Classpath にある activiti.cfg.xml または activiti-context.xml の設定に基づいてProcessEngine? が作られる (設定内容をプログラム内で明⽰的に設定することも可。後述)activity.cfg.xml891011121314151617engine.schema.update=trueengine.activate.jobexecutor=falseengine.asyncexecutor.enabled=trueengine.asyncexecutor.activate=trueengine.history.level=full # email properties#engine.email.enabled=true#engine.email.host=localhost#engine.email.port=1025https://github.com/kagyuu/ActivitiExam/blob/master/src/main/resources/activiti.cfg.xml123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263<beans xmlns="http://www.springframework.org/schema/beans"       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframew    <!-- 3.2.processEngineConfiguration  Stand alone app          : org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration  Test (Use in-memory h2)  : org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfigurat  Spring integration       : org.activiti.spring.SpringProcessEngineConfiguration  Stand alone app with JTA : org.activiti.engine.impl.cfg.JtaProcessEngineConfiguration  -->  <bean id="processEngineConfiguration"  class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">      <!-- 3.3-3.8.database connection     support h2, musql, oracle, postgres, db2, mssql    -->    <property name="jdbcUrl" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" />    <property name="jdbcDriver" value="org.h2.Driver" />    <property name="jdbcUsername" value="sa" />    <property name="jdbcPassword" value="" />    <!-- Optional database connection properties * The unit of XXXTime is millisec *    <property name="jdbcMaxActiveConnections" value="10" />    <property name="jdbcMaxIdleConnections" value="" />    <property name="jdbcMaxCheckoutTime" value="20000" />    <property name="jdbcMaxWaitTime" value="20000" />    -->    <!-- Schema Update    false (default) : If the db schema version != activiti lib version then abend    true            : If the db schema version != activiti lib version then update db schema    create-drop     : Always create and drop schema    <property name="databaseSchemaUpdate" value="false" />    -->      <!-- 3.9-3.11 Job Executor    By default, the JobExecutor is activated when the process engine boots.    By default, the AsyncExecutor is not enabled and the JobExecutor is used    due to legacy reasons.    It?'s however recommended to use the new AsyncExecutor instead.    -->    <!--    <property name="jobExecutorActivate" value="false" />    <property name="asyncExecutorEnabled" value="true" />    <property name="asyncExecutorActivate" value="true" />    -->      <!-- 3.12. Mail Configuration (for email task)    |======================|=======================|        |property name         | Default value         |    |======================|=======================|    |mailServerHost        | localhost             |    |mailServerPort        | 25                    |    |mailServerDefaultFrom | activiti@activiti.org |    |mailServerUsername    | (not set)             |    |mailServerPassword    | (not set)             |    |mailServerUseSSL      | (not set)             |    |mailServerUseTLS      | (not set)             |    |======================|=======================|    -->    <property name="mailServerHost" value="localhost" />    <property name="mailServerPort" value="50025" />      <!-- 3.13. History (for logging task execution)    <property name="history" value="audit" />

Navigation menu