Question2Replies1599Views KunalKakade Member since 2016 21 posts John Deere Posted: October 12, 2016Last activity: October 12, 2016 Closed Stream Processing in pegaHi,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 popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post 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 agoJOHNPW_GCS PEGA replied to KunalKakadeDo 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 agoKunalKakade John Deere replied to KunalKakadeHello, 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?