This Groovy script is called from an Expression Rule of type Location. For example, in an Expression rule
ExecuteCustomObject("SendTweetWithLocation","user","password","Asset is on the move")
calls the script "SendTweetWithLocation" with the parameters in order. The twitterStatus is the text to send to twitter. Use the user/password for an actual twitter account. Also, the script uses the implicit objectscontext and mobileLocation.
Variable Name Display Name twitterUser twitterUser twitterPassword twitterPassword twitterStatus twitterStatus