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:
@ProcessVariable
String accountNumber; // will be added as a process
// variable to the 'billingProcess'
@StartProcess("billingProcess")
public void startBillingProcess() {
...
}