I have the following questions related to Pega API.
A)Pre activity and post activity are configured in a flow action, we want to make one Pega API REST service call to call Pre-Activity and another Pega API service call to perform flow action(UI submission and calling post activity) . We see POST method call in Pega API "Assignments" takes Assignment ID and Flow Action name as input and it does Perform FlowAction and executes Post Activity. Is there any suitable Pega API REST service OOTB using which we can make call to Pre-activity of the Flow Action and get the pages populated in that pre activity as part of REST repose in JSON format.
B) My pre-activity of flow action creates "pages parallel to pyWorkPage" and populates data into the pages, how can I send these "pages parallel to pyWorkPage" as response of Pega API REST service call. Also in Pega API POST Assignments service request I want to pass data to "pages parallel to pyWorkPage". Using Pega API for REST services how can we send data to these "page parallel to pyWorkPage" as REST request and after processing send these "pages parallel to pyWorkPage" as REST response.
***Updated by Moderator: Vidyaranjan. Removed user added Ask the Expert tag. Apologies for confusion, shouldn't have been an end-user option***
For Use Case # 1 -
This forces us to have a separate code for the users accessing the application directly by logging into the app, and the external users accessing the app through services? What's the best way to handle this scenario?
Shouldn't there be an API OOB which accepts "Processing Type" as an input parameter with values as "Pre", "Post" for processing the Flow Actions?
For Use Case # 2 -
In the real world scenarios, you would defnitely hold data on multiple Pages i.e. Pages parallel to pyWorkPage for separating the transaction data from the Workflow data. What's the best way t handle this scenario?
Is writing a separate REST Service for each of the Flow Action only way to expose the flows? Why isn't there a Wizard to do this?
Posted: 6 years ago
Posted: 6 Sep 2016 10:58 EDT
Sudheer Cherukuri (SudheerC)
Praneeth, is there any way to customize Pega API response for example I want to execute a flow action using POST method in "ASSIGNMENTS" Pega API or POST method in "CASES" Pega API and I want to return customized reponse. Is there any way to do that using OOTB functionality. Thanks.
Do you have any plans to address the above scenarios in future Pega PRPC releases. I have one more question. We want to expose any Pega activity(dozens of activities) as a RESTful Web Service,is there any Generic API using which we can expose any Pega activity as RESTful web service.
Posted: 5 years ago
Posted: 16 Feb 2017 14:38 EST
Srinivasan T (Infosrini)
Lead System Architect
It is observed that the validation rule on the Flow Action is successfully getting executed however the PEGA API services are not able to fetch the Validation messages returned by the flow action. Do we have any option to get the validation messages returned by the Flow Action through the PEGA OOTB Assignment/Post or Cases/PUT methods?