I'll be back!

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

          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.

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 兴城市| 黔东| 泸西县| 奉节县| 德兴市| 红原县| 阳江市| 自贡市| 桑日县| 南丰县| 弥渡县| 宁武县| 九龙坡区| 斗六市| 仙居县| 梓潼县| 永川市| 乐平市| 钟祥市| 扶沟县| 临沭县| 花垣县| 西平县| 沙洋县| 新乐市| 酉阳| 阳山县| 长宁区| 柯坪县| 通州区| 华蓥市| 五寨县| 南昌市| 灵山县| 锦州市| 绥宁县| 阜平县| 阜新| 鸡西市| 盐源县| 小金县|