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.

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


          網站導航:
           
          主站蜘蛛池模板: 彩票| 武汉市| 昌都县| 平塘县| 锡林浩特市| 新郑市| 普洱| 汉中市| 平远县| 商城县| 潢川县| 买车| 渝北区| 崇仁县| 黔东| 黄山市| 安新县| 衡山县| 游戏| 繁昌县| 萨迦县| 黄骅市| 饶河县| 龙海市| 韩城市| 泽库县| 阿荣旗| 南昌县| 依安县| 涡阳县| 保靖县| 德江县| 南充市| 怀化市| 新建县| 阿瓦提县| 广西| 阳东县| 云和县| 志丹县| 马龙县|