I wish to customise the Pega to interact with our internal system, by calling the API.
This is what we have implemented:
1) Output campaign data into OFFER Table in the database
2) An agent pick up the records in OFFER table in the database and call the API to insert records, and then update the status back.
In the agent, it is done in a piece of java code in (2) above, i) creating the database connection, ii) retrieve the records to be push, iii) update the status back to the table.
I am wondering, can I break down the codes and make use of the Pega steps so that the maintenance will be easier?