JBoss Community

Re: invalid package name

created by stellina_rosa in jBPM - View the full discussion

I understand where is a problem: I have a rule like this:

 

rule "is the admin"

  ruleflow-group "control"

  when

       $process: WorkflowProcessInstance()

       $u: User(usern == "rosa")

  then

        System.out.println("Welcome Admin");

 

end

 

 

the problem is the $process: WorkflowProcessInstance(), because if I try to cancel it, the project works; if I wanted to compare a variable that an external usern gives me (and that I store in a variable of the process) with an Object User that I store in the session (like a little db... with ksession.insert(new User()).... how can I do? I thought that the only way to take variable from process was with "$process: WorkflowProcessInstance()"

Reply to this message by going to Community

Start a new discussion in jBPM at Community