cancel
Showing results for 
Search instead for 
Did you mean: 

Hook points

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");
   }

}
———————————————————————–
3 REPLIES 3

maxbaba
Champ in-the-making
Champ in-the-making
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>

vasile_dirla
Star Contributor
Star Contributor
Hi,
when you say " I do not see the log messages" you are talking about this line? 
<code>System.out.println("MyLoginListener User has logged in");</code>
if so, are you sure this line is executed? (I guess its not, otherwise you should see the message on the tomcat console.)

cijujoseph
Champ on-the-rise
Champ on-the-rise
Regarding your question on activiti-app-logic dependency, if you are an enterprise customer raise a case with alfresco to get the EE nexus repository credentials and use that in your pom to get the dependent jars.

Ciju