AnsweredAssumed Answered

How to query database for candidateUsers

Question asked by ykphuah on Nov 19, 2015
Latest reply on Nov 19, 2015 by ykphuah
I need to dynamically query the list of candidateUsers/candidateGroups from database. Can this be done?

I tried the following:

package com.mastersam.adama.server.activiti.delegate;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class CandidateGroupDelegate {
    private Logger logger = LoggerFactory

    public String getGroup() {
        return "requester";

Then I have this in my activiti-context.xml

   <property name="beans">
            <entry key="candidateGroupDelegate" value-ref="candidateGroupDelegate" />

<bean id="candidateGroupDelegate"

After which I set in the candidateUsers property of the Process




both doesn't work, it doesn't call my function.

I tried searching and it doesn't seems like the candidateUsers and candidateGroups parameter supports spring expression, is that right?

Any other ways to accomplish what I want?