Category Archives: CDI

Integration :: CDI :: User-Task-CDI-JSF Example

  Environment Wildfly 10.1.0.Final jBPM 7.1.0.Final Process   userTask-CDI-JSF structure   Launch standalone.bat -c standalone-full.xml http://localhost:8080/userTask-cdi-jsf/index.xhtml   Download userTask-cdi-jsf.zip  

Posted in CDI, Integration with JEE, jBPM | Leave a comment

Integration :: CDI :: Script-Task-CDI-JSF Example

  Environment Wildfly 10.1.0.Final jBPM 7.1.0.Final Process KJAR See source code: script-task-cdi-jsf-kjar script-task-cdi-jsf Project Structure InitializerBean.java @ApplicationScoped @BootOnLoad public class InitializerBean { public static final String KJAR_ID = “blog.zciok.bpm:script-task-cdi-jsf-kjar:1.0”; @Inject @Kjar DeploymentService deploymentService; @PostConstruct public void init() { String[] gav … Continue reading

Posted in CDI, Integration with JEE, jBPM | 3 Comments

Integration :: CDI Eager Extension

  Application-scoped bean to instantiate at application startup.   CDI does not provide eager extensions out of the box. Fortunately, you can get it working without much trouble. 1. Write the @Eager annotation: @Qualifier @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.FIELD, ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER … Continue reading

Posted in CDI, Integration with JEE, jBPM | Leave a comment