AnsweredAssumed Answered

Custom identity management changed in Activiti 6.0

Question asked by abandarupalli on Jan 4, 2018
Latest reply on Jan 21, 2018 by daisuke-yoshimoto

I am trying to use custom identity management with Activiti 6.0

 

The example i user guide is not matching with the one in Activiti 6.0

 

public class MyGroupManagerFactory implements SessionFactory {

@Override

public Class<?> getSessionType() {

    return GroupIdentityManager.class;

}

@Override

public Session openSession() {

return new MyCompanyGroupManager();

}

}

 

public class UserManagerFactory implements SessionFactory{
    @Override
    public Class<?> getSessionType() {
    }

    @Override
    public Session openSession(CommandContext commandContext) {
    }
}

The CommandContext seems to be the parameter for openSession(). Anybody dealt with the discrepancy and got it working..?

Outcomes