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


@Qualifier
@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER,METHOD,TYPE})
public @interface ProcessInstanceId

Qualifier annotation for injecting the id of the current process instance.

Example:

 @Inject @ProcessInstanceId String pid;
 

Note that the ProcessInstance is also available for injection:

 @Inject ProcessInstance pi;
 

Author:
Daniel Meyer



Copyright © 2017 camunda services GmbH. All rights reserved.