1 Reply Latest reply on Feb 17, 2007 9:17 PM by Jim McCarthy


    Jim McCarthy Newbie

      I am trying to set the actorId on the JbpmContext and it looks like the only way to do this is with the DefaultAuthenticationService or the setActorId will return ClassCastException. Also, the default authentication service is null so this is not working either.

      What am I missing? How do I tell jBPM the authenticated user?

        • 1. Re: JbpmContext.setActorId
          Jim McCarthy Newbie

          Nevermind, I looked at my test code again and discovered I was creating the configuration using ParseXml call and not getInstance and the XML for the configuration did not have any services.

          Once I used getInstance it used the jbpm.cfg.xml that was in the path and created the DefaultAuthenticationService which just holds on to the actor that I was setting. This is the behavior that I was looking for.