Designing Workflow with Kaleo
Liferay Portal includes a workflow engine called Kaleo. Kaleo allows portal administrators to set up workflows for their organization’s needs; the workflow calls users to participate in processes designed for them. Kaleo workflows, called process definitions, are essentially XML documents. Kaleo supports a host of XML element types to trigger decisive actions in your business process instances. You can fine-tune your process definition’s logic by incorporating scripts and templates.
The Kaleo Forms EE app from Marketplace includes Liferay’s Kaleo Workflow Designer that lets you create and modify portal workflows in your browser. With Kaleo Designer for Java, you can design and publish Kaleo workflows from Liferay Developer Studio!
Figure 8.1: Kaleo Designer for Java gives you a powerful environment for designing, modifying, and publishing Kaleo workflows.
With Kaleo Designer for Java, you can remotely add and update workflow definitions directly to and from your Liferay server. You can publish your workflow drafts to your portal by simply dragging the workflow file onto your portal server in Developer Studio’s Servers tab. The Servers tab shows workflows you’ve published from studio and gives you access to workflows already published on the portal server. You can edit existing workflows and create custom business logic in Developer Studio locally, then republish them on your portal; you don’t have to navigate back and forth from your portal and Developer Studio to complete these tasks. As you can see, Kaleo Designer for Java is a powerful application for creating, modifying, and publishing workflows in Liferay Developer Studio.
Although Kaleo Designer for Java is the tool of choice for EE workflow designers, CE workflow designers can write Kaleo workflows too. But they are limited to writing them in their favorite XML editor. All Kaleo process definitions must follow the schema http://www.liferay.com/dtd/liferay-workflow-definition_6_2_0.xsd. As we show you how to design workflows, we’ll include their resulting XML code for your convenience.
We’ll cover the following topics as we design workflows:
- Installing Kaleo Designer for Java
- Creating a Workflow
- Using Workflow Scripts
- Leveraging Template Editors for Notifications
- Viewing Workflow Definition XML Source
- Publishing Workflows to the Server
- Using Workflows in Liferay Portal
- Using Dynamic Data Lists (DDLs) with Workflows