How To
Introduction to Swimlane Programming
background building security solutions in swimlane consists of defining applications to store your data and present it to users optionally defining the application's workflow to both make each application record more interactive automate tasks revolving around the record (enriching the record, sending external notifications, etc ) adding swimlane provided plugins (see here and here) to enrich records or integrate with external systems writing custom scripts to enrich and integrate in novel ways this article offers an introduction to custom scripting with swimlane internal scripts two types of scripts can be authored to execute inside of swimlane python and powershell like swimlane plugins, these scripts can be invoked by task triggers of various sorts workflow actions of type trigger integration they can interact with the swimlane platform via the following task api see swimlane documentationās task api resource see the support portalās task api article rest api see swimlane documentationās rest api resource see the support portalās rest api and driver article powershell scripts are limited because the task api doesn't support them as fully as it does for python, and because they must interact with the restful api without the aid of any swimlane provided library on the other hand, python scripts have more robust support for the task api, and they can leverage the swimlane driver (a python library that makes it easier to write swimlane restful api client code) both types of scripts are defined within swimlane's integrations page click ānew taskā to begin creating a python script task or a powershell script task external scripts these scripts execute outside of swimlane in any computing context that has tcp/ip connectivity to the targeted swimlane deployment any programming language that supports https transmissions can be used to write swimlane client code however, python has the advantage because of the availability of the swimlane driver to expedite implementation with clean, well crafted abstractions helpful resources in addition to the links above, please see the following api docs within the swimlane platform conclusion when authoring python scripts for the swimlane platform follow these guidelines when authoring scripts that will run outside of the platform, use the swimlane driver whenever possible and fall back on the unwrapped rest api when necessary when authoring scripts that will run inside of the platform, use the task api first, and then fall back on the driver and/or rest api when necessary enjoy creating security solutions in swimlane!