8. Introduction to Functions25. Exercise Summary

25 - Exercise Summary

This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.

Solution

What you built

  • An Ontology edit function that implements business logic to apply a voucher based on passenger flyer status and a user-supplied variable.
  • A Function-backed Action and a button to trigger it in your Workshop module.
  • A pie chart that depicts the status property of each passenger linked to the active flight alert.
  • An event that opens your Linked Passenger drawer when your Action is successful.

What you learned

  • When you want your Function to change the data in the Ontology (as opposed to ephemeral, presentation-level changes), you’ll need to use the @OntologyEditFunction() decorator.
  • If your Code Assist is running, you can mouse over unregistered types and automatically import them by clicking on the adjacent 💡 icon.

These two documentation pages will deepen your understanding of Function-backed actions and ontology edit Functions. Take a moment to read through them.