{"id":10006486,"date":"2022-09-15T12:43:01","date_gmt":"2022-09-15T04:43:01","guid":{"rendered":"https:\/\/ityet.com\/?p=10006486"},"modified":"2022-09-15T12:43:01","modified_gmt":"2022-09-15T04:43:01","slug":"%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e5%a4%a7%e5%ae%b6%e7%bc%96%e8%af%91-flowable-%e6%ba%90%e7%a0%81","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006486","title":{"rendered":"\u624b\u628a\u624b\u6559\u5927\u5bb6\u7f16\u8bd1 flowable \u6e90\u7801"},"content":{"rendered":"<p>\u8981\u8bf4\u8fd9\u4e2a\u7f16\u8bd1\u6e90\u7801\u5176\u5b9e\u6ca1\u4ec0\u4e48\u6280\u672f\u542b\u91cf\uff0c\u4f46\u662f\u7531\u4e8e\u56fd\u5185\u7684\u7f51\u7edc\u95ee\u9898\uff0cSpring \u7b49\u5404\u79cd\u5e38\u89c1\u6846\u67b6\u7684\u6e90\u7801\u7f16\u8bd1\u90fd\u53d8\u6210\u4e86\u4e00\u4e2a\u6709\u6280\u672f\u542b\u91cf\u7684\u5de5\u4f5c\uff0c\u4f60\u5f97\u5b66\u4f1a\u53bb\u89e3\u51b3\u5404\u79cd\u5728\u7f16\u8bd1\u7684\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\u3002<\/p>\n<p>\u4eca\u5929\u677e\u54e5\u5c31\u6765\u548c\u5927\u5bb6\u804a\u4e00\u804a flowable \u6e90\u7801\u7f16\u8bd1\uff0c\u5176\u5b9e\u4e3b\u8981\u662f\u548c\u5927\u5bb6\u8bf4\u8bf4\u8fd9\u91cc\u7684\u51e0\u4e2a\u5751\u3002<\/p>\n<h2>1. \u4e0b\u8f7d\u6e90\u7801<\/h2>\n<p>\u8fd9\u4e2a\u7b80\u5355\uff0c\u5927\u5bb6\u76f4\u63a5\u4ece GitHub \u4e0a\u5c06\u6e90\u7801 clone \u4e0b\u6765\u5373\u53ef\uff1a<\/p>\n<pre><code class=\"shell\">git clone git@github.com:flowable\/flowable-engine.git<\/code><\/pre>\n<p>\u8fd9\u4e00\u6b65\u6bd4\u8f83\u5bb9\u6613\uff0c\u5927\u5bb6\u5e94\u8be5\u90fd\u4e0d\u5b58\u5728\u95ee\u9898\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484800\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>2. IDEA \u6253\u5f00\u9879\u76ee<\/h2>\n<p>\u7531\u4e8e\u8fd9\u4e2a\u6e90\u7801\u4e5f\u662f\u4e00\u4e2a Maven \u5de5\u7a0b\uff0c\u6240\u4ee5\u63a5\u4e0b\u6765\u76f4\u63a5 IDEA \u6253\u5f00\u6e90\u7801\u5373\u53ef\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484801\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u677e\u54e5\u4eb2\u6d4b\uff0cmaster \u5206\u652f\u4e0a\u7684\u4ee3\u7801\u6709\u70b9\u95ee\u9898\uff0c\u6240\u4ee5\u5efa\u8bae\u5927\u5bb6\u5207\u6362\u5230\u4e00\u4e2a\u7a33\u5b9a\u7684\u7248\u672c\u4e0a\u518d\u53bb\u7f16\u8bd1\u3002<\/p>\n<p>\u5b98\u65b9\u76ee\u524d\u5728 GitHub \u4e0a\u53d1\u5e03\u7684\u6700\u65b0 release \u7248\u672c\u662f 6.7.2 \u8fd9\u4e2a\u7248\u672c\uff0c\u6240\u4ee5\u4e3a\u4e86\u6e90\u7801\u7f16\u8bd1\u987a\u5229\uff0c\u63a5\u4e0b\u6765\u5728\u53f3\u4e0b\u89d2\u627e\u5230 6.7.2 \u8fd9\u4e2a\u7248\u672c\uff0c\u5e76\u5207\u6362\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484802\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5207\u6362\u5b8c\u6210\u4e4b\u540e\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u8981\u5148\u6765\u770b\u770b\u6e90\u7801\u4e2d\u6bcf\u4e2a\u76ee\u5f55\u90fd\u662f\u5e72\u561b\u7684\u3002<\/p>\n<ul>\n<li>distro<\/li>\n<li>docker\uff1a\u8fd9\u4e2a\u91cc\u8fb9\u653e\u7684\u662f\u5c06 flowable \u6784\u5efa\u6210 docker \u955c\u50cf\u7684\u811a\u672c\u3002<\/li>\n<li>docs\uff1a\u8fd9\u4e2a\u662f\u6587\u6863\u3002\u5728 <code>docs\/docusaurus\/docs<\/code> \u76ee\u5f55\u4e0b\u6709\u5b98\u65b9\u5df2\u7ecf\u6784\u5efa\u597d\u7684\u73b0\u6210\u7684\u811a\u672c\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u6267\u884c <code>docs\/userguide\/src\/zh_CN\/form<\/code> \u7b49\u76ee\u5f55\u4e0b\u7684\u811a\u672c\u6587\u4ef6\uff0c\u6784\u5efa\u81ea\u5df1\u9700\u8981\u7684\u6587\u6863\u3002\u4e00\u822c\u6765\u8bf4\u4e0d\u9700\u8981\uff0c\u76f4\u63a5\u770b\u5b98\u65b9\u6587\u6863\u5c31\u591f\u7528\u4e86\u3002<\/li>\n<li>ide-settings\uff1a\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u653e\u7684\u662f Eclipse \u548c IDEA \u4e2d\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u8f85\u52a9\u5f00\u53d1\u7528\u7684\uff0c\u4f46\u662f\u611f\u89c9\u5b9e\u9645\u4f5c\u7528\u6709\u9650\uff0c\u6211\u4eec\u5e73\u65f6\u5f00\u53d1\u4e5f\u5f88\u5c11\u5bfc\u5165\u8fd9\u4e24\u4e2a\u914d\u7f6e\uff0c\u5927\u5bb6\u4e86\u89e3\u5373\u53ef\u3002<\/li>\n<li>k8s\uff1a\u770b\u76ee\u5f55\u5c31\u77e5\u9053\uff0c\u8fd9\u4e2a\u91cc\u8fb9\u653e\u7684\u662f flowable \u652f\u6301 K8s \u7684\u4e00\u4e9b\u811a\u672c\u548c\u914d\u7f6e\u3002<\/li>\n<li>modules\uff1aflowable \u4e2d\u7684\u6240\u6709\u6838\u5fc3\u529f\u80fd\u4ee3\u7801\u90fd\u5728\u8fd9\u4e2a\u91cc\u8fb9\u4e86\u3002<\/li>\n<li>qa\uff1a\u8fd9\u4e2a\u91cc\u8fb9\u662f flowable \u5404\u79cd\u5404\u6837\u7684\u914d\u7f6e\u6a21\u7248\uff0c\u4e0d\u8fc7\u6211\u4eec\u73b0\u5728\u57fa\u672c\u4e0a\u90fd\u662f Spring Boot \u5f00\u53d1\uff0c\u5f88\u591a\u65f6\u5019\u5e76\u4e0d\u9700\u8981\u624b\u52a8\u518d\u53bb\u914d\u7f6e\u4ec0\u4e48\uff0c\u90fd\u662f\u76f4\u63a5\u4e0a\u6765\u5199\u4e1a\u52a1\u5c31\u884c\u4e86\uff0c\u6240\u4ee5\u8fd9\u4e9b\u914d\u7f6e\u6a21\u7248\u5927\u5bb6\u4e86\u89e3\u4e0b\u5373\u53ef\u3002<\/li>\n<li>scripts\uff1a\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u653e\u4e86\u4e00\u4e9b\u5e38\u7528\u7684\u811a\u672c\uff0c\u4f8b\u5982\u6267\u884c build-all.sh \u811a\u672c\u7528\u6765\u6784\u5efa\u9879\u76ee\u3002<\/li>\n<li>tooling\uff1a\u8fd9\u4e2a\u76ee\u5f55\u4e2d\u7684\u5185\u5bb9\u7ed9\u51fa\u4e86\u4e00\u4e2a\u5355\u5143\u6d4b\u8bd5\u7684\u6a21\u7248\u3002<\/li>\n<li>LICENSE\uff1a\u5f00\u6e90\u534f\u8bae\u7b49\u3002<\/li>\n<li>README.md\uff1a\u4ecb\u7ecd\u6587\u6863\u3002<\/li>\n<\/ul>\n<p>\u597d\u4e86\uff0c\u6574\u4f53\u4e0a\u4e86\u89e3\u4e86\u4e4b\u540e\uff0c\u73b0\u5728\u5927\u5bb6\u77e5\u9053\uff0cmodules \u76ee\u5f55\u624d\u662f\u6838\u5fc3\u3002<\/p>\n<p>\u4e0d\u8fc7\uff0c\u7531\u4e8e\u6a21\u5757\u8f83\u591a\uff0cIDEA \u4e0d\u4e00\u5b9a\u603b\u662f\u80fd\u591f\u8bc6\u522b\u51fa\u6240\u6709\u7684 Maven \u9879\u76ee\uff0c\u5982\u679c\u4e00\u4e2a\u9879\u76ee\u7684 pom.xml \u662f\u7ea2\u8272\u800c\u4e0d\u662f\u84dd\u8272\uff0c\u5c31\u8bf4\u660e IDEA \u6ca1\u80fd\u8bc6\u522b\u51fa\u6765\u8fd9\u4e2a Maven \u9879\u76ee\uff0c\u50cf\u4e0b\u9762\u8fd9\u6837\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484803\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6b64\u65f6\u6211\u4eec\u8981\u6253\u5f00\u8fd9\u4e2a pom.xml \u6587\u4ef6\uff0c\u7136\u540e\u9f20\u6807\u53f3\u952e\u5355\u51fb\uff0c\u9009\u62e9 <code>Add as Maven Project<\/code>\uff0c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484804\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4f7f\u4e4b\u6210\u4e3a\u4e00\u4e2a\u6b63\u513f\u516b\u7ecf\u7684 Maven \u5de5\u7a0b\u3002<\/p>\n<p>\u6700\u7ec8\u7684\u7ed3\u679c\uff0c\u5c31\u662f\u786e\u4fdd\u6240\u6709 Maven \u5de5\u7a0b\u90fd\u662f\u9ed1\u8272\u7684\u800c\u4e0d\u662f\u7070\u8272\u7684\uff0c\u5c31\u8868\u793a\u6ca1\u6709\u95ee\u9898\u4e86\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484805\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u7b2c\u4e8c\u5c0f\u8282\u7684\u5de5\u4f5c\u770b\u7740\u5f88\u7b80\u5355\uff0c\u4f46\u662f\u5b9e\u9645\u64cd\u4f5c\u8d77\u6765\u975e\u5e38\u8d39\u4e8b\uff0c\u6700\u5927\u7684\u539f\u56e0\u8fd8\u662f\u7f51\u7edc\u95ee\u9898\u3002Maven \u7ecf\u5e38\u4f1a\u4e0b\u8f7d\u5931\u8d25\uff0c\u6240\u4ee5\u9700\u8981\u5927\u5bb6\u53cd\u590d\u591a\u8bd5\uff0c\u4ece\u963f\u91cc\u955c\u50cf\u7ad9\u5207\u6362\u5230\u534e\u4e3a\u955c\u50cf\u7ad9\uff0c\u518d\u5207\u6362\u56de\u5b98\u65b9\u7684\u955c\u50cf\u7ad9\uff0c\u53cd\u6b63\u5c31\u662f\u53cd\u590d\u91cd\u8bd5\uff0c\u76f4\u5230\u9700\u8981\u7684\u4f9d\u8d56\u90fd\u4e0b\u8f7d\u6210\u529f\u3002<\/p>\n<h2>3. \u542f\u52a8 flowable-ui<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u542f\u52a8 flowable-ui \u8fd9\u4e2a\u5de5\u7a0b\u4e86\u3002<\/p>\n<p>\u8fd9\u4e2a\u5de5\u7a0b\u672c\u8d28\u4e0a\u5c31\u662f\u4e00\u4e2a Spring Boot \u5de5\u7a0b\uff0c\u6240\u4ee5\u5173\u952e\u662f\u8981\u5927\u5bb6\u627e\u5230\u542f\u52a8\u7c7b\uff0c\u4f4d\u7f6e\u5728 <code>modules\/flowable-ui\/flowable-ui-app\/src\/main\/java\/org\/flowable\/ui\/application\/FlowableUiApplication.java<\/code>\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484806\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u8fd9\u4e2a\u76f4\u63a5\u542f\u52a8\u5373\u53ef\u3002<\/p>\n<p>\u542f\u52a8\u4e4b\u540e\u5c31\u8ddf\u677e\u54e5\u4e4b\u524d\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u7684 Flowable-UI \u4e00\u6837\u4e86\uff0c\u8be5\u548b\u7528\u548b\u7528.<\/p>\n<p>\u8fd9\u91cc\u9ed8\u8ba4\u4f7f\u7528\u7684\u662f H2 \u6570\u636e\u5e93\uff0cH2 \u662f\u4e00\u4e2a Java \u7f16\u5199\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff0c\u5b83\u53ef\u4ee5\u88ab\u5d4c\u5165 Java \u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528\uff0c\u6216\u8005\u4f5c\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u6570\u636e\u5e93\u670d\u52a1\u5668\u8fd0\u884c\u3002\u8fd9\u4e2a H2 \u6570\u636e\u5e93\u6709\u70b9\u7c7b\u4f3c\u4e8e\u79fb\u52a8\u7aef\u7684 SqlLite \u6570\u636e\u5e93\u3002<\/p>\n<p>\u6211\u4eec\u6253\u5f00 <code>modules\/flowable-ui\/flowable-ui-app\/src\/main\/resources\/flowable-default.properties<\/code> \u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u4ee5\u770b\u5230\u5173\u4e8e H2 \u6570\u636e\u5e93\u7684\u4e00\u4e9b\u914d\u7f6e\u4fe1\u606f\uff0c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484807\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4ece\u8fd9\u4e2a\u914d\u7f6e\u4e2d\u53ef\u4ee5\u770b\u51fa\u6765\u4e09\u4e2a\u6838\u5fc3\u4fe1\u606f\uff1a<\/p>\n<ul>\n<li>H2 \u6570\u636e\u5e93\u5c06\u6765\u4f1a\u81ea\u52a8\u751f\u6210\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u6587\u4ef6\u4f4d\u4e8e\u7cfb\u7edf\u5f53\u524d\u7528\u6237\u76ee\u5f55\u4e0b\uff0c\u5728\u7cfb\u7edf\u5f53\u524d\u7528\u6237\u76ee\u5f55\u4e0b\u4f1a\u81ea\u52a8\u521b\u5efa flowable-db \u6587\u4ef6\u5939\uff0c\u7136\u540e\u5728\u8be5\u6587\u4ef6\u5939\u4e0b\u521b\u5efa engine-db \u6587\u4ef6\uff0c\u5c31\u662f\u6211\u4eec\u7684\u6570\u636e\u5e93\u6587\u4ef6\u4e86\u3002<\/li>\n<li>H2 \u6570\u636e\u5e93\u7684\u7528\u6237\u540d\u662f flowable\u3002<\/li>\n<li>H2 \u6570\u636e\u5e93\u7684\u7528\u6237\u5bc6\u7801\u662f flowable\u3002<\/li>\n<\/ul>\n<p>\u597d\u4e86\uff0c\u73b0\u5728\u6211\u4eec\u5728 flowable-ui \u4e2d\uff0c\u6211\u4eec\u65b0\u5efa\u51e0\u4e2a\u7528\u6237\u548c\u7ec4\uff0c\u5982\u4e0b\uff1a<\/p>\n<p>\u65b0\u5efa\u56db\u4e2a\u7528\u6237\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484808\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u65b0\u5efa\u4e24\u4e2a\u7528\u6237\u7ec4\uff0c\u5047\u8bbe zhangsan \u548c lisi \u662f\u4e3b\u7ba1\uff0cwangwu \u548c zhaoliu \u662f\u7ecf\u7406\uff0c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484809\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u521b\u5efa\u5b8c\u6210\u4e4b\u540e\uff0c\u6211\u4eec\u77e5\u9053\u8fd9\u4e9b\u6570\u636e\u90fd\u662f\u4fdd\u5b58\u5728 H2 \u6570\u636e\u5e93\u4e2d\uff0c\u50cf\u8fde\u63a5 MySQL \u4e00\u6837\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u8fde\u63a5 H2 \u6570\u636e\u5e93\uff0c\u4e3a\u4e86\u7701\u4e8b\uff0c\u6211\u8fd9\u91cc\u5c31\u76f4\u63a5\u4f7f\u7528 IDEA \u4e2d\u81ea\u5e26\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5de5\u5177\u8fdb\u884c\u8fde\u63a5\u4e86\u3002<\/p>\n<p>\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>\u9996\u5148\u70b9\u51fb Database\uff0c\u7136\u540e\u70b9\u51fb + \u6dfb\u52a0\u4e00\u4e2a\u6570\u636e\u6e90\uff0c\u9009\u62e9 H2\uff0c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484810\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6570\u636e\u5e93\u8fde\u63a5\u7c7b\u578b\u9009\u62e9 URL only\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484811\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u586b\u5165\u7528\u6237\u540d\u3001\u5bc6\u7801\u4ee5\u53ca\u6570\u636e\u5e93\u5730\u5740\uff0c\u8fd9\u4e9b\u4fe1\u606f\u90fd\u662f\u4ece\u521a\u624d\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u62f7\u8d1d\u8fdb\u6765\u7684\uff0c\u586b\u5b8c\u4fe1\u606f\u4e4b\u540e\uff0c\u4f1a\u63d0\u793a\u4f60\u4e0b\u8f7d\u6570\u636e\u5e93\u9a71\u52a8\uff0c\u76f4\u63a5\u70b9\u51fb\u4e0b\u8f7d\u5373\u53ef\uff0c\u7136\u540e\u70b9\u51fb\u4e0b\u65b9\u7684 <code>Test Connection<\/code> \u6309\u94ae\uff0c\u8fdb\u884c\u6d4b\u8bd5\uff0c\u770b\u5230\u5982\u4e0b\u5185\u5bb9\u8868\u793a\u6570\u636e\u5e93\u5df2\u7ecf\u8fde\u63a5\u4e0a\u4e86\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484812\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u70b9\u51fb OK\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u770b\u5230\u6570\u636e\u5e93\u7684\u8fde\u63a5\u8be6\u60c5\u4e86\uff0c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484813\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5173\u4e8e\u6bcf\u5f20\u8868\u7684\u4f5c\u7528\uff0c\u677e\u54e5\u4e4b\u524d\u90fd\u5df2\u7ecf\u5199\u8fc7\u6587\u7ae0\u548c\u5927\u5bb6\u4ecb\u7ecd\u8fc7\u4e86\uff0c\u73b0\u5728\u6211\u4eec\u5c31\u53bb <code>ACT_ID_USER<\/code> \u8868\u53bb\u770b\u4e00\u4e0b\u6709\u6ca1\u6709\u521a\u521a\u521b\u5efa\u7684\u56db\u4e2a\u7528\u6237\u4fe1\u606f\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484814\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u52a0\u4e0a admin \u4e00\u5171\u6709\u4e94\u4e2a\u7528\u6237\u4fe1\u606f\u3002<\/p>\n<p>\u76f8\u540c\u7684\u9053\u7406\uff0c<code>ACT_ID_GROUP<\/code> \u8868\u4e2d\u4e5f\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u521b\u5efa\u7684\u7ec4\u4fe1\u606f\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484815\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u4e24\u4e2a\u7528\u6237\u7ec4\u90fd\u5728\u3002<\/p>\n<p>\u5728 <code>ACT_ID_MEMBERSHIP<\/code> \u8868\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u7528\u6237\u548c\u7528\u6237\u7ec4\u4e4b\u95f4\u7684\u5173\u8054\u5173\u7cfb\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484816\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u677e\u54e5\u5728\u4e4b\u524d\u6587\u7ae0\u4e2d\u7ed9\u5927\u5bb6\u6f14\u793a\u7684\u6240\u6709\u5173\u4e8e flowable-ui \u7684\u529f\u80fd\uff0c\u6d89\u53ca\u5230\u7684\u6570\u636e\u5b58\u50a8\uff0c\u6211\u4eec\u73b0\u5728\u90fd\u53ef\u4ee5\u5728\u8fde\u63a5\u4e0a H2 \u6570\u636e\u5e93\u4e4b\u540e\u8fdb\u884c\u67e5\u770b\u3002<\/p>\n<p>\u65e2\u7136\u8bf4\u5230\u4e86 <code>modules\/flowable-ui\/flowable-ui-app\/src\/main\/resources\/flowable-default.properties<\/code> \u914d\u7f6e\u6587\u4ef6\uff0c\u90a3\u4e48\u6211\u4e5f\u5c31\u987a\u4fbf\u591a\u8bf4\u4e24\u53e5\uff0cflowable-ui \u9ed8\u8ba4\u7684\u7528\u6237\u540d\u5bc6\u7801\u662f admin\/test\uff0c\u5982\u679c\u6211\u4eec\u60f3\u8981\u4fee\u6539\uff0c\u5219\u53ef\u4ee5\u76f4\u63a5\u5728\u8be5\u914d\u7f6e\u6587\u4ef6\u4e2d\u4fee\u6539\u5982\u4e0b\u51e0\u884c\u5373\u53ef\uff1a<\/p>\n<pre><code class=\"properties\">flowable.idm.app.admin.user-id=javaboy\nflowable.idm.app.admin.password=123\nflowable.idm.app.admin.first-name=\u6c5f\u5357\u4e00\u70b9\u96e8\nflowable.idm.app.admin.last-name=\u6c5f\u5357\u4e00\u70b9\u96e8\nflowable.idm.app.admin.email=test-admin@example-domain.tld<\/code><\/pre>\n<blockquote><p>\u4e2d\u6587\u53ef\u80fd\u4f1a\u4e71\u7801\uff0c\u5927\u5bb6\u8bb0\u5f97\u4fee\u6539 properties \u914d\u7f6e\u6587\u4ef6\u7684\u7f16\u7801\u683c\u5f0f\u5373\u53ef\u3002<\/p><\/blockquote>\n<p>\u4fee\u6539\u5b8c\u6210\u4e4b\u540e\uff0c\u8bb0\u5f97\u5148\u53bb\u7cfb\u7edf\u5f53\u524d\u7528\u6237\u76ee\u5f55\u4e0b\u5220\u9664\u6389 flowable-db \u6587\u4ef6\u5939\uff08\u5982\u679c\u4e0d\u5220\u9664\uff0c\u5219\u4e4b\u524d\u7684\u7528\u6237\u8fd8\u5728\uff0c\u8fd9\u6b21\u7684\u914d\u7f6e\u76f8\u5f53\u4e8e\u65b0\u6dfb\u52a0\u4e86\u4e00\u4e2a\u7528\u6237\uff09\uff0c\u7136\u540e\u91cd\u542f\u7cfb\u7edf\u5373\u53ef\uff0c\u91cd\u542f\u4e4b\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u4ee5 javaboy\/123 \u8fdb\u884c\u767b\u5f55\u4e86\u3002<\/p>\n<h2>4. \u8fde\u63a5 MySQL<\/h2>\n<p>\u6709\u65f6\u5019\u6211\u4eec\u8fd8\u662f\u5e0c\u671b\u80fd\u591f\u7528\u4e0a\u81ea\u5df1\u719f\u6089\u7684 MySQL\uff0c\u8fd9\u4e2a\u4e5f\u662f\u652f\u6301\u7684\uff0c\u8fd8\u662f\u901a\u8fc7\u4fee\u6539 <code>modules\/flowable-ui\/flowable-ui-app\/src\/main\/resources\/flowable-default.properties<\/code> \u914d\u7f6e\u6587\u4ef6\u6765\u5b9e\u73b0\uff0c\u5177\u4f53\u505a\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>\u9996\u5148\u63d0\u524d\u5728\u6570\u636e\u5e93\u4e2d\u51c6\u5907\u4e00\u4e2a\u540d\u4e3a flowable-ui \u7684\u7a7a\u7684\u6570\u636e\u5e93\u3002<\/p>\n<p>\u7136\u540e\u6ce8\u91ca\u6389 <code>modules\/flowable-ui\/flowable-ui-app\/src\/main\/resources\/flowable-default.properties<\/code> \u914d\u7f6e\u6587\u4ef6\u4e2d H2 \u7684\u914d\u7f6e\uff0c\u6253\u5f00 MySQL \u7684\u914d\u7f6e\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"properties\">spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver\nspring.datasource.url=jdbc:mysql:\/\/127.0.0.1:3306\/flowable-ui?characterEncoding=UTF-8&amp;serverTimezone=Asia\/Shanghai&amp;useSSL=false&amp;nullCatalogMeansCurrent=true\nspring.datasource.username=root\nspring.datasource.password=123<\/code><\/pre>\n<p>\u6700\u540e\uff0c\u518d\u5728 <code>modules\/flowable-ui\/flowable-ui-app\/pom.xml<\/code> \u6587\u4ef6\u4e2d\u52a0\u5165 MySQL \u6570\u636e\u5e93\u9a71\u52a8\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"xml\">&lt;dependency&gt;\n    &lt;groupId&gt;mysql&lt;\/groupId&gt;\n    &lt;artifactId&gt;mysql-connector-java&lt;\/artifactId&gt;\n&lt;\/dependency&gt;<\/code><\/pre>\n<p>\u7136\u540e\u91cd\u542f\u9879\u76ee\u5373\u53ef\u3002<\/p>\n<p>\u5f53\u677e\u54e5\u6dfb\u52a0 MySQL \u9a71\u52a8\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u5b98\u65b9\u5df2\u7ecf\u66ff\u6211\u4eec\u8003\u8651\u597d\u4e86\uff0cMySQL \u9a71\u52a8\u63d0\u524d\u5728\u591a\u73af\u5883\u4e2d\u5df2\u7ecf\u914d\u7f6e\u597d\u4e86\uff0c\u4f4d\u7f6e\u5728 <code>modules\/flowable-ui\/flowable-ui-app\/pom.xml<\/code>\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484817\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6240\u4ee5\u6211\u4eec\u4e5f\u53ef\u4ee5\u4e0d\u7528\u81ea\u5df1\u624b\u52a8\u52a0\u9a71\u52a8\uff0c\u76f4\u63a5\u5728\u5728 IDEA \u7684 Maven \u4e2d\uff0c\u9009\u62e9 profiles\uff0c\u53bb\u6389 h2mem\uff0c\u52fe\u9009\u4e0a mysql \u5373\u53ef\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484818\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u7136\u540e\u91cd\u65b0\u542f\u52a8\u9879\u76ee\u5373\u53ef\u3002<\/p>\n<h2>5. \u63a5\u53e3\u5206\u6790<\/h2>\n<p>\u6709\u7684\u5c0f\u4f19\u4f34\u4eec\u53ef\u80fd\u8bf4\uff0c\u677e\u54e5\u4f60\u8fd9\u4e2a\u641e\u7684\u8fd9\u4e48\u9ebb\u70e6\uff0c\u6211\u7528 flowable-ui \u76f4\u63a5 docker \u5b89\u88c5\uff0c\u591a\u7701\u4e8b\u5440\uff01\u90a3\u4f60\u5c31\u9886\u4f1a\u9519\u6211\u7684\u610f\u601d\u4e86\uff0cflowable-ui \u8fd9\u4e2a\u529f\u80fd\u6211\u89c9\u5f97\u662f\u4e00\u4e2a\u975e\u5e38\u68d2\u7684 demo\uff0c\u57fa\u672c\u4e0a\u4f60\u80fd\u60f3\u5230\u7684 flowable \u7684\u529f\u80fd\u8fd9\u91cc\u90fd\u63d0\u4f9b\u4e86\uff0c\u73b0\u5728\u6e90\u7801\u90fd\u7ed9\u4f60\u4e86\uff0c\u4f60\u60f3\u505a\u5565\u529f\u80fd\u7167\u6284\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u6211\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u6bd4\u5982\u8bf4\u6211\u4eec\u60f3\u65b0\u5efa\u4e00\u4e2a\u7528\u6237\uff0c\u90a3\u4e48\u6211\u4eec\u5728\u524d\u7aef\u9875\u9762\uff0c\u6253\u5f00\u6d4f\u89c8\u5668 DEBUG \u7a97\u53e3\uff0c\u89c2\u5bdf\u6dfb\u52a0\u7528\u6237\u7684\u65f6\u5019\u64cd\u4f5c\u7684\u63a5\u53e3\uff0c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484819\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6211\u4eec\u53d1\u73b0\u6dfb\u52a0\u7528\u6237\u7684\u63a5\u53e3\u662f <code>\/rest\/admin\/users<\/code>\uff08<code>\/idm-app<\/code> \u662f\u6a21\u5757\u540d\u79f0\uff0c\u5ffd\u7565\u4e4b\uff09\uff0c\u73b0\u5728\uff0c\u5728\u6e90\u7801\u4e2d\u6211\u4eec\u6765\u4e00\u4e2a\u5168\u6587\u641c\u7d22\uff0c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042484820\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5982\u679c\u4f60\u60f3\u81ea\u5df1\u505a\u4e00\u4e2a\u7528\u6237\u6dfb\u52a0\u7684\u529f\u80fd\uff0c\u90a3\u4e48\u7167\u6284\u4e0d\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u5176\u4ed6\u542f\u52a8\u6d41\u7a0b\u3001\u8ba4\u9886\u4efb\u52a1\u3001\u5b8c\u6210\u4efb\u52a1\u7b49\u529f\u80fd\uff0c\u90fd\u6309\u7167\u7c7b\u4f3c\u7684\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u67e5\u770b\u5176\u4ee3\u7801\u5b9e\u73b0\u65b9\u5f0f\u3002<\/p>\n<p>\u6240\u4ee5\u8bf4\uff0c\u8fd9\u4e2a flowable-ui \u5bf9\u6211\u4eec\u6765\u8bf4\u5176\u5b9e\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5b66\u4e60 DEMO\u3002<\/p>\n<h2>6. \u5c0f\u7ed3<\/h2>\n<p>\u597d\u5566\uff0c\u672c\u6587\u4e3b\u8981\u548c\u5c0f\u4f19\u4f34\u4eec\u5206\u6790\u4e86\u5982\u4f55\u5728\u672c\u5730\u5c06 flowable \u6e90\u7801\u7f16\u8bd1\u8dd1\u8d77\u6765\uff0c\u5c06\u6765\u677e\u54e5\u8fd8\u4f1a\u6709\u591a\u7bc7\u6587\u7ae0\uff0c\u4ee5 flowable-ui \u4e3a\u53c2\u8003\uff0c\u6765\u548c\u5927\u5bb6\u5206\u6790 flowable \u4e2d\u7684\u5404\u79cd\u73a9\u6cd5\u3002<\/p>\n<blockquote><p>\u672c\u6587\u53c2\u4e0e\u4e86<a href=\"https:\/\/segmentfault.com\/a\/1190000042453662\">\u601d\u5426\u6280\u672f\u5f81\u6587<\/a>\uff0c\u6b22\u8fce\u6b63\u5728\u9605\u8bfb\u7684\u4f60\u4e5f\u52a0\u5165\u3002<\/p><\/blockquote>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042484797\">https:\/\/segmentfault.com\/a\/1190000042484797<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u8bf4\u8fd9\u4e2a\u7f16\u8bd1\u6e90\u7801\u5176\u5b9e\u6ca1\u4ec0\u4e48\u6280\u672f\u542b\u91cf\uff0c\u4f46\u662f\u7531\u4e8e\u56fd\u5185\u7684\u7f51\u7edc\u95ee\u9898\uff0cSpring \u7b49\u5404\u79cd\u5e38\u89c1\u6846\u67b6\u7684\u6e90\u7801\u7f16\u8bd1\u90fd\u53d8\u6210\u4e86\u4e00\u4e2a [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006486","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006486"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006486\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}