cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Workflows

gilmore_tj
Champ in-the-making
Champ in-the-making
I have been trying to get Activiti-based workflows working without success. I have created simple User-task based workflows using Eclipse (LUNA) with the Activiti plug-in. In CE4.2.f they fail to deploy, in CE5.0.a they fail to start. I have tried numerous on-line examples but none of them have worked for me.
Can anyone direct me to an example they have used themselves to get workflows working in CE4.2.f or CE5.0.a

8 REPLIES 8

douglascrp
World-Class Innovator
World-Class Innovator
These are the tutorials I always recomend for everyone trying to learn activiti

http://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html
http://jmuras.com/blog/2012/creation-of-workflow-in-alfresco-using-activiti-step-by-step/

If you have already read them, let us know the problems you are facing with.

Error messages from your log files can help you to get more help.

Can you direct me to where I will find Log messages. I know about Catalina logs but they contain nothing of use.

douglascrp
World-Class Innovator
World-Class Innovator
In order to see your log messages printed on catalina.out you have to add this configuration on alfresco's log4j.properties file.

log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug

Probably that property is already inside that file, so you just have to change its level to debug

gilmore_tj
Champ in-the-making
Champ in-the-making
After extracting one of the OOTB Activiti workflows and renaming it, I am now able to deploy and execute a workflow in CE4.2 and CE5.0.a. However, the example I used was the Adhoc workflow which does very little. When I change the workflow using Eclipse by including a Alfresco Script task that includes a log command it loads but fails to run.

What I am after is an Activity workflow (for 5.0.a or 4.2.f) that calls a web service, passing a reference to a file to which the workflow is attached; such that the service can access the file and read its content.

Alternatively invoke a script that opens the files, reads three properties and sends them to a web service.

douglascrp
World-Class Innovator
World-Class Innovator
I think you can get the answers for your questions on the book Activiti in Action (http://www.manning.com/rademakers2/)

Chapter 11. Integrating services with a BPMN 2.0 process
11.1 Invoking services from a BPMN 2.0 process
Activiti provides a flexible and extendable API to implement custom logic in BPMN
processes, for example, by implementing a Java service task or an event listener. You
can use plain Java to code your logic, or you can leverage the wide set of functionality
offered by the Spring framework and use expressions or delegate expressions in a service
task. This paves the way to also implement integration logic to invoke external
services or applications from a BPMN process.

maulikjajal
Champ in-the-making
Champ in-the-making
Can not make customize workflow in CE 5.0c from this tutorial.
Is there any other way to do this ????

maulikjajal
Champ in-the-making
Champ in-the-making
Here i got the solution for custom workflow with custom form..


http://stackoverflow.com/questions/19645321/alfresco-workflow-share-form

maxbaba
Champ in-the-making
Champ in-the-making
Hi - I have the following code in a jar file under lib folder of tomcat that hosts activiti-app.war (Alfresco 1.3)

When I login into Alfresco Activiti, I do not see the log messages (I could/should have used log4j logger or something else ).

This is what the documentation says on Hook Points:A hook point is a place where you can add custom logic. You do this by writing a class implementing a specific interface and putting that class on the classpath, where it can be found by the classpath component scanning package, com.activiti.extension.bean.

Please help.

——————————————————————————
package com.activiti.extension.bean;

import org.springframework.stereotype.Component;

import com.vaadin.ui.LoginForm.LoginEvent;
import com.vaadin.ui.LoginForm.LoginListener;

@Component
public class MyLoginListener implements LoginListener {

/**
*
*/
private static final long serialVersionUID = 4329802742677178360L;
/**
*
*/
@Override
public void onLogin(LoginEvent event) {
// TODO Auto-generated method stub

System.out.println("MyLoginListener User has logged in");
}

}
———————————————————————–
Here is my pom dependency entry:

<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-explorer</artifactId>
<version>5.14</version>
</dependency>

The one given in docs is as follows, I could not find it in maven:

<dependencies>
<dependency>
<groupId>com.activiti</groupId>
<artifactId>activiti-app-logic</artifactId>
<version>${suite.version}</version>
</dependency>
</dependencies>