{"id":61441,"date":"2024-10-13T11:08:15","date_gmt":"2024-10-13T03:08:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/61441\/"},"modified":"2024-10-13T11:08:15","modified_gmt":"2024-10-13T03:08:15","slug":"flowable-%e6%b5%81%e7%a8%8b%e5%af%a6%e4%be%8b%e7%9a%84%e6%8e%9b%e8%b5%b7%ef%bc%88%e6%9a%ab%e5%81%9c%ef%bc%89%e8%88%87%e6%bf%80%e6%b4%bb","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/61441\/","title":{"rendered":"Flowable \u6d41\u7a0b\u5be6\u4f8b\u7684\u639b\u8d77\uff08\u66ab\u505c\uff09\u8207\u6fc0\u6d3b"},"content":{"rendered":"<h1 id=\"flowable-%e6%b5%81%e7%a8%8b%e5%af%a6%e4%be%8b%e7%9a%84%e6%8e%9b%e8%b5%b7%ef%bc%88%e6%9a%ab%e5%81%9c%ef%bc%89%e8%88%87%e6%bf%80%e6%b4%bb-JoYOiMZHKk\">Flowable \u6d41\u7a0b\u5be6\u4f8b\u7684\u639b\u8d77\uff08\u66ab\u505c\uff09\u8207\u6fc0\u6d3b<\/h1>\n<p>\u5728\u73fe\u4ee3\u4f01\u696d\u4e2d\uff0c\u6d41\u7a0b\u7ba1\u7406\u7cfb\u7d71\u7684\u4f7f\u7528\u8d8a\u4f86\u8d8a\u666e\u904d\u3002Flowable \u4f5c\u70ba\u4e00\u500b\u958b\u6e90\u7684\u6d41\u7a0b\u5f15\u64ce\uff0c\u63d0\u4f9b\u4e86\u9748\u6d3b\u7684\u6d41\u7a0b\u8a2d\u8a08\u548c\u57f7\u884c\u529f\u80fd\u3002\u672c\u6587\u5c07\u63a2\u8a0e Flowable \u4e2d\u7684\u6d41\u7a0b\u5be6\u4f8b\u639b\u8d77\uff08\u66ab\u505c\uff09\u8207\u6fc0\u6d3b\u7684\u6982\u5ff5\uff0c\u4e26\u63d0\u4f9b\u76f8\u95dc\u7684\u5be6\u4f5c\u7bc4\u4f8b\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af%e6%b5%81%e7%a8%8b%e5%af%a6%e4%be%8b%e7%9a%84%e6%8e%9b%e8%b5%b7%e8%88%87%e6%bf%80%e6%b4%bb-JoYOiMZHKk\">\u4ec0\u9ebc\u662f\u6d41\u7a0b\u5be6\u4f8b\u7684\u639b\u8d77\u8207\u6fc0\u6d3b<\/h2>\n<p>\u5728 Flowable \u4e2d\uff0c\u6d41\u7a0b\u5be6\u4f8b\u7684\u639b\u8d77\uff08\u66ab\u505c\uff09\u8207\u6fc0\u6d3b\u662f\u6307\u5c0d\u6b63\u5728\u57f7\u884c\u7684\u6d41\u7a0b\u9032\u884c\u63a7\u5236\u7684\u64cd\u4f5c\u3002\u7576\u4e00\u500b\u6d41\u7a0b\u5be6\u4f8b\u88ab\u639b\u8d77\u6642\uff0c\u5b83\u5c07\u66ab\u6642\u505c\u6b62\u57f7\u884c\uff0c\u6240\u6709\u8207\u4e4b\u76f8\u95dc\u7684\u4efb\u52d9\u4e5f\u6703\u88ab\u51cd\u7d50\u3002\u9019\u5728\u9700\u8981\u66ab\u6642\u4e2d\u6b62\u6d41\u7a0b\u7684\u60c5\u6cc1\u4e0b\u975e\u5e38\u6709\u7528\uff0c\u4f8b\u5982\u5728\u7b49\u5f85\u5916\u90e8\u4e8b\u4ef6\u6216\u9032\u4e00\u6b65\u7684\u5be9\u6838\u6642\u3002<\/p>\n<p>\u76f8\u5c0d\u5730\uff0c\u7576\u6d41\u7a0b\u5be6\u4f8b\u88ab\u6fc0\u6d3b\u6642\uff0c\u5b83\u5c07\u6062\u5fa9\u57f7\u884c\uff0c\u4e26\u7e7c\u7e8c\u8655\u7406\u5f8c\u7e8c\u7684\u4efb\u52d9\u3002\u9019\u7a2e\u9748\u6d3b\u6027\u4f7f\u5f97\u4f01\u696d\u80fd\u5920\u66f4\u597d\u5730\u7ba1\u7406\u5176\u696d\u52d9\u6d41\u7a0b\uff0c\u61c9\u5c0d\u4e0d\u65b7\u8b8a\u5316\u7684\u9700\u6c42\u3002<\/p>\n<h2 id=\"%e6%8e%9b%e8%b5%b7%e6%b5%81%e7%a8%8b%e5%af%a6%e4%be%8b%e7%9a%84%e6%ad%a5%e9%a9%9f-JoYOiMZHKk\">\u639b\u8d77\u6d41\u7a0b\u5be6\u4f8b\u7684\u6b65\u9a5f<\/h2>\n<p>\u5728 Flowable \u4e2d\uff0c\u639b\u8d77\u4e00\u500b\u6d41\u7a0b\u5be6\u4f8b\u7684\u64cd\u4f5c\u76f8\u5c0d\u7c21\u55ae\u3002\u4ee5\u4e0b\u662f\u57fa\u672c\u7684\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u7372\u53d6\u6d41\u7a0b\u5be6\u4f8b\u7684 ID\u3002<\/li>\n<li>\u4f7f\u7528 Flowable \u7684 API \u9032\u884c\u639b\u8d77\u64cd\u4f5c\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0b\u662f\u4e00\u6bb5\u793a\u7bc4\u4ee3\u78bc\uff0c\u5c55\u793a\u5982\u4f55\u639b\u8d77\u4e00\u500b\u6d41\u7a0b\u5be6\u4f8b\uff1a<\/p>\n<pre><code>import org.flowable.engine.RuntimeService;\nimport org.flowable.engine.RuntimeService;\nimport org.flowable.engine.runtime.ProcessInstance;\n\npublic void suspendProcessInstance(String processInstanceId) {\n    RuntimeService runtimeService = processEngine.getRuntimeService();\n    runtimeService.suspendProcessInstanceById(processInstanceId);\n}\n<\/code><\/pre>\n<h2 id=\"%e6%bf%80%e6%b4%bb%e6%b5%81%e7%a8%8b%e5%af%a6%e4%be%8b%e7%9a%84%e6%ad%a5%e9%a9%9f-JoYOiMZHKk\">\u6fc0\u6d3b\u6d41\u7a0b\u5be6\u4f8b\u7684\u6b65\u9a5f<\/h2>\n<p>\u6fc0\u6d3b\u6d41\u7a0b\u5be6\u4f8b\u7684\u904e\u7a0b\u8207\u639b\u8d77\u76f8\u4f3c\u3002\u7576\u9700\u8981\u6062\u5fa9\u4e00\u500b\u5df2\u639b\u8d77\u7684\u6d41\u7a0b\u5be6\u4f8b\u6642\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u7372\u53d6\u5df2\u639b\u8d77\u6d41\u7a0b\u5be6\u4f8b\u7684 ID\u3002<\/li>\n<li>\u4f7f\u7528 Flowable \u7684 API \u9032\u884c\u6fc0\u6d3b\u64cd\u4f5c\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0b\u662f\u6fc0\u6d3b\u6d41\u7a0b\u5be6\u4f8b\u7684\u793a\u7bc4\u4ee3\u78bc\uff1a<\/p>\n<pre><code>public void activateProcessInstance(String processInstanceId) {\n    RuntimeService runtimeService = processEngine.getRuntimeService();\n    runtimeService.activateProcessInstanceById(processInstanceId);\n}\n<\/code><\/pre>\n<h2 id=\"%e5%af%a6%e9%9a%9b%e6%87%89%e7%94%a8%e5%a0%b4%e6%99%af-JoYOiMZHKk\">\u5be6\u969b\u61c9\u7528\u5834\u666f<\/h2>\n<p>\u6d41\u7a0b\u5be6\u4f8b\u7684\u639b\u8d77\u8207\u6fc0\u6d3b\u5728\u8a31\u591a\u5be6\u969b\u61c9\u7528\u4e2d\u90fd\u975e\u5e38\u6709\u7528\u3002\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li><strong>\u5be9\u6838\u6d41\u7a0b\uff1a<\/strong>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u6d41\u7a0b\u53ef\u80fd\u9700\u8981\u7b49\u5f85\u7ba1\u7406\u5c64\u7684\u5be9\u6838\u3002\u5728\u9019\u7a2e\u60c5\u6cc1\u4e0b\uff0c\u53ef\u4ee5\u5c07\u6d41\u7a0b\u639b\u8d77\uff0c\u5f85\u5be9\u6838\u5b8c\u6210\u5f8c\u518d\u6fc0\u6d3b\u3002<\/li>\n<li><strong>\u5916\u90e8\u4e8b\u4ef6\uff1a<\/strong>\u5982\u679c\u6d41\u7a0b\u9700\u8981\u7b49\u5f85\u5916\u90e8\u7cfb\u7d71\u7684\u56de\u61c9\uff0c\u53ef\u4ee5\u5c07\u5176\u639b\u8d77\uff0c\u5f85\u6536\u5230\u56de\u61c9\u5f8c\u518d\u6fc0\u6d3b\u3002<\/li>\n<li><strong>\u8cc7\u6e90\u7ba1\u7406\uff1a<\/strong>\u5728\u8cc7\u6e90\u4e0d\u8db3\u7684\u60c5\u6cc1\u4e0b\uff0c\u53ef\u4ee5\u66ab\u6642\u639b\u8d77\u67d0\u4e9b\u6d41\u7a0b\uff0c\u5f85\u8cc7\u6e90\u6062\u5fa9\u5f8c\u518d\u6fc0\u6d3b\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-JoYOiMZHKk\">\u7d50\u8ad6<\/h2>\n<p>Flowable \u63d0\u4f9b\u7684\u6d41\u7a0b\u5be6\u4f8b\u639b\u8d77\u8207\u6fc0\u6d3b\u529f\u80fd\uff0c\u4f7f\u5f97\u4f01\u696d\u80fd\u5920\u9748\u6d3b\u5730\u7ba1\u7406\u5176\u696d\u52d9\u6d41\u7a0b\uff0c\u61c9\u5c0d\u5404\u7a2e\u4e0d\u78ba\u5b9a\u6027\u3002\u900f\u904e\u7c21\u55ae\u7684 API \u64cd\u4f5c\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u8f15\u9b06\u5730\u63a7\u5236\u6d41\u7a0b\u7684\u57f7\u884c\u72c0\u614b\uff0c\u5f9e\u800c\u63d0\u9ad8\u696d\u52d9\u6548\u7387\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u95dc\u65bc <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u53ca\u5176\u5728\u6d41\u7a0b\u7ba1\u7406\u4e2d\u7684\u61c9\u7528\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3Flowable\u6d41\u7a0b\u5be6\u4f8b\u7684\u639b\u8d77\u8207\u6fc0\u6d3b\uff0c\u638c\u63e1\u5982\u4f55\u6709\u6548\u7ba1\u7406\u6d41\u7a0b\u72c0\u614b\uff0c\u63d0\u5347\u696d\u52d9\u904b\u4f5c\u6548\u7387\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-61441","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/61441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=61441"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/61441\/revisions"}],"predecessor-version":[{"id":61442,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/61441\/revisions\/61442"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=61441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=61441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=61441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}