Question 4 Replies 556 Views × Close popover Jon Garfunkel (JonnyGar) BNY Mellon Vice President, BPM CoE BNY Mellon US View Profile Send Message JonnyGar Member since 2009 91 posts BNY Mellon Posted: April 30, 2015 Last activity: July 17, 2017 Posted: 30 Apr 2015 9:41 EDT Last activity: 17 Jul 2017 15:40 EDT Closed What is behavior if stepPage is missing? It isn't hard to write code (activity, tranform, anything) that fails to check if a step page exists before referencing properties on that page. What's the expected behavior? If my memory serves me, in many times, it will simply use the current page. Sometimes it does fail. Can we at least throw a WARN message? I came across this reviewing code a few weeks back; I thought I'd asked this once on PDN, but I can't find it now. ***Updated by moderator: Marissa to close post*** This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post. Data Integration × 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: 5 years ago Posted: 30 Apr 2015 9:59 EDT × Close popover Ben Baril (BenBaril) PEGA Director, Product Marketing Pegasystems CA View Profile Send Message BenBaril PEGA replied to JonnyGar What do you mean if a StepPage exists? Like, if it has been instantiated on the clipboard? Can you give a concrete example? If you do a Property-Set on a page that hasn't been instantiated you will just get the page on the clipboard with whatever properties you set on it. Posted: 5 years ago Posted: 30 Apr 2015 14:45 EDT × Close popover Jon Garfunkel (JonnyGar) BNY Mellon Vice President, BPM CoE BNY Mellon US View Profile Send Message JonnyGar BNY Mellon replied to BenBaril Yes, that's what I mean -- that's what the function pageExists() defines. Your memory is better. If the page doesn't exist in an activity step, it will simply instantiate it on the defined class. Which, I believe, should throw a runtime warning message to the log. The behavior in UI elements and decision rules might be different, though. The Pages & Classes tab ought to be updated to indicate the activity which creates the page. That would be a better developer-time governance check. Posted: 5 years ago Posted: 1 May 2015 5:30 EDT × Close popover Phani Sahukaru (sahup1) PEGA Architect - Financial Services Pegasystems Inc. IN View Profile Send Message sahup1 PEGA replied to JonnyGar Hi Jon, Good Morning! from Pega 7 - if a step page is not declared under Pages & Classes tab & referred in a step would throw design time error on saving the activity rule method PageExistsWithClass() is preferred to PageExists() also please refer: https://pdn.pega.com/release-notes?version=8431 [Some pages may no longer be classless] Thank you! psahukaru Posted: 5 years ago Posted: 1 May 2015 10:24 EDT × Close popover Jon Garfunkel (JonnyGar) BNY Mellon Vice President, BPM CoE BNY Mellon US View Profile Send Message JonnyGar BNY Mellon replied to sahup1 Certainly you can declare Pages & Classes in development, but whether that page is there at runtime is another matter. Most assuredly there should be a warning if findPage() is looking for a page that isn't there.