Advertisement
Advertisement

More Related Content

Similar to Alfresco Embedded Activiti Engine(20)

More from Angel Borroy López(20)

Advertisement

Alfresco Embedded Activiti Engine

  1. Alfresco Embedded Activiti Engine ALFRESCO 7.3 ©2023 Hy land Sof tware, Inc. and its af f iliates. All rights reserv ed. All Hy land product names are registered or unregistered trademarks of Hy land Sof tware, Inc. or its af f iliates in the United States and other countries.
  2. 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)
  3. 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
  4. NAMING CONVENTIONS Alfresco Repository Variables Definitions Deployment Processes Workflows xml Values Task Activity Items addon BPMN
  5. DEPLOYMENT Alfresco Addon https://ecmarchitect.com/alfresco-developer-series- tutorials/workflow/tutorial/tutorial.html Register available in the Spring Bean workflowBootstrap location=alfresco/workflow/review-pooled.bpmn20.xml Upload XML file to Repository > Data Dictionary > Workflow Definitions • Check property Workflow Deployed • location=/app:company_home/app:dictionary/app:workflow_defs/cm:hello-world.xml addon xml
  6. 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
  7. WORKFLOW ADMIN CONSOLE show file alfresco/workflow/adhoc.bpmn20.xml <?xml version="1.0" encoding="UTF-8" ?> <definitions> <process isExecutable="true" id="activitiAdhoc" name="Adhoc Activiti Process"> <startEvent id="start" activiti:formKey="wf:submitAdhocTask" /> <sequenceFlow id='flow1' sourceRef='start' targetRef='adhocTask’ /> <userTask id="adhocTask" name="Adhoc Task" activiti:formKey="wf:adhocTask"> <humanPerformer>${bpm_assignee.properties.userName}</humanPerformer> </userTask> </process> </definitions>
  8. REST API V1 • Get definition diagram http://localhost:8080/alfresco/api/-default-/public/workflow/versions/1/process- definitions/activitiAdhoc:1:3/image
  9. REST API V0 • Get workflow diagram http://localhost:8080/alfresco/s/api/workflow-instances/activiti$28/diagram
Advertisement