Posted: 30 Aug 2017 5:20 EDT Last activity: 6 Sep 2017 9:14 EDT
Call "place holder" activity from HTTP service
Hi everyone !
In our project, we have two different applications (DDP and GRM) build on the same application framework TDD. We need to create one HTTP service and one connector in TDD application that will be used for exchanging data between these two applications (GRM and DDP).The same HTTP service must be used for responding to GRM requests and DDP’s ones because transferred XML messages have the same format.
Currently, our solution is to use one service in TDD application :
If the service needs immediate access to GRM activities, then the service’s package’s access group must point to GRM application
If the service needs immediate access to DDP activities, then the service’s package’s access group must point to DDP application
In my scenario, an HTTP service is provided in TDD application to execute a GRM activity (ServiceAppelInteractionDemande) by receiving the xml payload.I created a service activity (ServiceAppelInteractionDemande) at TDD application with the same name and which contain no steps (place holder activity).And I made sur that the service’s package’s access group point to GRM application.
After many tests, it appears that the HTTP service call the “place holder” activity declared on TDD instead of the GRM’s one.
How can I call the right activity? Is there a better solution for our issue?
ServiceAppelInteractionDemande at TDD application , In this you need to have a page-new and the class must be set to the appropriate impl layer class using a property eg ClassName . As u r using different access grps via service package you can create a data transform in each of u r application ruleset ie in GRM and DPP ruleset( applies to FW class) which sets the appropriate class name in ClassName property.(To compile u need to create DT with same name in the FW layer as well.) .
Maybe simpler way is to figure out which access grp is being passed to service and simply use when condition to set the right class in the service activity or maybe include some i/p parameter as part of req which tells indicates which appln class to be used.
Now using this newly created page as step page you need to call the ServiceAppelInteractionDemande. Then the right impl layer activity will be picked up.