cancel
Showing results for 
Search instead for 
Did you mean: 

which maven dependency will use to create alfresco workflow using java? i want jar using that i can create alfresco work flow.

piyush17291
Champ in-the-making
Champ in-the-making

I am using spring MVC  using that i want to create alfresco workflow. i am unable to file find API. please answer

2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator

It isn't exactly clear what you are trying to do. If you are using Spring MVC that means you have your own web application separate from Alfresco. If you want to embed a process engine inside your own web application, you might want to use Actviti, in which case you might be interested in this post about Activiti and Spring Boot or, if you are not using Spring Boot and you just want to pull in the Activiti dependency, then take a look at the Activiti docs for the maven dependency details.

On the other hand, maybe you want to create a workflow that runs inside of the Activiti engine that is embedded within Alfresco. If that is the case you might be interested in this tutorial that describes how to model a workflow and deploy it to Alfresco.

Once deployed to Alfresco, you can use the Alfresco UI to manage tasks for running workflows. But if you need to work with Alfresco workflows remotely from your Spring MVC app, you could use the Alfresco REST API. The Alfresco docs describe how to do that.

afaust
Legendary Innovator
Legendary Innovator

Can you be a bit more specific: Do you want to create a workflow that runs within Alfresco ECM (Community / Enterprise Edition) or within Alfresco BPM (Alfresco Activiti server)?

If it is the former, I don't know what you are using Spring MVC for because that is typically not relevant within the Alfresco ECM Repository-tier (where workflows are being implemented / executed).

If you are developing workflows for Alfresco ECM, then the base dependency you require is org.alfresco:alfresco-repository, i.e.

<dependency>

  <groupId>org.alfresco</groupId>

  <artifactId>alfresco-repository</artifactId>

  <version>5.1.g</version>

</dependency>