vrealize/Orchestrator/Workflows/Generate Unique Hostname/Tasks/x01_exception_handler.js

8 lines
No EOL
245 B
JavaScript

/* JavaScript: exception handler
Log the exception and release the lock.
Inputs: none
Outputs: none
*/
System.error("Workflow execution failed!");
System.debug("Releasing lock...");
LockingSystem.unlock("namingLock", "eventBroker");