I'll be back!

            Focus on BPM, celebrate PegaRULES Process Commander (PRPC)
          posts - 76, comments - 161, trackbacks - 0, articles - 2
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          In order to make the Custom Rule accord with customer’s requirement, we have to build up a Validation mechanism.
          Follow with the steps below. It will give you a good performance.


          1. Create a new Rule-Message rule, apply to the rule you want to validate.
          PRPC have hundreds of Messages, but those messages are defined for PRPC system exceptions or errors. If you throw errors which the PRPC system may throw, you can just use the Messages provided by PRPC. The screenshot of custom message rule as follows:


          2. Create a new Activity, it is named Validate, apply to the rule you want to validate.

          The Activity’s name must be “Validate”. When you are saving a rule, you can find the validation Activity is excused automatically in Tracer.
          Generally, validation Activity contains three main parts, Start-Validate, Java, End-Validate. Start-Validate and End-Validate must be used together. Message logics are handled in Java step. This step can use the method Property-Set-Message instead if the logic is simple and the message rule has no argument. At this step, the key function is ClipboardProperty.addMessage, ClipboardProperty is the property you want to add the message. You can use it like this:

          Ok, that is all. If any errors are captured, the error message will appear.



          Copyright by Zolly in Cognizant.

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 班戈县| 长垣县| 临洮县| 巴彦淖尔市| 霍邱县| 屏山县| 鄂托克前旗| 乌拉特后旗| 合作市| 宣恩县| 古浪县| 洪泽县| 分宜县| 衡山县| 郴州市| 宣恩县| 宣城市| 普兰店市| 晋中市| 民丰县| 张家港市| 勐海县| 广昌县| 根河市| 夹江县| 莱阳市| 赤城县| 三台县| 葫芦岛市| 阳江市| 昌黎县| 儋州市| 阿克苏市| 苍山县| 甘孜县| 紫阳县| 固安县| 四子王旗| 浙江省| 响水县| 辽阳县|