Annotation Interface ProcessVariable

@Qualifier @Retention(RUNTIME) @Documented public @interface ProcessVariable
Annotation for qualifying injection points such that process variables are injected. Requires a process instance to be managed
  • @Inject @ProcessVariable Object accountNumber
  • @Inject @ProcessVariable("accountNumber") Object account
In both cases, the process variable with the name 'accountNumber' is injected. NOTE: injection points must be of type 'object'.

Can also be used to declare bean-properties to hold process variables in combination with the StartProcess annotation:

 String accountNumber;  // will be added as a process 
                        // variable to the 'billingProcess'
 public void startBillingProcess() {
Daniel Meyer
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    The name of the process variable to look up.
  • Element Details

    • value

      String value
      The name of the process variable to look up. Defaults to the name of the annotated field or parameter