AnsweredAssumed Answered

Spring Bean is not recognized for annotation based

Question asked by honor on Nov 25, 2016
Latest reply on Nov 25, 2016 by honor

we decided to make own project for Activiti Rest using Spring Boot Activiti rest dependencies. And for Activiti-Explorer we downloaded source code and using it directly from source instead merging and making a single war from activiti-rest and activiti-explorer. so if i develope custom workflows, processes or implementations for service tasks, i create maven projects or submodules and adding them direclty   as dependency( or even parent poms in order to manage common dependencies). But i really dont know whether its recommended or best practice for using Activiti Rest and Explorer.

My Problem is. i can create new workflows and referencing delegaters like following


@Scope(value = "prototype")
public class DatabaseServiceDelegate implements JavaDelegate {

    private Logger logger = LoggerFactory.getLogger(DatabaseServiceDelegate.class);

    private DBHelperService dbHelperService;

    private Expression hostname;

    private Expression port;

    public DatabaseServiceDelegate(){"Hello my friend !!!!");

    public void execute(DelegateExecution delegateExecution) throws Exception {


and its work like a charm. But Delegate bean is just recognized and created if i declare it in  "activiti-custom-context.xml" like following

    <bean id="databaseDelegateBean" class="com.vadi.designer.extension.database.handler.DatabaseServiceDelegate"/>

But unfortunately not, if i add Component annotation like above  and add package to basePackages in ComponentScan in ApplicationConfiguration class like following

@ComponentScan(basePackages = { "org.activiti.explorer.conf" , "com.designer.extension" })

Does anyone know, why it isnt working ? or am i doing wrong something ?

Thanks in Advance