Question 2 Replies 1625 Views × Close popover Kunal Kakade (KunalKakade) John Deere John Deere IN View Profile Send Message KunalKakade Member since 2016 21 posts John Deere Posted: October 12, 2016 Last activity: October 12, 2016 Posted: 12 Oct 2016 10:01 EDT Last activity: 12 Oct 2016 23:30 EDT Closed Stream Processing in pega Hi, We are storing a HTML stream as plain text in DB. At a run time we want to do stream processing and send the content in email. Have a look at below example, Hi <Customer Name>, Please fill your <strong>Tax Return</strong> this year. In the above text, i want to replace <Customer Name> by actual Pega Include tag as we see it in Corr rule. And HTML tag <Strong> will actually make the text bold after stream processing. Pega's stream processing methods like Property-Set-Corr and Property-Set-Stream wont work for me as I am storing the content in DB. Anyone can suggest me a way to do it? Low-Code App Development Case Management × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 4 years ago Posted: 12 Oct 2016 12:25 EDT × Close popover John Pritchard-Williams (JOHNPW_GCS) PEGA Client Support Team Lead Pegasystems Inc. GB View Profile Send Message JOHNPW_GCS PEGA replied to KunalKakade Do you mean to do a 'double-replace' here ? From (literally) <Customer Name> to a JSP TAG, which then renders the actual runtime value that the JSP references ? Or do you mean to edit your HTML to replace <Customer Name> (etc) with Pega JSP tags ? If the latter; then you should be able to work this out using the 'Pega Tags' (which are JSP Tags in a Pega Tag Library). For instance you could do this (I built this at 'Data-Admin-Operator-ID' class - so that we can use the existing Operator Properties as an example): Hi <p:r n=".pxCreateOperator" m="literal"/>, <br/> <br/> Please fill your <strong>Tax Return</strong> this year. If I preview that HTML rule, I see this: If you have to first convert your existing HTML to a Pega 'JSP'; then you'll need some custom java code (probably using regex etc). Posted: 4 years ago Posted: 12 Oct 2016 23:30 EDT × Close popover Kunal Kakade (KunalKakade) John Deere John Deere IN View Profile Send Message KunalKakade John Deere replied to KunalKakade Hello, Three steps involved in it, 1) Get the email content from DB. Which end user has set. To know the data will be dynamic, end user encloses it with angle brackets. Here <Customer Name> 2) PRPC replaces <Customer Name> by Pega Include tags to use clipboard property. Keeps HTML tags as it is. 3) PRPC performs stream processing and stored the actual stream processing result in property. Similar to Property-Set-Corr and Property-Set-Stream I can take care of first 2 steps. The only problem is, as i dont have any stream rule created for this content, i cannot use Property-Set-Corr or Property-Set-Stream. How do i do it?