Using the Activiti API
In the previous example, the logic was easily handled by either expressions or JavaScript within the business process. However, there may be cases when Activiti actions are better implemented in Java. For example, there might be an API readily available in Java that isn't available in JavaScript. Or suppose you want to manipulate workflows from outside a business process. Maybe you want to complete tasks, add items to a workflow, or start a workflow from an action, a web script, or a custom dialog. You can use the Activiti Java services or the Alfresco Workflow Service. In our case, we'll use the first option.
The next example gives you a chance to try out both of these scenarios. In one, you're going to write a custom Activti ...
Get Alfresco One 5.x Developer's Guide - second edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.