Currently our Script adapter includes jython-2.5.3.jar, which is the core language without any of the supporting "Python" libraries. Without these libraries, very few standard Python scripts will run, and only Java libraries can be imported for use in a script.
There is an alternative standalone Jython jar which includes the libraries and can be directly swapped out in the adapter -- it's possible to do this manually at the moment. As an example, the following (very basic) code does not work with the 20.14.01 Script Adapter:
import random charList = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!#." generatedPassword = "" for _ in range(int(passLength)): num = random.randint(0, len(charList)) generatedPassword = generatedPassword + charList[num:num+1]
By switching to the standalone version of Jython, the script now works and opens up the ability to use many standard Python/Jython scripts inside BAO workflows.
The standalone jar is built automatically from the standard Jython 2.5.3 installer by selecting the "Standalone" option during install.