From 5ee30547b690e2f6a2b9c034b970a18ea1165972 Mon Sep 17 00:00:00 2001 From: Marco Rizzi Date: Thu, 23 May 2019 15:08:42 +0200 Subject: [PATCH] First commit from https://github.com/mrizzi/sample-analytics/commit/8fac460d48ca84a772ee17114b688976819c0c44 (#1) --- .gitignore | 4 + global/.gitkeep | 0 global/customeditors.json | 3 + global/defaultemailicon.gif | Bin 0 -> 355 bytes global/defaultlogicon.gif | Bin 0 -> 232 bytes global/defaultmilestoneicon.png | Bin 0 -> 231 bytes global/defaultservicenodeicon.png | Bin 0 -> 1781 bytes global/defaultsubcaseicon.png | Bin 0 -> 345 bytes global/patterns.json | 859 ++++++++++++++++++ global/themes.json | 31 + package-names-white-list | 0 pom.xml | 95 ++ project.imports | 31 + project.repositories | 20 + src/main/java/.gitkeep | 0 .../com/myspace/sample_analytics/.gitkeep | 0 .../sample_analytics/decisiontable/.gitkeep | 0 .../myspace/sample_analytics/pojo/.gitkeep | 0 .../sample_analytics/pojo/input/.gitkeep | 0 .../pojo/input/InputDataModel.java | 82 ++ .../sample_analytics/pojo/output/.gitkeep | 0 .../pojo/output/ReportDataModel.java | 107 +++ .../myspace/sample_analytics/rules/.gitkeep | 0 .../myspace/sample_analytics/test/.gitkeep | 0 src/main/resources/.gitkeep | 0 .../META-INF/kie-deployment-descriptor.xml | 18 + src/main/resources/META-INF/kmodule.xml | 5 + src/main/resources/META-INF/persistence.xml | 18 + .../com/myspace/sample_analytics/.gitkeep | 0 .../sample_analytics/decisiontable/.gitkeep | 0 .../myspace/sample_analytics/pojo/.gitkeep | 0 .../sample_analytics/pojo/input/.gitkeep | 0 .../sample_analytics/pojo/output/.gitkeep | 0 .../myspace/sample_analytics/rules/.gitkeep | 0 .../sample_analytics/rules/GetReport.drl | 2 + .../sample_analytics/rules/GetReports.drl | 5 + .../rules/PricingGuidedRule.rdrl | 23 + .../myspace/sample_analytics/test/.gitkeep | 0 src/test/java/.gitkeep | 0 .../com/myspace/sample_analytics/.gitkeep | 0 .../sample_analytics/decisiontable/.gitkeep | 0 .../myspace/sample_analytics/pojo/.gitkeep | 0 .../sample_analytics/pojo/input/.gitkeep | 0 .../sample_analytics/pojo/output/.gitkeep | 0 .../myspace/sample_analytics/rules/.gitkeep | 0 .../myspace/sample_analytics/test/.gitkeep | 0 .../ScenarioJunitActivatorTest.java | 7 + src/test/resources/.gitkeep | 0 .../com/myspace/sample_analytics/.gitkeep | 0 .../sample_analytics/decisiontable/.gitkeep | 0 .../myspace/sample_analytics/pojo/.gitkeep | 0 .../sample_analytics/pojo/input/.gitkeep | 0 .../sample_analytics/pojo/output/.gitkeep | 0 .../myspace/sample_analytics/rules/.gitkeep | 0 .../myspace/sample_analytics/test/.gitkeep | 0 .../sample_analytics/test/PricingTest.scesim | 184 ++++ 56 files changed, 1494 insertions(+) create mode 100644 global/.gitkeep create mode 100644 global/customeditors.json create mode 100644 global/defaultemailicon.gif create mode 100644 global/defaultlogicon.gif create mode 100644 global/defaultmilestoneicon.png create mode 100644 global/defaultservicenodeicon.png create mode 100644 global/defaultsubcaseicon.png create mode 100644 global/patterns.json create mode 100644 global/themes.json create mode 100644 package-names-white-list create mode 100644 pom.xml create mode 100644 project.imports create mode 100644 project.repositories create mode 100644 src/main/java/.gitkeep create mode 100644 src/main/java/com/myspace/sample_analytics/.gitkeep create mode 100644 src/main/java/com/myspace/sample_analytics/decisiontable/.gitkeep create mode 100644 src/main/java/com/myspace/sample_analytics/pojo/.gitkeep create mode 100644 src/main/java/com/myspace/sample_analytics/pojo/input/.gitkeep create mode 100644 src/main/java/com/myspace/sample_analytics/pojo/input/InputDataModel.java create mode 100644 src/main/java/com/myspace/sample_analytics/pojo/output/.gitkeep create mode 100644 src/main/java/com/myspace/sample_analytics/pojo/output/ReportDataModel.java create mode 100644 src/main/java/com/myspace/sample_analytics/rules/.gitkeep create mode 100644 src/main/java/com/myspace/sample_analytics/test/.gitkeep create mode 100644 src/main/resources/.gitkeep create mode 100644 src/main/resources/META-INF/kie-deployment-descriptor.xml create mode 100644 src/main/resources/META-INF/kmodule.xml create mode 100644 src/main/resources/META-INF/persistence.xml create mode 100644 src/main/resources/com/myspace/sample_analytics/.gitkeep create mode 100644 src/main/resources/com/myspace/sample_analytics/decisiontable/.gitkeep create mode 100644 src/main/resources/com/myspace/sample_analytics/pojo/.gitkeep create mode 100644 src/main/resources/com/myspace/sample_analytics/pojo/input/.gitkeep create mode 100644 src/main/resources/com/myspace/sample_analytics/pojo/output/.gitkeep create mode 100644 src/main/resources/com/myspace/sample_analytics/rules/.gitkeep create mode 100644 src/main/resources/com/myspace/sample_analytics/rules/GetReport.drl create mode 100644 src/main/resources/com/myspace/sample_analytics/rules/GetReports.drl create mode 100644 src/main/resources/com/myspace/sample_analytics/rules/PricingGuidedRule.rdrl create mode 100644 src/main/resources/com/myspace/sample_analytics/test/.gitkeep create mode 100644 src/test/java/.gitkeep create mode 100644 src/test/java/com/myspace/sample_analytics/.gitkeep create mode 100644 src/test/java/com/myspace/sample_analytics/decisiontable/.gitkeep create mode 100644 src/test/java/com/myspace/sample_analytics/pojo/.gitkeep create mode 100644 src/test/java/com/myspace/sample_analytics/pojo/input/.gitkeep create mode 100644 src/test/java/com/myspace/sample_analytics/pojo/output/.gitkeep create mode 100644 src/test/java/com/myspace/sample_analytics/rules/.gitkeep create mode 100644 src/test/java/com/myspace/sample_analytics/test/.gitkeep create mode 100644 src/test/java/testscenario/ScenarioJunitActivatorTest.java create mode 100644 src/test/resources/.gitkeep create mode 100644 src/test/resources/com/myspace/sample_analytics/.gitkeep create mode 100644 src/test/resources/com/myspace/sample_analytics/decisiontable/.gitkeep create mode 100644 src/test/resources/com/myspace/sample_analytics/pojo/.gitkeep create mode 100644 src/test/resources/com/myspace/sample_analytics/pojo/input/.gitkeep create mode 100644 src/test/resources/com/myspace/sample_analytics/pojo/output/.gitkeep create mode 100644 src/test/resources/com/myspace/sample_analytics/rules/.gitkeep create mode 100644 src/test/resources/com/myspace/sample_analytics/test/.gitkeep create mode 100644 src/test/resources/com/myspace/sample_analytics/test/PricingTest.scesim diff --git a/.gitignore b/.gitignore index a1c2a238..4d6fc931 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,7 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* + +target/ +*.iml +.idea diff --git a/global/.gitkeep b/global/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/global/customeditors.json b/global/customeditors.json new file mode 100644 index 00000000..d7232a67 --- /dev/null +++ b/global/customeditors.json @@ -0,0 +1,3 @@ +{ "editors":{ + "Actors" : "/designer/customeditors/sampleactorseditor.html" +}} diff --git a/global/defaultemailicon.gif b/global/defaultemailicon.gif new file mode 100644 index 0000000000000000000000000000000000000000..5bb455ddcc1938d915fd9e58d1bb3d8555b706a7 GIT binary patch literal 355 zcmZ?wbhEHb6krfwxXQqwku)v6c4cn!+VY+)GiFSjJ*#iwysl;00?QY+uiSoV&El4| zMM4{vHEv#6x2;BG=h~{hEn@pOlpj2H^VpWc2d}7AYwDZre+yDN)XP_}q{K>+}z@WgO1F{F?CkD0#hY1B9I#TKl&a)Q0j84``{ULMd}>TsmCmWg^k|oTYER9-hKhGTc1s>OZX+Yx*wiS)$IQei z&dV*`+t UzkA(o5mr~0!$*#?Ix<)T073M44FCWD literal 0 HcmV?d00001 diff --git a/global/defaultlogicon.gif b/global/defaultlogicon.gif new file mode 100644 index 0000000000000000000000000000000000000000..03d577e92577c987aca6d0e8614a2f23b3dabf34 GIT binary patch literal 232 zcmZ?wbhEHb6krfwIKse?-@3k_b$!jm9nF(AwoO^rG50|Cv^D)RS4>=beCph#vllE_ zxMc3~6*JbYnX+m9guPokuWZV=wYTQ(iyse8^gn*{^YzDHpTGV7{^R%0Uw;^|0mYvz zoD2+-3_2i5kev*ysR?R*DV}y2U9%oF?=|?cLGO>-rk^nfTNS2r=D8I`^m!~4U;rvRVr+x>NO-)7=?<2*i>06 UJ1SUInS1;CnRO;9D>7IE03k(StN;K2 literal 0 HcmV?d00001 diff --git a/global/defaultmilestoneicon.png b/global/defaultmilestoneicon.png new file mode 100644 index 0000000000000000000000000000000000000000..2ebb3e3e5b5228369de2753a5ea80906d966e028 GIT binary patch literal 231 zcmVeRO zFYiVmPP)s$z)y|=82BL{-_iSAT>ejac}2)F02$xo0PzDBO+%Dkf{|Ch1fq4IY9-jLD3=AyTyk5w_z=>i2&`C!hv9g-($DsjlAOi7Y h26Dlu0iy;00RW%4mv~%%!sP$}002ovPDHLkV1nI0UZ?;7 literal 0 HcmV?d00001 diff --git a/global/defaultservicenodeicon.png b/global/defaultservicenodeicon.png new file mode 100644 index 0000000000000000000000000000000000000000..0220b1f664d538f2482170317287e71e4859ab03 GIT binary patch literal 1781 zcmV4Tx0C)j~RL^S@K@|QrZmG~B2wH0nvUrdpNm;9CMbtL^5n^i$+aIn^?(HA4aZWV5ov6ELTdbo0FI&wK{O>*+w4vx20?>!`FrQsdJlnHR>OPy zcd~b_n$otK2Za4V;76L-DzNVtaSB-y0*E}{p()372;bw_^6ZZ}PI-92wGS&j#91PI zKs7DSe@(bk%_Y-7gGe}(^>I=@oY#w#*Bu9GZf3^F5WP>3rn}7Ut74&?PWBFvy`A)a zPP5)V!Xd&78LdA?xQ(9mjMYElVd13a#D+Z_7&Y|xU=_C-srWU*6kiZcC!$nw*)9$7 zn6CX+@=AhmkT}X@VSsa5NKe;HZuq)~1$`#h6R+ZTR#D-3j}vF!)ZOnz+5)dI4jl{{ z44Mr{P!L4~VVJN`K!!XTF*LGrKO?IK8z<8w`3e3jI8lUGNUta*C8 zn(P`s>{pjD=7Kek#B;Fw@hxAK%$F&Q6vg9J^Xf~4by_hu-=A!MJ3Znq&n~srbFGPs zH&&aMXZ>nO`|hf|ljc?VPhR!${AbO?W8x_>CU%PFA&Hm8F7cAsOREdwU~R_;ot1_u z(ruCYB-LPGn!NQdT|ZlRy+(fw^-+`=%+gee_kY4FWHg<*4sZI8+sFJD270UUORdLHO0nA4V) z%{fwsET5CQ>B?eK%uw4yQc~9?*JVo2}ze(;aRcp*ceL#HUJSllrgm5wQKR zQu+C;QrUh^8rFfA`ftFz{YAidi-`aL010qNS#tmY3ljhU3ljkVnw%H_00XT_L_t(I z5rtHJOjB1B|J~QV!lP6qI28GmVhiXfDp% zxj!T%GfT{vF6-poN&cFogC-8*nz$|j{L?f<`@;T z%@qfXXC$0k#wz875W;@<&A>5Ut*R1SM6*t_5y#7lke0^7c84Nh1jCGnrd{~H6?6$$ z3}LFSOjuC5Dd%VqFGo`KV{2BR$A8K91X>cRrmydgCHc7lOwK&Q=#Yr`7YR1|V$tm* zXuUH{h504I#n3UPE3EV@)9#U=CI<^sB5boxzcbc@Jw@?khxRFEXG`GddK2n34e;Kq z0Cm5Gf|m#ivr@^(kOu>8_l37VPK}Zy36dC>Lm|%laj?7?`8fg>2M=TTZW1bY)MIb) zF~sFIz#i#^ulsB43=P9O2MWP)e)39&iv5eEu73K2TgB=5ejfI=87zel;f;O!!7u26 zz%tVLG{m72_r}k{slJO9tpN53r*HrK!3mi}X(+EZj)_7t@9{F6B(sYXu{5&>I!h)7 zD36zWWoHtRvJAg+!lW1-A>k(_Zpd+eX;iAN3#1ewQ8SF%4&2#fh4pb zM0FWClmis<;4l($8R0?;;sQzpM1qWDwNJ*?D3a{KYW34;1Bz;Gzu4S#?(sd^aZyh# z=c4H7?P@C4575!xYI;LDn@6Lmb=pSHpLf%(m9;i1;pFTFg=KG1n$D>3<)v0!?@=Og zTO&5)DbQ&>jp3)K&^dS-n=~&VUc3V90E-J9Kf&c!QG3^l5Y$9oI-AFS-x;S@J&IVt zRmUV{kwCU@Ysb1s7v?tzh+M8hazRYcLAUgtk{w30V>;G!b#l(IE8*|5|F+TkS$H(_ zLGReO=0=|v@8uUumCR$Ap-@QvGP6T*PKp$3!%?tByAb|ZY^XS7tdWEG*WYnAT0d#( ze^^@Wa`?Bheh>|(8@%u33=ta99`HFfvnsr{K1H=_d%_R<4`tO!c#ll-pEgkTQAgrn z_f&=~T3zSOrqq%zrcQqPvpKNvAkSiU=DquVOO^yh44C|r^yr%u2h$G#q;^EM^+{>d00000NkvXXu0mjf`#Gid literal 0 HcmV?d00001 diff --git a/global/patterns.json b/global/patterns.json new file mode 100644 index 00000000..312a0992 --- /dev/null +++ b/global/patterns.json @@ -0,0 +1,859 @@ +[ + { + "id": "wp-sequence", + "name": "Sequence", + "description" : "Sequence Pattern", + "elements" : [ + { + "id": "1", + "name": "A", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["2"], + "xyOffset" : [0,0] + }, + { + "id" : "2", + "name": "B", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1"], + "children" : ["3"], + "xyOffset" : [140,0] + }, + { + "id" : "3", + "name": "C", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : [], + "xyOffset" : [140,0] + } + ] + }, + { + "id": "wp-parallelsplit", + "name": "Parallel Split", + "description" : "Parallel Split Pattern", + "elements" : [ + { + "id": "1", + "name": "A", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["2"], + "xyOffset" : [0,0] + }, + { + "id" : "2", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#ParallelGateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1"], + "children" : ["3", "4"], + "xyOffset" : [120,0] + }, + { + "id" : "3", + "name": "B1", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : [], + "xyOffset" : [120,-60] + }, + { + "id" : "4", + "name": "B2", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : [], + "xyOffset" : [120,60] + } + ] + }, + { + "id": "wp-xorsplit", + "name": "XOR Split", + "description" : "XOR Split Pattern", + "elements" : [ + { + "id": "1", + "name": "A", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["2"], + "xyOffset" : [0,0] + }, + { + "id" : "2", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Exclusive_Databased_Gateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1"], + "children" : ["3", "4"], + "xyOffset" : [120,0] + }, + { + "id" : "3", + "name": "B1", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : [], + "xyOffset" : [120,-60] + }, + { + "id" : "4", + "name": "B2", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : [], + "xyOffset" : [120,60] + } + ] + }, + { + "id": "wp-exclusivechoice", + "name": "Exclusive Choice", + "description" : "Exclusive Choice Pattern", + "elements" : [ + { + "id": "1", + "name": "A", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["2"], + "xyOffset" : [0,0] + }, + { + "id" : "2", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Exclusive_Databased_Gateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1"], + "children" : ["3", "4", "5"], + "xyOffset" : [120,0] + }, + { + "id" : "3", + "name": "B", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : [], + "xyOffset" : [120,-90] + }, + { + "id" : "4", + "name": "C", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : [], + "xyOffset" : [120,0] + }, + { + "id" : "5", + "name": "D", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : [], + "xyOffset" : [120,90] + } + ] + }, + { + "id": "wp-synchronization", + "name": "Synchronization", + "description" : "Synchronization Pattern", + "elements" : [ + { + "id": "1", + "name": "B1", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["3"], + "xyOffset" : [0,-60] + }, + { + "id" : "2", + "name": "B2", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["3"], + "xyOffset" : [0,60] + }, + { + "id" : "3", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#ParallelGateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1","2"], + "children" : ["4"], + "xyOffset" : [120,60] + }, + { + "id" : "4", + "name": "C", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["3"], + "children" : [], + "xyOffset" : [120,0] + } + ] + }, + { + "id": "wp-implicittermination", + "name": "Implicit Termination", + "description" : "Implicit Termination Pattern", + "elements" : [ + { + "id": "1", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#StartNoneEvent", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["2"], + "xyOffset" : [0,0] + }, + { + "id" : "2", + "name": "A", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1"], + "children" : ["3"], + "xyOffset" : [120,0] + }, + { + "id" : "3", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Exclusive_Databased_Gateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : ["4","5"], + "xyOffset" : [120,0] + }, + { + "id" : "4", + "name": "B", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["3"], + "children" : ["6"], + "xyOffset" : [120,-60] + }, + { + "id" : "5", + "name": "C", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["3"], + "children" : ["7"], + "xyOffset" : [120,60] + }, + { + "id" : "6", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#EndTerminateEvent", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["4"], + "children" : [], + "xyOffset" : [120,0] + }, + { + "id" : "7", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#EndTerminateEvent", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["5"], + "children" : [], + "xyOffset" : [120,0] + } + ] + }, + { + "id": "wp-simplemerge", + "name": "Simple Merge", + "description" : "Simple Merge Pattern", + "elements" : [ + { + "id": "1", + "name": "B", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["4"], + "xyOffset" : [0,-60] + }, + { + "id" : "2", + "name": "C", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["4"], + "xyOffset" : [0,60] + }, + { + "id" : "4", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Exclusive_Databased_Gateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1","2","3"], + "children" : ["5"], + "xyOffset" : [120,60] + }, + { + "id" : "5", + "name": "D", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["4"], + "children" : [], + "xyOffset" : [120,0] + } + ] + }, + { + "id": "wp-synchronizingmerge", + "name": "Synchronizing Merge", + "description" : "Synchronizing Merge Pattern", + "elements" : [ + { + "id": "1", + "name": "A", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["2"], + "xyOffset" : [0,0] + }, + { + "id" : "2", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#InclusiveGateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1"], + "children" : ["3","4"], + "xyOffset" : [120,0] + }, + { + "id" : "3", + "name": "B", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : ["5"], + "xyOffset" : [120,-90] + }, + { + "id" : "4", + "name": "C", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : ["5"], + "xyOffset" : [120,90] + }, + { + "id" : "5", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#InclusiveGateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["3","4"], + "children" : ["6"], + "xyOffset" : [120,90] + }, + { + "id" : "6", + "name": "D", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["5"], + "children" : [], + "xyOffset" : [120,0] + } + ] + }, + { + "id": "wp-arbitrarycycles", + "name": "Arbitrary Cycles", + "description" : "Arbitrary Cycles Pattern", + "elements" : [ + { + "id": "1", + "name": "A", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["2"], + "xyOffset" : [0,0] + }, + { + "id" : "2", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Exclusive_Databased_Gateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1"], + "children" : ["3","4"], + "xyOffset" : [120,0] + }, + { + "id" : "3", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Exclusive_Databased_Gateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : ["5"], + "xyOffset" : [0,180] + }, + { + "id" : "4", + "name": "B", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : ["6"], + "xyOffset" : [120,0] + }, + { + "id" : "5", + "name": "C", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["3"], + "children" : ["6"], + "xyOffset" : [120,-90] + }, + { + "id" : "6", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Exclusive_Databased_Gateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["5"], + "children" : ["7"], + "xyOffset" : [120,45] + }, + { + "id" : "7", + "name": "D", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["6"], + "children" : ["8"], + "xyOffset" : [120,0] + }, + { + "id" : "8", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Exclusive_Databased_Gateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["7"], + "children" : ["9","10"], + "xyOffset" : [120,0] + }, + { + "id" : "9", + "name": "E", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["8"], + "children" : [], + "xyOffset" : [120,-45] + }, + { + "id" : "10", + "name": "F", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["8"], + "children" : ["11"], + "xyOffset" : [120,45] + }, + { + "id" : "11", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Exclusive_Databased_Gateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["10"], + "children" : ["3","12"], + "xyOffset" : [0,90] + }, + { + "id" : "12", + "name": "G", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["11"], + "children" : [], + "xyOffset" : [120,0] + } + ] + }, + { + "id": "wp-miwithoutsynchronization", + "name": "MI Without Synchronization", + "description" : "Multiple Instance Without Synchronization Pattern", + "elements" : [ + { + "id": "1", + "name": "A", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["2"], + "xyOffset" : [0,0] + }, + { + "id" : "2", + "name": "B", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#MultipleInstanceSubprocess", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1"], + "children" : ["3"], + "xyOffset" : [240,0] + }, + { + "id" : "3", + "name": "c", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : [], + "xyOffset" : [240,0] + } + ] + }, + { + "id": "wp-deferredchoice", + "name": "Deferred Choice", + "description" : "Deferred Choice Pattern", + "elements" : [ + { + "id": "1", + "name": "A", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["2"], + "xyOffset" : [0,0] + }, + { + "id" : "2", + "name": "", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#EventbasedGateway", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1"], + "children" : ["3","4"], + "xyOffset" : [120,0] + }, + { + "id" : "3", + "name": "b", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#IntermediateMessageEventCatching", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : ["5"], + "xyOffset" : [60,-45] + }, + { + "id" : "4", + "name": "c", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#IntermediateMessageEventCatching", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : ["6"], + "xyOffset" : [60,45] + }, + { + "id": "5", + "name": "B", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["3"], + "children" : [], + "xyOffset" : [120,0] + }, + { + "id": "6", + "name": "C", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["4"], + "children" : [], + "xyOffset" : [120,0] + } + ] + }, + { + "id": "wp-datasequence", + "name": "Sequence with Data", + "description" : "Sequence Pattern with Data", + "elements" : [ + { + "id": "1", + "name": "A", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType" : "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : [], + "children" : ["2"], + "xyOffset" : [0,0], + "properties":{ + "name":"A", + "documentation":"", + "isselectable":"true", + "invisid":"", + "isforcompensation":"", + "assignments":"[din]aVar->aIn,[dout]aOut->aVar", + "tasktype":"User", + "messageref":"", + "script":"", + "script_language":"java", + "bgcolor":"#99CC00", + "bordercolor":"#000000", + "fontcolor":"#000000", + "fontsize":"", + "datainputset":"aIn:String", + "dataoutputset":"aOut:String", + "origbgcolor":"#fafad2", + "nomorph":"true", + "origbordercolor":"#000000", + "ruleflowgroup":"", + "onentryactions":"", + "onexitactions":"", + "isasync":"false", + "taskname":"aTask", + "serviceoperation":"", + "serviceinterface":"", + "serviceimplementation":"Java", + "actors":"aActor", + "groupid":"", + "subject":"", + "description":"", + "content":"", + "reassignment":"", + "notifications":"", + "locale":"", + "createdby":"", + "skippable":"true", + "priority":"", + "multipleinstance":false, + "multipleinstancecollectioninput":"", + "multipleinstancecollectionoutput":"", + "multipleinstancedatainput":"", + "multipleinstancedataoutput":"", + "multipleinstancecompletioncondition":"", + "min":"5", + "max":"10", + "standarddeviation":"1", + "mean":"0", + "distributiontype":"uniform", + "quantity":"1", + "workinghours":"8", + "unitcost":"0" + } + }, + { + "id" : "2", + "name": "B", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["1"], + "children" : ["3"], + "xyOffset" : [140,0], + "properties":{ + "name":"B", + "documentation":"", + "isselectable":"true", + "invisid":"", + "isforcompensation":"", + "assignments":"[din]aVar->bIn,[dout]bOut->aVar", + "tasktype":"User", + "messageref":"", + "script":"", + "script_language":"java", + "bgcolor":"#3366FF", + "bordercolor":"#000000", + "fontcolor":"#000000", + "fontsize":"", + "datainputset":"bIn:String", + "dataoutputset":"bOut:String", + "origbgcolor":"#fafad2", + "nomorph":"true", + "origbordercolor":"#000000", + "ruleflowgroup":"", + "onentryactions":"", + "onexitactions":"", + "isasync":"false", + "taskname":"bTask", + "serviceoperation":"", + "serviceinterface":"", + "serviceimplementation":"Java", + "actors":"bActor", + "groupid":"", + "subject":"", + "description":"", + "content":"", + "reassignment":"", + "notifications":"", + "locale":"", + "createdby":"", + "skippable":"true", + "priority":"", + "multipleinstance":false, + "multipleinstancecollectioninput":"", + "multipleinstancecollectionoutput":"", + "multipleinstancedatainput":"", + "multipleinstancedataoutput":"", + "multipleinstancecompletioncondition":"", + "min":"5", + "max":"10", + "standarddeviation":"1", + "mean":"0", + "distributiontype":"uniform", + "quantity":"1", + "workinghours":"8", + "unitcost":"0" + } + }, + { + "id" : "3", + "name": "C", + "nodetype" : "http://b3mn.org/stencilset/bpmn2.0#Task", + "namespace" : "http://b3mn.org/stencilset/bpmn2.0#", + "connectingType": "http://b3mn.org/stencilset/bpmn2.0#SequenceFlow", + "parent" : ["2"], + "children" : [], + "xyOffset" : [140,0], + "properties":{ + "name":"C", + "documentation":"", + "isselectable":"true", + "invisid":0.4580388036556542, + "isforcompensation":"", + "assignments":"[din]aVar->cIn,[dout]cOut->aVar", + "tasktype":"User", + "messageref":"", + "script":"", + "script_language":"java", + "bgcolor":"#FF9900", + "bordercolor":"#000000", + "fontcolor":"#000000", + "fontsize":"", + "datainputset":"cIn:String", + "dataoutputset":"cOut:String", + "origbgcolor":"#fafad2", + "nomorph":"true", + "origbordercolor":"#000000", + "ruleflowgroup":"", + "onentryactions":"", + "onexitactions":"", + "isasync":"false", + "taskname":"cTask", + "serviceoperation":"", + "serviceinterface":"", + "serviceimplementation":"Java", + "actors":"cActor", + "groupid":"", + "subject":"", + "description":"", + "content":"", + "reassignment":"", + "notifications":"", + "locale":"", + "createdby":"", + "skippable":"true", + "priority":"", + "multipleinstance":false, + "multipleinstancecollectioninput":"", + "multipleinstancecollectionoutput":"", + "multipleinstancedatainput":"", + "multipleinstancedataoutput":"", + "multipleinstancecompletioncondition":"", + "min":"5", + "max":"10", + "standarddeviation":"1", + "mean":"0", + "distributiontype":"uniform", + "quantity":"1", + "workinghours":"8", + "unitcost":"0" + } + } + + ] + } +] \ No newline at end of file diff --git a/global/themes.json b/global/themes.json new file mode 100644 index 00000000..1c6ade36 --- /dev/null +++ b/global/themes.json @@ -0,0 +1,31 @@ +{ "themes":{ + "jBPM":{ + "Start Events" : "#9acd32|#000000|#000000", + "Catching Intermediate Events" : "#f5deb3|#a0522d|#000000", + "Throwing Intermediate Events" : "#8cabff|#008cec|#000000", + "End Events" : "#ff6347|#000000|#000000", + "Gateways" : "#f0e68c|#a67f00|#000000", + "Tasks" : "#fafad2|#000000|#000000", + "Subprocesses" : "#fafad2|#000000|#000000", + "Service Tasks" : "#fafad2|#000000|#000000", + "Data Objects" : "#C0C0C0|#000000|#000000", + "Swimlanes" : "#ffffff|#000000|#000000", + "Artifacts" : "#ffffff|#000000|#000000", + "Connecting Objects" : "#000000|#000000|#000000" + }, + "HighContrast":{ + "Start Events" : "#d2b29f|#000000|#000000", + "Catching Intermediate Events" : "#ffd3a6|#a37e25|#000000", + "Throwing Intermediate Events" : "#adbaf2|#000099|#000000", + "End Events" : "#ffc4d1|#000000|#000000", + "Gateways" : "#ccaea0|#330600|#000000", + "Tasks" : "#f3df8c|#000000|#000000", + "Subprocesses" : "#fafad2|#000000|#000000", + "Service Tasks" : "#f3df8c|#000000|#000000", + "Data Objects" : "#C0C0C0|#000000|#000000", + "Swimlanes" : "#ffffff|#000000|#000000", + "Artifacts" : "#ffffff|#000000|#000000", + "Connecting Objects" : "#000000|#000000|#000000" + } + } +} diff --git a/package-names-white-list b/package-names-white-list new file mode 100644 index 00000000..e69de29b diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..c3c51c34 --- /dev/null +++ b/pom.xml @@ -0,0 +1,95 @@ + + + 4.0.0 + com.myspace + sample-analytics + 1.0.0-SNAPSHOT + kjar + sample-analytics + + + + com.thoughtworks.xstream + xstream + 1.4.10 + test + + + org.kie + kie-internal + 7.18.0.Final-redhat-00002 + provided + + + org.optaplanner + optaplanner-core + 7.18.0.Final-redhat-00002 + provided + + + junit + junit + 4.12 + test + + + org.optaplanner + optaplanner-persistence-jaxb + 7.18.0.Final-redhat-00002 + provided + + + org.kie + kie-api + 7.18.0.Final-redhat-00002 + provided + + + org.drools + drools-wb-scenario-simulation-editor-api + 7.18.0.Final-redhat-00002 + test + + + org.drools + drools-wb-scenario-simulation-editor-backend + 7.18.0.Final-redhat-00002 + test + + + org.drools + drools-compiler + 7.18.0.Final-redhat-00002 + test + + + org.kie + kie-dmn-feel + 7.18.0.Final-redhat-00002 + test + + + org.kie + kie-dmn-api + 7.18.0.Final-redhat-00002 + test + + + org.kie + kie-dmn-core + 7.18.0.Final-redhat-00002 + test + + + + + + org.kie + kie-maven-plugin + 7.18.0.Final-redhat-00002 + true + + + + diff --git a/project.imports b/project.imports new file mode 100644 index 00000000..9bcee21a --- /dev/null +++ b/project.imports @@ -0,0 +1,31 @@ + + + + + java.lang.Number + + + java.lang.Boolean + + + java.lang.String + + + java.lang.Integer + + + java.lang.Double + + + java.util.List + + + java.util.Collection + + + java.util.ArrayList + + + + 1.0 + \ No newline at end of file diff --git a/project.repositories b/project.repositories new file mode 100644 index 00000000..c8da00ec --- /dev/null +++ b/project.repositories @@ -0,0 +1,20 @@ + + + + true + + central + https://repo1.maven.org/maven2 + SETTINGS + + + + true + + local + /home/jboss/.m2/repository + LOCAL + + + + \ No newline at end of file diff --git a/src/main/java/.gitkeep b/src/main/java/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/java/com/myspace/sample_analytics/.gitkeep b/src/main/java/com/myspace/sample_analytics/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/java/com/myspace/sample_analytics/decisiontable/.gitkeep b/src/main/java/com/myspace/sample_analytics/decisiontable/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/java/com/myspace/sample_analytics/pojo/.gitkeep b/src/main/java/com/myspace/sample_analytics/pojo/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/java/com/myspace/sample_analytics/pojo/input/.gitkeep b/src/main/java/com/myspace/sample_analytics/pojo/input/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/java/com/myspace/sample_analytics/pojo/input/InputDataModel.java b/src/main/java/com/myspace/sample_analytics/pojo/input/InputDataModel.java new file mode 100644 index 00000000..18e29b88 --- /dev/null +++ b/src/main/java/com/myspace/sample_analytics/pojo/input/InputDataModel.java @@ -0,0 +1,82 @@ +package com.myspace.sample_analytics.pojo.input; + +/** + * This class was automatically generated by the data modeler tool. + */ + +@javax.persistence.Entity +public class InputDataModel implements java.io.Serializable { + + static final long serialVersionUID = 1L; + + @javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.AUTO, generator = "INPUTDATAMODEL_ID_GENERATOR") + @javax.persistence.Id + @javax.persistence.SequenceGenerator(sequenceName = "INPUTDATAMODEL_ID_SEQ", name = "INPUTDATAMODEL_ID_GENERATOR") + private java.lang.Long id; + + @org.kie.api.definition.type.Label(value = "Customer ID") + private java.lang.String customerId; + + @org.kie.api.definition.type.Label(value = "Source payload file name") + private java.lang.String fileName; + + @org.kie.api.definition.type.Label(value = "Number of hosts found") + private java.lang.Integer numberOfHosts; + + @org.kie.api.definition.type.Label(value = "Total disk space used found ") + private java.lang.Long totalDiskSpace; + + public InputDataModel() { + } + + public java.lang.Long getId() { + return this.id; + } + + public void setId(java.lang.Long id) { + this.id = id; + } + + public java.lang.String getCustomerId() { + return this.customerId; + } + + public void setCustomerId(java.lang.String customerId) { + this.customerId = customerId; + } + + public java.lang.String getFileName() { + return this.fileName; + } + + public void setFileName(java.lang.String fileName) { + this.fileName = fileName; + } + + public java.lang.Integer getNumberOfHosts() { + return this.numberOfHosts; + } + + public void setNumberOfHosts(java.lang.Integer numberOfHosts) { + this.numberOfHosts = numberOfHosts; + } + + public java.lang.Long getTotalDiskSpace() { + return this.totalDiskSpace; + } + + public void setTotalDiskSpace(java.lang.Long totalDiskSpace) { + this.totalDiskSpace = totalDiskSpace; + } + + public InputDataModel(java.lang.Long id, java.lang.String customerId, + java.lang.String fileName, java.lang.Integer numberOfHosts, + java.lang.Long totalDiskSpace) { + this.id = id; + this.customerId = customerId; + this.fileName = fileName; + this.numberOfHosts = numberOfHosts; + this.totalDiskSpace = totalDiskSpace; + } + +} \ No newline at end of file diff --git a/src/main/java/com/myspace/sample_analytics/pojo/output/.gitkeep b/src/main/java/com/myspace/sample_analytics/pojo/output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/java/com/myspace/sample_analytics/pojo/output/ReportDataModel.java b/src/main/java/com/myspace/sample_analytics/pojo/output/ReportDataModel.java new file mode 100644 index 00000000..87f89bd9 --- /dev/null +++ b/src/main/java/com/myspace/sample_analytics/pojo/output/ReportDataModel.java @@ -0,0 +1,107 @@ +package com.myspace.sample_analytics.pojo.output; + +/** + * This class was automatically generated by the data modeler tool. + */ + +@javax.persistence.Entity +public class ReportDataModel implements java.io.Serializable { + + static final long serialVersionUID = 1L; + + @javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.AUTO, generator = "INPUTDATAMODEL_ID_GENERATOR") + @javax.persistence.Id + @javax.persistence.SequenceGenerator(sequenceName = "INPUTDATAMODEL_ID_SEQ", name = "INPUTDATAMODEL_ID_GENERATOR") + private java.lang.Long id; + + @org.kie.api.definition.type.Label("Customer ID") + private java.lang.String customerId; + + @org.kie.api.definition.type.Label("Source payload file name") + private java.lang.String fileName; + + @org.kie.api.definition.type.Label("Number of hosts found") + private java.lang.Integer numberOfHosts; + + @org.kie.api.definition.type.Label("Total disk space used found ") + private java.lang.Long totalDiskSpace; + + @org.kie.api.definition.type.Label("Total price for subscriptions once migrated") + private java.lang.Integer totalPrice; + + @org.kie.api.definition.type.Label(value = "Date of creation") + private java.util.Date creationDate; + + public ReportDataModel() { + } + + public java.lang.Long getId() { + return this.id; + } + + public void setId(java.lang.Long id) { + this.id = id; + } + + public java.lang.String getCustomerId() { + return this.customerId; + } + + public void setCustomerId(java.lang.String customerId) { + this.customerId = customerId; + } + + public java.lang.String getFileName() { + return this.fileName; + } + + public void setFileName(java.lang.String fileName) { + this.fileName = fileName; + } + + public java.lang.Integer getNumberOfHosts() { + return this.numberOfHosts; + } + + public void setNumberOfHosts(java.lang.Integer numberOfHosts) { + this.numberOfHosts = numberOfHosts; + } + + public java.lang.Long getTotalDiskSpace() { + return this.totalDiskSpace; + } + + public void setTotalDiskSpace(java.lang.Long totalDiskSpace) { + this.totalDiskSpace = totalDiskSpace; + } + + public java.lang.Integer getTotalPrice() { + return this.totalPrice; + } + + public void setTotalPrice(java.lang.Integer totalPrice) { + this.totalPrice = totalPrice; + } + + public java.util.Date getCreationDate() { + return this.creationDate; + } + + public void setCreationDate(java.util.Date creationDate) { + this.creationDate = creationDate; + } + + public ReportDataModel(java.lang.Long id, java.lang.String customerId, + java.lang.String fileName, java.lang.Integer numberOfHosts, + java.lang.Long totalDiskSpace, java.lang.Integer totalPrice, + java.util.Date creationDate) { + this.id = id; + this.customerId = customerId; + this.fileName = fileName; + this.numberOfHosts = numberOfHosts; + this.totalDiskSpace = totalDiskSpace; + this.totalPrice = totalPrice; + this.creationDate = creationDate; + } + +} \ No newline at end of file diff --git a/src/main/java/com/myspace/sample_analytics/rules/.gitkeep b/src/main/java/com/myspace/sample_analytics/rules/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/java/com/myspace/sample_analytics/test/.gitkeep b/src/main/java/com/myspace/sample_analytics/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/resources/.gitkeep b/src/main/resources/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/resources/META-INF/kie-deployment-descriptor.xml b/src/main/resources/META-INF/kie-deployment-descriptor.xml new file mode 100644 index 00000000..4454be12 --- /dev/null +++ b/src/main/resources/META-INF/kie-deployment-descriptor.xml @@ -0,0 +1,18 @@ + + + org.jbpm.domain + org.jbpm.domain + JPA + JPA + SINGLETON + + + + + + + + + + true + diff --git a/src/main/resources/META-INF/kmodule.xml b/src/main/resources/META-INF/kmodule.xml new file mode 100644 index 00000000..509b3cc1 --- /dev/null +++ b/src/main/resources/META-INF/kmodule.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml new file mode 100644 index 00000000..fda3021d --- /dev/null +++ b/src/main/resources/META-INF/persistence.xml @@ -0,0 +1,18 @@ + + + + org.hibernate.jpa.HibernatePersistenceProvider + java:jboss/datasources/ExampleDS + com.myspace.sample_analytics.pojo.input.InputDataModel + com.myspace.sample_analytics.pojo.output.ReportDataModel + true + + + + + + + + + + diff --git a/src/main/resources/com/myspace/sample_analytics/.gitkeep b/src/main/resources/com/myspace/sample_analytics/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/resources/com/myspace/sample_analytics/decisiontable/.gitkeep b/src/main/resources/com/myspace/sample_analytics/decisiontable/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/resources/com/myspace/sample_analytics/pojo/.gitkeep b/src/main/resources/com/myspace/sample_analytics/pojo/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/resources/com/myspace/sample_analytics/pojo/input/.gitkeep b/src/main/resources/com/myspace/sample_analytics/pojo/input/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/resources/com/myspace/sample_analytics/pojo/output/.gitkeep b/src/main/resources/com/myspace/sample_analytics/pojo/output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/resources/com/myspace/sample_analytics/rules/.gitkeep b/src/main/resources/com/myspace/sample_analytics/rules/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/main/resources/com/myspace/sample_analytics/rules/GetReport.drl b/src/main/resources/com/myspace/sample_analytics/rules/GetReport.drl new file mode 100644 index 00000000..0c054e21 --- /dev/null +++ b/src/main/resources/com/myspace/sample_analytics/rules/GetReport.drl @@ -0,0 +1,2 @@ +package com.myspace.sample_analytics.rules; + diff --git a/src/main/resources/com/myspace/sample_analytics/rules/GetReports.drl b/src/main/resources/com/myspace/sample_analytics/rules/GetReports.drl new file mode 100644 index 00000000..812934fa --- /dev/null +++ b/src/main/resources/com/myspace/sample_analytics/rules/GetReports.drl @@ -0,0 +1,5 @@ +package com.myspace.sample_analytics.rules; + +query "get reports"() + report : com.myspace.sample_analytics.pojo.output.ReportDataModel() +end \ No newline at end of file diff --git a/src/main/resources/com/myspace/sample_analytics/rules/PricingGuidedRule.rdrl b/src/main/resources/com/myspace/sample_analytics/rules/PricingGuidedRule.rdrl new file mode 100644 index 00000000..340c7546 --- /dev/null +++ b/src/main/resources/com/myspace/sample_analytics/rules/PricingGuidedRule.rdrl @@ -0,0 +1,23 @@ +package com.myspace.sample_analytics.rules; + +import java.lang.Number; +import com.myspace.sample_analytics.pojo.input.InputDataModel; +import com.myspace.sample_analytics.pojo.output.ReportDataModel; +import java.util.Date; + +rule "PricingGuidedRule" + dialect "mvel" + when + input : InputDataModel( customerId != null ) + then + java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd-MMM-yyyy"); + ReportDataModel report = new ReportDataModel(); + report.setCustomerId( input.getCustomerId() ); + report.setNumberOfHosts( input.getNumberOfHosts() ); + report.setTotalPrice( input.getNumberOfHosts() * 42 ); + report.setFileName( input.getFileName() ); + report.setTotalDiskSpace( input.getTotalDiskSpace() ); + report.setCreationDate( new Date() ); + insert( report ); + System.out.println("********** HelloRules DRL Report: " + report.getTotalPrice() + " **********"); +end diff --git a/src/main/resources/com/myspace/sample_analytics/test/.gitkeep b/src/main/resources/com/myspace/sample_analytics/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/java/.gitkeep b/src/test/java/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/java/com/myspace/sample_analytics/.gitkeep b/src/test/java/com/myspace/sample_analytics/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/java/com/myspace/sample_analytics/decisiontable/.gitkeep b/src/test/java/com/myspace/sample_analytics/decisiontable/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/java/com/myspace/sample_analytics/pojo/.gitkeep b/src/test/java/com/myspace/sample_analytics/pojo/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/java/com/myspace/sample_analytics/pojo/input/.gitkeep b/src/test/java/com/myspace/sample_analytics/pojo/input/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/java/com/myspace/sample_analytics/pojo/output/.gitkeep b/src/test/java/com/myspace/sample_analytics/pojo/output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/java/com/myspace/sample_analytics/rules/.gitkeep b/src/test/java/com/myspace/sample_analytics/rules/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/java/com/myspace/sample_analytics/test/.gitkeep b/src/test/java/com/myspace/sample_analytics/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/java/testscenario/ScenarioJunitActivatorTest.java b/src/test/java/testscenario/ScenarioJunitActivatorTest.java new file mode 100644 index 00000000..958dc758 --- /dev/null +++ b/src/test/java/testscenario/ScenarioJunitActivatorTest.java @@ -0,0 +1,7 @@ +package testscenario; +/** +* Do not remove this file +*/ +@org.junit.runner.RunWith(org.drools.workbench.screens.scenariosimulation.backend.server.runner.ScenarioJunitActivator.class) +public class ScenarioJunitActivatorTest { +} \ No newline at end of file diff --git a/src/test/resources/.gitkeep b/src/test/resources/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/resources/com/myspace/sample_analytics/.gitkeep b/src/test/resources/com/myspace/sample_analytics/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/resources/com/myspace/sample_analytics/decisiontable/.gitkeep b/src/test/resources/com/myspace/sample_analytics/decisiontable/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/resources/com/myspace/sample_analytics/pojo/.gitkeep b/src/test/resources/com/myspace/sample_analytics/pojo/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/resources/com/myspace/sample_analytics/pojo/input/.gitkeep b/src/test/resources/com/myspace/sample_analytics/pojo/input/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/resources/com/myspace/sample_analytics/pojo/output/.gitkeep b/src/test/resources/com/myspace/sample_analytics/pojo/output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/resources/com/myspace/sample_analytics/rules/.gitkeep b/src/test/resources/com/myspace/sample_analytics/rules/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/resources/com/myspace/sample_analytics/test/.gitkeep b/src/test/resources/com/myspace/sample_analytics/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/test/resources/com/myspace/sample_analytics/test/PricingTest.scesim b/src/test/resources/com/myspace/sample_analytics/test/PricingTest.scesim new file mode 100644 index 00000000..72cdad35 --- /dev/null +++ b/src/test/resources/com/myspace/sample_analytics/test/PricingTest.scesim @@ -0,0 +1,184 @@ + + + + + + + + Index + OTHER + + + # + java.lang.Integer + + java.lang.Integer + # + + + + + Description + OTHER + + + Scenario description + java.lang.String + + java.lang.String + Scenario description + + + + + InputDataModel + + + customerId + + + + 0|1 + GIVEN + + + 0|1 + com.myspace.sample_analytics.pojo.input.InputDataModel + + java.lang.String + InputDataModel + customerId + + + + + InputDataModel + + + numberOfHosts + + + + 1556635589011 + GIVEN + + + java.lang.Integer + InputDataModel + numberOfHosts + + + + + ReportDataModel + + + customerId + + + + 0|2 + EXPECT + + + 0|2 + com.myspace.sample_analytics.pojo.output.ReportDataModel + + java.lang.String + ReportDataModel + customerId + + + + + ReportDataModel + + + numberOfHosts + + + + 1556639422502 + EXPECT + + + java.lang.Integer + ReportDataModel + numberOfHosts + + + + + ReportDataModel + + + totalPrice + + + + 1556639439382 + EXPECT + + + java.lang.Integer + ReportDataModel + totalPrice + + + default + RULE + + + + + + + + S size project + + + + + 1 + + + + + 123456 + + + + + 123456 + + + + + 10 + + + + + 10 + + + + + 420 + + + + + + + + + + com.myspace.sample_analytics.pojo.input.InputDataModel + + + com.myspace.sample_analytics.pojo.output.ReportDataModel + + + + \ No newline at end of file