The web blog http://www.learnsccd.com strives to be a comprehensive guide to SCCD, TADDM, SERVICE NOW and MAXIMO tools. This is a personal site maintained solely by me. I intend to update it regularly.For live updates please follow us on.

Starting Workflows from an Automation Script

Starting Workflows from an Automation Script


Here's an example of calling a Workflow from an Automation Script.

Good

# Call TESTWF Workflow
mxs = MXServer.getMXServer()
wfsr = mxs.lookup('WORKFLOW')
wfsr.initiateWorkflow('TESTWF ',mbo)

Best Way


wfs = MXServer.getMXServer().lookup("WORKFLOW")


wfs.initiateWorkflow('TESTWF', mbo)