HI,
This relevance language is all new to me and It’s slow going for as I read some of the documentation so please bare with me. I’ve did some research but could not find how to return an action ID by using the name of the action in the query or if that is even possible? Maybe something similar to this?
bes action id of whose name of it = “testpackage”
I know you experts must be cringing, sorry.
Thanks,
So I did a little more digging into the relevance docs and tested the following in the presentation debugger that yielded some results:
search for single action:
id of bes action whose (name of it contains “testActon”)
search for multiple actions:
ids of bes actions whose (name of it contains “testActon”)
(Wish I could use the relevance session tester or excel connector but unfortunately I work in an environment that is screwed down tight.
Is there a way to add to this query of a singular action to return the most recent action ID if the action name has multiple actions?
id of bes action whose (name of it contains “testActon”)
Regards,
Tony
1 Like
You can always use the QNA tool in WebReports to test your session relevance statements. Simply change the “page” designation in the URL bar to “QNA” and you’ll get a screen like the the following:
An example of what that URL would look like is:
https://webreports_hostname:port_number/webreports?page=QNA
Hope this helps.
The Web Reports service has a hidden QNA page that works similar to the Fixlet Debugger, but evaluates Session Relevance that may be useful for testing.
https://WEBREPORTSHOST.DOMAIN/webreports?page=QNA
The way I would approach this is to build a set of all of the bes actions matching your name, then expand it out and find the one action with the latest “time issued”
q: (id of it, name of it, time issued of it) of items 0 of (elements of it, it) whose (time issued of item 0 of it = maximum of times issued of elements of item 1 of it) of set of bes actions whose (name of it contains "testAction")
(As always in Relevance, there’s more than one way to do it but this performed reasonably well in my Web Reports)
2 Likes
Thanks cmcannady!, I’ll give it a try.
HI Jason,
I’ve tested this in the presentation debugger and it worked great!
Please tell me what do you use to write queries like this? Will Relevance Session Tester and or the excel connector help a lot with this? Although I cannot use the tools in my work environment maybe I will setup a BigFIx lab on my personal computer for testing purposes?
Thanks!
I actually just did that in the Web Reports QNA page. I don’t have the Session Relevance Tester or the Excel connector configured.
The idea for building a “set” of the actions and then expanding it to find the one I want comes from prior posts from @jgstew and @brolly33 on writing efficient relevance, and retrieving the properties list for “bes action” uses the Introspectors (i.e. Q: properties of type "bes action"
)
2 Likes
OK thanks again! I’ll take a look at jgstew and brolly33’s posts.
Hi Jason,
I found this bes action property "Issuer of " from the online documentation but for some reason it does not work when I add “issuer of it” to the following query and test it in the presentation debugger?
(id of it, time issued of it, issuer of it) of items 0 of (elements of it, it) whose (time issued of item 0 of it = maximum of times issued of elements of item 1 of it) of set of bes actions whose (name of it contains “TestTask”)
The presentation debugger returns “Error: The operator “issuer” is not defined.”
What am I doing wrong?
Thanks,
Not sure…‘bes user’ is a complex type so you may need to retrieve name of issuer of it
but I’d expect a different error message.
BAM!, that was it! Man you are good!
Thanks again!
Oh, odd. I would’ve thought it would give the error
E: The operator "string" is not defined.
…which means that the object you’re retrieving does not have a default “string” value type that can be displayed.