org.camunda.bpm.engine.cdi.annotation
Annotation Type ProcessVariable


@Qualifier
@Retention(value=RUNTIME)
@Documented
public @interface ProcessVariable

Annotation for qualifying injection points such that process variables are injected. Requires a process instance to be managed

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:

 @ProcessVariable 
 String accountNumber;  // will be added as a process 
                        // variable to the 'billingProcess'
 
 @StartProcess("billingProcess")
 public void startBillingProcess() {
  ...
 } 
 

Author:
Daniel Meyer

Optional Element Summary
 String value
          The name of the process variable to look up.
 

value

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

Default:
""


Copyright © 2017 camunda services GmbH. All rights reserved.