AnsweredAssumed Answered

Hook point for document generation: TemplateVariableProcessor could not be resolved

Question asked by mario.fliegner on May 13, 2016
Latest reply on May 31, 2016 by mario.fliegner
Hi there,

I'm trying to manipulate some form values before generating a PDF with the Alfresco Activiti Suite 1.4.1 "document generation task". I'm using the latest documentation:
Unfortunately, I can't compile the Java class example because the
could not be implemented. This is because the of the import
. The
package could not be resolved!
As mentioned in the documentation above, my POM contains the following:


Maybe at this point I make already a mistake? Because even based on the documentation I can build against a particular suite version
. I assume it's the Alfresco Activiti Suite version, right? So I'm using the latest one which is 1.4.1. But this version could not be resolved. Another strange thing is, that I can't find the package
on Only
is available. But if I use "org" instead "com" it doesn't work either. For
I've also tried the version 6.0.0.Beta2 (

How do I get the example working?
I appreciate any advice!


For completeness my Java code:

package com.activiti.extension.bean;
import org.activiti.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Component;
import org.apache.log4j.Logger;
import com.activiti.api.docgen.TemplateVariableProcessor;

public class CustomTemplateProcessor implements TemplateVariableProcessor {
    private static final Logger logger = Logger.getLogger(CustomTemplateProcessor.class);
    public Object process(DelegateExecution execution, String variableName, Object value) {"processing <"+variableName+"> with value <"+value+">");
        return value.toString() + "___" + "HELLO_WORLD";