Creating custom repository connections
Create custom connections between the Pega Platform and repositories that are not included in the Pega Platform wizards.
- Open your application.
-
Create a child class of Embed-Repository-Type for your repository type:
- Include the repository name at the end of the new class name. For example, Embed-Repository-Type-Nexus.
- Create the new class as an abstract class.
-
Override the section pyRepoConfiguration in the new class.
-
Customize the activities for your class. The following list includes activities that you might want to override:
-
pyFetchArtifact — If you need to fetch artifacts from the repository, override this activity and then update the response on the pyRepoFetchResponse page.
-
pyPublishArtifact — If you need to publish artifacts from this repository, override this activity and then update the response on the pyRepoPublishResponse page.
-
pyBrowseArtifact — If you need to browse artifacts from this repository, override this activity and then update the response on the pyRepoBrowseResponse page.
-
pyPingRepository — If you need to test the connection to this repository, override this activity and then update the response on the pyRepoPingResponse page.
-
- Extend the Code-Pega-List.pyRepoTypes data transform to add the new repository type.