Posted: 27 Jan 2016 18:08 EST Last activity: 6 Apr 2018 19:26 EDT
Calling AddContact flow from Interaction flow - issue
We have a CPM Interaction flow (Class: Org-FW-Work-Interaction-) scenario where if Insured is not found we capture insured for which we call AddContact flow (Class: Org-FW-Work-Contact) from Interaction flow. In v5.5 we used module CANewContactCreate to call AddContactFlow, where it replaces Interaction workpage with NewContact workpage and at the flow end we called CAReturntoCaller modules to come back the Interaction flow where we stopped earlier.
Now after upgrading to v7.1.9 and using Interactionportal, this flow is not working, i mean CAreturntoCaller is not returning back to Interaction flow.
When i analyzed the tracer what i see is, when AddContact flow is called, since it is replacing Interaction work flow with AddContact Work flow, Pega7 dont have reference of previous interaction opened in any standard declare pages like D_Interaction page. Now when CAReturntoCaller module is called, it is trying to search for previous Interaction and dont have any clue and ending up closing work and taking back to Home screen.
I tried to search any such implementation in OOB sample application, i dont see any, every where they are calling AddContact flow which will be of either Interaction class or it's Parent class and using same interaction pyWorkpage to drive AddContact screen.
Is there a way to achive above said scenario in Interaction Portal with very minimal change to exiting code? Please help
**Moderation Team has archived 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.
The AddContact is no more being used. It is the CPMAddContact flow that is being used when selecting the option of "Create New Contact". In order to retain the same flow as yours please "Save-As" your version of AddContact flow into the client framework layer with the CPMAddContact name.
There may be some changes that you may have to retrofit from the CPMAddContact of the CPM FW in order to set the D_Interaction data page with you Interaction details.
It would be better to minimize or remove the usage of CAReturnToCaller as you have mentioned that you are using the Interaction portal and start using the D_Interation page. There are utilities that get called in the beginning of the flow which sets this page, thus making it easier.