05-13-2016 09:38 AM
TemplateVariableProcessor
could not be implemented. This is because the of the import com.activiti.api.docgen.TemplateVariableProcessor
. The com.activiti.api
package could not be resolved!
…
<dependency>
<groupId>com.activiti</groupId>
<artifactId>activiti-app-logic</artifactId>
<version>1.4.1</version>
</dependency>
…
${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 com.activiti
on https://maven.alfresco.com/nexus. Only org.activiti
is available. But if I use "org" instead "com" it doesn't work either. For org.activiti
I've also tried the version 6.0.0.Beta2 (http://mvnrepository.com/artifact/org.activiti/activiti-app-logic).
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;
@Component
public class CustomTemplateProcessor implements TemplateVariableProcessor {
private static final Logger logger = Logger.getLogger(CustomTemplateProcessor.class);
public Object process(DelegateExecution execution, String variableName, Object value) {
logger.info("processing <"+variableName+"> with value <"+value+">");
return value.toString() + "___" + "HELLO_WORLD";
}
}
05-31-2016 03:22 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.