sábado, 22 de agosto de 2015

Testing CER Rules

After done the follow the Example - Creating a simple CER Rules you can test your CER Rules with the following steps:

Step 1 Generate Rules
Go to EJBServer DOS window because you need to extract the ruleset
Make build creole.extractrulesdata
Your ruleset will be extracted to \build\dataextractor\blob

Step 2 Copy files generatedSearch RulesPerson.xml and RULESET-RulesPerson1.properties and Copy it to EJBServer\components\custom\CREOLE_Rule_Sets (or whatever directory you are working in)

Step 3 Add body rule with correct version into DMXAfter add to or create EJBServer\components\custom\data\initial\CREOLERULESET.dmx an entry for your ruleset (You can copy the ssction generated on \build\dataextractor\blob\CREOLERULESET.dmx)
(if you use the extracted DMX you need to change the ruleSetVersion)

Step 4 Generate class Java for use into eclipse with JunitThen do build creole.generate.test.classes  and refresh in eclipse.  This should extent RulesTestBase, which in turn extends CuramServerTest.  You can then write your junit tests
Cúram create the class into
EJBServer\build\svr\creole.gen\source\curam\creole\ruleclass\RulesPerson\impl

Step 5 Invoke cer rules from java into eclipse
And you can use the object session for generated documentation.













Step 6 View Documentation and result about rule
Result after configured the session documentation


 

 You can help the statistics rules too for this part.

1 comentario:

  1. Thanks for sharing, nice post! Post really provice useful information!

    An Thái Sơn với website anthaison.vn chuyên sản phẩm máy đưa võng hay máy đưa võng tự động tốt cho bé là địa chỉ bán máy đưa võng giá rẻ tại TP.HCM và giúp bạn tìm máy đưa võng loại nào tốt hiện nay.

    ResponderEliminar