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

8 lines
245 B
JavaScript
Raw Permalink Normal View History

2022-06-15 20:37:10 +00:00
/* 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");