All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openl.rules.examples.hello.rules.HelloWorld.xls Maven / Gradle / Ivy

??ࡱ?>??	'????????&????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????	????????\pStanislav Shor                                                                                               B?a?=???=X?l98X@?"??1???Arial1???Arial1???Arial1???Arial1??Arial1?$?Arial1???Arial1?	?Arial1?	?Arial1?Q?Tahoma1?Q?Tahoma1?9?Arial1??Arial1?=?Arial1?	?Arial"$"#,##0_);\("$"#,##0\)!"$"#,##0_);[Red]\("$"#,##0\)""$"#,##0.00_);\("$"#,##0.00\)'""$"#,##0.00_);[Red]\("$"#,##0.00\)7*2_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"_);_(@_).))_(* #,##0_);_(* \(#,##0\);_(* "-"_);_(@_)?,:_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)6+1_(* #,##0.00_);_(* \(#,##0.00\);_(* "-"??_);_(@_)?"Yes";"Yes";"No"?"True";"True";"False"?"On";"On";"Off"]?,[$? -2]\ #,##0.00_);[Red]\([$? -2]\ #,##0.00\)??? ? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ? ? ?+?? ?? ?)?? ?? ?,?? ?? ?*?? ?? ????? ????? ?	?? ?? ? P? ?p? ?P? ?? ?P	 ?	x? ?? ?  "@ ? ?  " @  ? ? p""@ @ 
 ?!x   ?p""@ @ ? ? `@ @ ) ?  "@ @? ? (""@ @ ? ?  ""@ @ ? ?p""@ @ ) ?p"@ ) ?p""@ @ ) ?x""@ @ ) ?p " @ , ?p  , ?p " @ , ?x " @ ( ?p"@  	 ?p   	 ?p"@ @ 	 ?p  @ 	 ?p"!@ @ 	 ?p ! @ 	 ?x ?!x  ??????????????	??????????`??HelloWorld Rules?t#Main?Y(Environment??"Greeting;??`i?b?Z? 		3???A?@@?
???!C1A1C2GreetingGood MorningGood AfternoonGood Evening
Good Night*System.out.println(greeting  + ", World!")String greetingint minint max	Hour FromHour ToRules void helloWorld(int hour)?int hour;
//if there is an argument, use it, otherwise use system clock
if (args.length > 0 )  
  hour = Integer.parseInt(args[0]);
else
  hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);

helloWorld(hour);
GH
Jbfip?
?????????Method void main(String[] args)Environmentmin <= hourlanguagehour <= maxorg.openl.jRuleR10R20R30R40Rule #?"w?b?
?
?p
TR9C:\_ICP\IDE\eclipse\workspace\warner.openl\RateMatrix.htmRateMatrix_21517.incc
	????=
d????MbP?_*+??%????M?\\saturn\Riga????dXXLetter?.HP LaserJet 8150 PCL 6PCL 62??x?eQ?nA?7?I?I9@??fOvD$.?c$#?X8)?fD?*?$???p??r?3?p????/?c?B?????Z:????	?[?{?}??ĵ?_b?????I??^?8??mt?.??=GI??ۚx??ϔ????􁹉?x9]^Jb?[?)?U5J.y?w-??m?x6?c?c??^??C(G?# y?Z?cm.?N??f?)_&Y??FX???h??????͝???.?|!?E?????wB??? ?M?<
??
~??BƠ???7BF ???ꄫ?&??0/?ɷ?#??4N'g?Y?????S???s??j?i??m1?A?zOD??z?dݗ??+??G}ٕ?F?IU?Ԍ~???/??6'!x???]4@?&?
?k?'UvG?cP?4
x?
???<?Here you define the type "String" and internal name of the parameter "greeting" that an end user will enter in cells of this column. This name is used inside Java code (openl.j) in the cell above. 
<
???????
?
??B?x????
X?P?P????>YE??]4@x?h&?
?(?bC?Cb/\s?#??
???<?This piece of Java code describes the semantics of the action that will be executed when a row is selected (conditions in the columns C1 and C2 are satisfied). The String variable "greeting" will contain the value of the proper cell inside this column: "Good Morning", "Good Evening", etc.  Actually this example is using the OpenL's implementation of Java as specified in first line of the tab "Environment".<??? ?~?~?
?
??<?????X?P?P????5rsn?]4@??`'?
??M?I?{t?,C????
??><?This is a Condition header. It must start with the letter "C".<?>?????
?
??B?@????
X?P?P????>r?n?]4@@?X(?
?"HljM???G???#??
??=<>This is an Action header. It must start with the letter "A".
<?=?~?~?
?
??<??B???
X?P?P???
??????]4@?B??1?
?C?w$b?N?F??A???
???<?The Rule column is used for naming decision rows. In addition it may serve as a placeholder for merged cells when row contains multiple cells in case of Array parameters. This column is optional 
<
??? Stanislav Shorf
Jacob Feldmanr
Jacob Feldmanr
Jacob Feldmanr
Jacob Feldmanr>?@?


?
?7??????,anna
?+an#

	????F'?'
d????MbP?_*+??%????MHP LaserJet 6L - local?4C??
odXXLetter????DINU"4_*??"dXX????U}q}: ?@ ?
!?
"?D?P?H ??0?(	?
?>?@?7
	????)?*
d????MbP?_*+??%?????"????U}}q}   ?
66?
#?
#?
 ?
?
?
?
?$?>?@?
?7
???????Oh??+'??0?	PXd|???
???s
JacobFeldmanxStanislav ShorMicrosoft Excel@???4??@?
+????@M?????????՜.??+,??0?	PXlt|??
???
OpenRulesn?	HelloWorld RulesMainEnvironmentWorksheets	

???????? !"#$%????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Root Entry???????? ?F?0B[??????Workbook?????????????*SummaryInformation(????DocumentSummaryInformation8????????????




© 2015 - 2024 Weber Informatics LLC | Privacy Policy