Deploying a Workflow in alfresco content service

cancel
Showing results for 
Search instead for 
Did you mean: 
laitver10
Active Member

Deploying a Workflow in alfresco content service

Jump to solution

Hii,i'm new in alfresco i'm using docker deployment of Alfresco content service i'm trying to deploy a custom workflow in ACS using workflow console in admin console.can some one guide me in which container i put our workflow so that i can deploy workflow from admin console.

1 Solution

Accepted Solutions
kaynezhang
Advanced

Re: Deploying a Workflow in alfresco content service

Jump to solution

You should place your volumes mapping under alfresco services ,not shareQQ图片20201204140914.png

and pease place your workflow definition files under ./bpmnworkflow/classes/alfresco/extension folder and make sure the user you are using to run alfresco docker has read permission to folder ./bpmnworkflow/classes/alfresco/extension
In alfresco workflow admin console execute deploy activiti alfresco/extension/your workflow file

View solution in original post

9 Replies
kaynezhang
Advanced

Re: Deploying a Workflow in alfresco content service

Jump to solution

About how to deploy workflow through alfresco workflow console please refer to https://flex-solution.com/page/blog/deploy-alfresco-wokflow

laitver10
Active Member

Re: Deploying a Workflow in alfresco content service

Jump to solution

Thanks For Quik reply.I also following this blog for deploying workflow in alfrrsco content service but i'm not able to find where i can put my workflow.here is my docker container,in which container i can place our bpmn workflow so that it show in alfresco workflow console.ThanksCapture.PNG

 

kaynezhang
Advanced

Re: Deploying a Workflow in alfresco content service

Jump to solution

In your docker compose file try to map tomcat/shared folder in alfresco service container out using volume mapping,like folowing
Then you can place your definition file in your local path

volumes:
- /your local path :/usr/local/tomcat/shared

laitver10
Active Member

Re: Deploying a Workflow in alfresco content service

Jump to solution

Hii, @kaynezhang when i tried to map volume in service container i'm getting some error like this...

Capture.PNG

kaynezhang
Advanced

Re: Deploying a Workflow in alfresco content service

Jump to solution

Please paste your docker-compose.yml file here.

laitver10
Active Member

Re: Deploying a Workflow in alfresco content service

Jump to solution

Here is my docker-compose file.

 

# This docker-compose file will spin up an ACS cluster on a local host or on a server and it requires a minimum of 12GB Memory to distribute among containers.
# Limit container memory and assign X percentage to JVM. There are couple of ways to allocate JVM Memory for ACS Containers
# For example: 'JAVA_OPTS: "$JAVA_OPTS -XX:+PrintFlagsFinal -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"'
# See Oracle docs (https://docs.oracle.com/javase/9/gctuning/parallel-collector1.htm#JSGCT-GUID-CAB83393-3438-44ED-98F0...).
# If the container memory is not explicitly set then the flags above will set the max heap default to 1/4 of the container's memory, which may not be ideal.
# For performance tuning, assign the container memory and give a percentage of it to the JVM.

# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose
version: "2"

services:
alfresco:
image: alfresco/alfresco-content-repository-community:6.2.0-ga
mem_limit: 1500m
environment:
JAVA_OPTS: "
-Ddb.driver=org.postgresql.Driver
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.url=jdbcSmiley Tongueostgresql://postgres:5432/alfresco
-Dsolr.host=solr6
-Dsolr.port=8983
-Dsolr.secureComms=none
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dshare.host=127.0.0.1
-Dshare.port=8080
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
-Dmessaging.broker.url=\"failoverSmiley Sadnio://activemq:61616)?timeout=3000&jms.useCompression=true\"
-Ddeployment.method=DOCKER_COMPOSE

-Dlocal.transform.service.enabled=true
-DlocalTransform.pdfrenderer.url=http://alfresco-pdf-renderer:8090/
-DlocalTransform.imagemagick.url=http://imagemagick:8090/
-DlocalTransform.libreoffice.url=http://libreoffice:8090/
-DlocalTransform.tika.url=http://tika:8090/
-DlocalTransform.misc.url=http://transform-misc:8090/

-Dlegacy.transform.service.enabled=true
-Dalfresco-pdf-renderer.url=http://alfresco-pdf-renderer:8090/
-Djodconverter.url=http://libreoffice:8090/
-Dimg.url=http://imagemagick:8090/
-Dtika.url=http://tika:8090/
-Dtransform.misc.url=http://transform-misc:8090/

-Dcsrf.filter.enabled=false
-Xms1500m -Xmx1500m
"

alfresco-pdf-renderer:
image: alfresco/alfresco-pdf-renderer:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8090:8090

imagemagick:
image: alfresco/alfresco-imagemagick:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8091:8090

libreoffice:
image: alfresco/alfresco-libreoffice:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8092:8090

tika:
image: alfresco/alfresco-tika:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8093:8090

transform-misc:
image: alfresco/alfresco-transform-misc:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8094:8090

share:
image: alfresco/alfresco-share:6.2.0
mem_limit: 1g
environment:
REPO_HOST: "alfresco"
REPO_PORT: "8080"
JAVA_OPTS: "
-Xms500m
-Xmx500m
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Dalfresco.context=alfresco
-Dalfresco.protocol=http
"
volumes:
- ./bpmnworkflow:/usr/local/tomcat/shared
postgres:
image: postgres:11.4
mem_limit: 512m
environment:
- POSTGRES_PASSWORD=alfresco
- POSTGRES_USER=alfresco
- POSTGRES_DB=alfresco
command: postgres -c max_connections=300 -c log_min_messages=LOG
ports:
- 5432:5432

solr6:
image: alfresco/alfresco-search-services:1.4.0
mem_limit: 2g
environment:
#Solr needs to know how to register itself with Alfresco
- SOLR_ALFRESCO_HOST=alfresco
- SOLR_ALFRESCO_PORT=8080
#Alfresco needs to know how to call solr
- SOLR_SOLR_HOST=solr6
- SOLR_SOLR_PORT=8983
#Create the default alfresco and archive cores
- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
#HTTP by default
- ALFRESCO_SECURE_COMMS=none
- "SOLR_JAVA_MEM=-Xms2g -Xmx2g"
ports:
- 8083:8983 #Browser port

activemq:
image: alfresco/alfresco-activemq:5.15.8
mem_limit: 1g
ports:
- 8161:8161 # Web Console
- 5672:5672 # AMQP
- 61616:61616 # OpenWire
- 61613:61613 # STOMP

proxy:
image: alfresco/acs-community-ngnix:1.0.0
mem_limit: 128m
depends_on:
- alfresco
ports:
- 8080:8080
links:
- alfresco
- share

laitver10
Active Member

Re: Deploying a Workflow in alfresco content service

Jump to solution

I'm putting all my workflow's in ./bpmnworkflow directory.

kaynezhang
Advanced

Re: Deploying a Workflow in alfresco content service

Jump to solution

You should place your volumes mapping under alfresco services ,not shareQQ图片20201204140914.png

and pease place your workflow definition files under ./bpmnworkflow/classes/alfresco/extension folder and make sure the user you are using to run alfresco docker has read permission to folder ./bpmnworkflow/classes/alfresco/extension
In alfresco workflow admin console execute deploy activiti alfresco/extension/your workflow file

laitver10
Active Member

Re: Deploying a Workflow in alfresco content service

Jump to solution

Thanks @kaynezhang  for help.