Is it possible to expose a Decision Table as a Web Service? There are several things I cannot quite figure out, if so. The "Parameters" tab lets you define parameters, but in the Decision Table area, these parameters cannot be used as a condition value - i.e. i'd like a web service to use Input Parameters and evaluate them - not a property on Case - and return a result.
Is this possible? Or is a Decision Table always tied to a Case, and must evaluate properties on a case?
***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.
I don’t think decision tables are tied to a case. Also, to refer to the parameters in the matrix, use the syntax “param.name”. To get some basic info, go to class explorer under rule-declare-decisiontable so you can see the instance list of decision tables, bring up any one of them, and then use “?” or “actions - > help” depending on which Pega version you’re on, to see the contextual help for decision tables. /Eric
Thanks again for the reply. The decision table appears to be tied to a case in that the "conditions" portion appears to only accept case properties. I tried the "param.name" syntax initially - before posting this.
What happens then, is that any time I click in the "if"/"otherwise" area, i get a nullpointer error in Pega.
But, assuming I get past that, if I have a Decision Table with Parameters, how do I invoke that via a web service? Do i need to create an activity to run the Decision Table? If so, how do i pass the web service's incoming parameters to the activity and then on to the Decision Table? I have tried searching PDN and Mesh for an article describing this process, to no avail...
Many thanks. I've actually constructed an activity that calls the Decision Table successfully and sets the parameter with my value. However, when i run this activity through the Service Wizard, the output it generates for the web service is problematic.lnstead of my simple integer parameter being returned, I get