Logger Object Model Reference
Overriding Default Error Handling
Testing Your Workflow Script
Workflow Trigger Considerations