Start Workflow on Server Side

This is an old revision of the document!

If you want to start a specific Workflow on server-side in an action of your life-cycle object, it's straight forward. Simply use the workflow access object and call one method:

WorkflowAccess wfa = WorkflowAccess.getCurrentInstance();
Obejct id = wfa.startWorkflow(worfklowNameOrId);

But be careful, if you run above code outside the life-cycle scope, because


tries to access the workflow access object from the current SessionContext.

If you don't run inside the life-cycle scope, use

WorkflowAccess wfa = new WorkflowAccess();


This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information