I'll be back!

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

          XML is a key technology in PRPC. How to generate the XML which the format you want. You can follow these steps below:

          1. Create an instance of Rule-Obj-XML.

          This XML rule is the rule which will make up the XML you want. For example:

          <?xml version="1.0" encoding="UTF-8"?>
          <UIForm>
          <FormProperty>
          <FormID><pega:reference name = ".FormID" mode="literal" /></FormID>
          <FormName><pega:reference name = ".FormName" mode="literal" /></FormName>
          </FormProperty>
          </UIForm> 

          *pega:reference is a common method. Any others please refer to HTML, Directives, and JSP Tags in prhelp.
          *Mode=”literal” means that it will delete the XML especial symbol like “&it;”, “&gt;” and so on.

          2. Create a model to initialize properties.(Optional)

          Model is used to initialize properties. This is an optional step, and you can use Activity’s Property-Set method instead.

          3. Create an Activity to call method Property-Set-XML.

          The most important of XML generation is method Property-Set-XML in Activity. Example Screenshot:

          *XMLGenerated is a local variable defined in Parameter Tab. It is used to save final XML.
          *XMLStream and XMLType have presented in XML rule.

          Generated XML just like this:

          <?xml version="1.0" encoding="UTF-8"?>
          <UIForm>
          <FormProperty>
          <FormID>the value you set for the property .FormID</FormID>
          <FormName>the value you set for the property .FormName</FormName>
          </FormProperty>
          </UIForm> 

          Additionally, for ValueList properties, the code in XML like this:

          <pega:forEach name = ".StyleLink">
          <StyleLink><pega:reference name = "$this" mode="literal" /></StyleLink>
          </pega:forEach> 

          For PageList properties, you can refer to this code, the precondition is you should use class Code-Pega-List.

          <pega:forEach name="XMLStreamListPage.pxResults">
          <pega:when test="$THIS.pxObjClass = 'Rule-XUI-Obj-TabStrip'">
          <pega:reference name = "$THIS.XMLStream" mode="literal" />
          </pega:when>
          </pega:forEach> 

          Copyright by Zolly in Cognizant.

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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 镇沅| 乌拉特后旗| 宜兴市| 绥江县| 遂溪县| 合水县| 太原市| 保定市| 张家口市| 丰原市| 九龙坡区| 东至县| 榆社县| 英德市| 神木县| 通河县| 临夏市| 鸡泽县| 偃师市| 子洲县| 盐山县| 闵行区| 翁源县| 巫溪县| 鹤庆县| 静海县| 扎赉特旗| 定西市| 泾川县| 峨山| 新平| 新闻| 和政县| 张掖市| 简阳市| 伊川县| 嵊州市| 台东市| 舞钢市| 阿尔山市| 新乐市|