<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    I'll be back!

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

    Create custom rule in project should include following steps:

    1. Class structure construction.

    Class structure means the class details which extends from Embed- and the class details which extends from Rule-.
    Custom rule classes are extended from Rule- class. They are concrete classes and does not belong to a class group. The key name commonly have two items, pyClassName and ***Name, which will be saved into database. The Caption will show on the New form of custom rule.

    Embed- classes are used for Property and Property Page. Rule- classes are used for the Custom Rules.

    Every class has its own required properties. Finally, all the properties are bounded to custom elements in FormBuilder.

    2. pyDefault rule definition.

    A model named pyDefault must be built for every custom rule.
    In pyDefault model, all properties for this custom rule should be initialized as “”, some special case, you can give a default value. No blank here, otherwise, the property you leave it blank will not exposed in Clipboard.

    3. Rule-obj-list and listview definition.

    List rule and ListView rule should be defined for every custom rule. It is used for the format of custom rules’ display or report. You can refer to other system rules’ List and ListView rule, just Save As is OK. List rule includes three instances as follows: List, pySearch and RuleList. ListView rule has a LookUpList instance.

    4. Database configuration.

    Create a new table which the columns are the same as pr4_rule, and this table should contain most of the Constrains, Indexes and Trigger like pr4_rule. Additionally, you have to add some columns for your custom rules, column name corresponding to your rule names. Than create a Data-Admin-DB-Table rule to map to this table. After these, the instances of custom rule will be stored in this table automatically.

    5. Rule form definition.

    Ok, after the steps above have been done. This key step will give you a good experience.
    In Class rule’s Advanced tab, Create a Rule Form which the name is the same as custom rule class. In this Rule Form, you can customize your own rule by using FormBuilder.
    In FormBuilder, key Elements in the list tree is rulename and pyClassname. The tabStrip can have many tabs, one tab can have many tabLayouts, and one tabLayout can have many tabElements. The tabElement has many Group type such as Group, Repeat, Group NonBound and so on. We just use Group and Repeat in commonly cases.
    Data Bounding is important. It will help you to bind the data which fill from rule instance to Embed- class you just created. Group and Repeat are bound for Property Page and Property PageList. If you have not Page or PageList, just leave here blank and bind to element directly.

    For example:
    1. If there is a class structure Layout.FormID in your rule. Fill Layout to Group’s Propery, and fill FormID to Element’s Property.

    2. If there is a class structure ScriptSrc(1).FormID in your rule. SciptSrc is a PageList Property. Just fill ScriptSrc to Repeat’s Propery, and fill FormID to Element’s Property.

    3. If If there is a class structure ScriptSrc(1) in your rule. ScriptSrc is a ValueList Property. Jus fill ScriptSrc to Repeat’s Propery, and fill FormID to Element’s Property.

    It means Data Bounding.
    SmartPrompt is simple. You can just refer to other system rule.
    Adding an event to use JavaScript to call an Activity, you can refer to the code of Data-Admin-ServicePackage rule. It uses the AJAX technology to achieve this purpose.

    Something should be minded:

    1. When using FormBuilder to create custom rule. Add your web address such as ‘http://10.225.76.66:7001/’ to your trusted website first. Once you update the rule, Log off PRPC, and then clear Temporary Internet Files, and then Log in. Otherwise, there will be lots of JavaScript errors when creating instances. It’s important.
    2. Data-Admin-DB-Table specified table name is Case Sensitivity (Commonly, it is Low Case.).
    3. The database table for custom rule should include the Constrains (Primary), Triggers and Indexes like pr4_rule.
    4. In Rule-XUI-Obj-Form, you can find out the implementation of JavaScript functions which their names begin with ‘zUtil_’ acceding to this way: ‘zutilitiesrf.js’ -> ‘ruleformutilitymanager.js’ -> ‘ruleformutilitymanager.js’.
    5. In Rule-XUI-Obj-Form, when using FormBuilder, if you need some custom script functions, just create a file named ‘xxxScript.js’ in PRPC. You’d better not add any separated JavaScript in rule form HTML.
    6. In FormBuilder, when adding a Rule Class for Text Box SmartPrompt. The Form HTML can add a HTML property ISNS_CLASS=’’
    7. When you use Repeat function, JavaScript may help you to generate the same rows for you. But the elements IDs are also the same. So you cannot get a specific element of any row. At this time, you can refer to JavaScript method Object.parentElement and TableObject. rows(0).cells(0), just like ElementObj.parentElement.parentElement. rows(0).cells(0) == ElementObj.
    8. If you want to test that whether the data is bound to class structure, you may just save the rule instance and than refresh the rule, if the data is always exists, bounding is ok.

    評論

    # re: PegaRULES Process Commander(PRPC)------How to create Custom Rule  回復  更多評論   

    2007-08-23 20:56 by Jeremy
    good

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


    網站導航:
     
    主站蜘蛛池模板: 亚洲天堂一区二区三区| 免费一级毛片在播放视频| 亚洲色偷拍另类无码专区| 亚洲AV成人一区二区三区观看 | jlzzjlzz亚洲jzjzjz| 一级毛片**不卡免费播| 亚洲AV无码1区2区久久| 日本在线免费观看| 亚洲精品夜夜夜妓女网| 在线毛片片免费观看| 婷婷亚洲久悠悠色悠在线播放| 污视频在线观看免费| 亚洲黄色免费观看| 亚洲免费网站观看视频| 亚洲男同gay片| vvvv99日韩精品亚洲| 国产激情久久久久影院老熟女免费 | 日韩一级免费视频| 在线播放亚洲精品| 亚洲综合精品网站| 国产偷伦视频免费观看| 久久精品国产亚洲AV无码偷窥 | 国产a视频精品免费观看| 国产AV旡码专区亚洲AV苍井空| 永久免费av无码网站大全| MM1313亚洲精品无码久久| 亚洲午夜福利精品久久| 三年片在线观看免费观看大全动漫| 亚洲精品在线免费观看视频| 免费a级毛片高清视频不卡| 国产亚洲精品91| 亚洲精品中文字幕乱码三区| 麻豆视频免费观看| 猫咪www免费人成网站| 亚洲高清国产AV拍精品青青草原 | 日本无吗免费一二区| 国产在线国偷精品免费看| 亚洲综合久久久久久中文字幕| 女人与禽交视频免费看| 在线观看免费视频网站色| 亚洲另类视频在线观看|