Question

3
Replies
6562
Views
Close popover
Sean Salaz (SALAZONE)
PEGA
Senior System Architect, Pega Academy
Pega
US
SALAZONE Member since 2006 46 posts
PEGA
Posted: August 10, 2017
Last activity: August 11, 2017
Closed
Solved

Determine if a property is on the clipboard

I need to evaluate a property called "Content" in my activity. It exists in the following structure: Obj.PageProp.PageList().Content. The following use cases are being evaluated:

1) Content is on the clipboard and has data
2) Content is on the clipboard but doesn't have data
3) Content is not on the clipboard

If I use the following When conditions, cases 1 and 2 pass but case 3 fails:
Obj.PageProp.PageList(Local.Count).Content != ""
@Utilities.PropertyHasValue(tools, Obj.PageName.PageList(Local.Count).Content)
If I add a 3rd When condition so the entire list looks like this:
Obj.PageProp.PageList(Local.Count).Content != ""
@Utilities.PropertyHasValue(tools, Obj.PageProp.PageList(Local.Count).Content)
@Default.PropertyExists(Obj.PageProp.PageList(Local.Count).Content)
then cases 1 and 3 pass but case 2 fails.
When I say that the case fails, I don't mean a FAIL status in tracer, I mean that QA fails in that I was expecting the proper action to be taken in my activity based on the use case but that didn't happen.
What option do I have left? Do I create a custom function?
Data Integration Java and Activities
Moderation Team has archived post,
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.