Pages

Friday, December 18, 2015

Trailhead - Build a Battle Station App

How does one go about building a moon sized death star? That's a lot people and supplies to keep track of for a project with a budget over 1,000,000,000,000 galactic credits. Putting together a system to help manage the build is going to be a major project in and of itself. Or is it?

How to track all the required supplies. Tractor beams, ultra fast hydraulic units for the doors. Don't forget the light bulbs and toilet paper. Handling the guard rail shortage will be left as an exercise to the readers.

Get a quick summary of how many people are actually working on the project.

Use Lightning Process Builder and Chatter to announce when you've got a fully armed and operational death star!

Make the ParkLocator class with the static country method to call the generated class.

In ParkLocatorTest duplicate one of the assertions to also call the ParkLocator.country method to give the required coverage.

Add the remote site setting for the callout URL.

Run the generated ParkLocatorTest test case.

Smugly pass the challenge test

OK, maybe not so smugly. There are more steps above than I care for, but most of those are to satisfy the ceremony of the challenge with regards to naming etc... There is also something odd about this WSDL the is throwing off the generated apex_schema_type_info members and requires the elementFormDefault="qualified" boolean (second to last one) to be manually changed from 'true' to 'false'.

Still, show me the same level of initial setup from a REST API in Apex and I'd be impressed.