How to call atomsphere API object ATOM to check for the status of the atom and send the status of atom for environments other than production environment ?
I have created a process that tests online status depending on environment TEST or PROD
There is a DPP TESTorPROD which is used in the first API which performs a QUERY for all environments with either the TEST or PROD classification. The response will be a document for each environment with that classification and will look like this
<?xml version="1.0" encoding="UTF-8"?><Environment xmlns="http://api.platform.boomi.com/" xmlns:bns="http://api.platform.boomi.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" classification="PROD" id="abcd93ef-c07d-4d5c-b869-7cfa8afe458f" name="PRODUCTION" xsi:type="bns:Environment"/>
The environment ID is use as a query parameter in the next API call which responds with all atom ID attached to the environment
<?xml version="1.0" encoding="UTF-8"?><EnvironmentAtomAttachment xmlns="http://api.platform.boomi.com/" xmlns:bns="http://api.platform.boomi.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" atomId="abcd81cb-4017-4973-8e77-c929f0946861" environmentId="abcd93ef-c07d-4d5c-b869-7cfa8afe458f" id="RU5WX0NPTlRfQVRUQUNIZTc1YjgxY2ItNDAxNy00OTczLThlNzctYzkyOWYwOTQ2ODYxOjg4OTI5M2VmLWMwN2QtNGQ1Yy1iODY5LTdjZmE4YWZlNDU4Zg" xsi:type="bns:EnvironmentAtomAttachment"/>
Each AtomId is then used as a query parameter in a following decision shape to find the status of each atom
Finally I combine the oflline responses and send an email to several recepients.
Hope it helps.
Good stuff Leif.
Another approach would be to query the Event object by eventType=atom.status and handle different statuses/environments/classifications. You can filter the query by any of those fields as well.
Retrieving data ...