Annotation Interface UserProvider


@Target(TYPE) @Retention(RUNTIME) @Component public @interface UserProvider
Indicates that an annotated class is a "userProvider". Such classes are used to find an appropriate UserDetails as assignee for userTask and should return it username. Calculated username will be set as value of flowable:assignee attribute for userTask.

Annotated class can contain one or more methods with arbitrary number of parameters and String return type:

   String getDefaultUser() {
       return "anonymous";
   }

   String getUserByEmail(String email) {
       UserDetails user = ...;
       return user.getUsername();
   }
 
Declared methods will be available in modeler with a possibility to pass into them actual parameters, include process variables.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Short explanation of searching algorithm to find appropriate UserDetails.
     
  • Element Details

    • description

      String description
      Short explanation of searching algorithm to find appropriate UserDetails.
      Default:
      ""
    • value

      @AliasFor(annotation=org.springframework.stereotype.Component.class) String value
      Default:
      ""