This presentation describes how to use the BPM Engine included with Alfresco ACS repository.
All the different APIs are covered: Workflow Console UI, REST API and Java API.
ALFRESCO BPM
Alfresco Embedded Activiti Engine - ACS
• Provided with Alfresco Repository service
• UI integrated with Alfresco Share
• Available for Community and Enterprise
• Activiti Explorer (only available in Enterprise) has been removed from ACS 7.3
Alfresco Process Services - APS
• Available as additional product (requires licensing)
Alfresco Process Automation - APA
• Available only as PaaS (requires licensing)
ACS WORKFLOW RESOURCES
• Java API
https://docs.alfresco.com/content-services/latest/develop/reference/java-
foundation-ref/#workflowservice
• Workflow Admin Console
http://localhost:8080/alfresco/s/admin/admin-workflowconsole
• REST API v0
http://localhost:8080/alfresco/s/index/package/org/alfresco/repository/workflow
• REST API v1
• http://localhost:8080/api-explorer/?urls.primaryName=Workflow%20API
JAVA API
JavaScript Console (by Order of the Bee)
var context =
Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();
var workflowBootstrap = context.getBean('workflowBootstrap',
Packages.org.alfresco.repo.workflow.WorkflowDeployer);
logger.log(workflowBootstrap.getWorkflowDefinitions());
redeploy=false,
location=alfresco/workflow/adhoc.bpmn20.xml,
mimetype=text/xml,
engineId=activiti
REST API V1
• Get definition diagram
http://localhost:8080/alfresco/api/-default-/public/workflow/versions/1/process-
definitions/activitiAdhoc:1:3/image
REST API V0
• Get workflow diagram
http://localhost:8080/alfresco/s/api/workflow-instances/activiti$28/diagram