Monthly Archives: September 2017

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

Integration :: EJB :: User-Task-EJB-Servlet :: custom UserGroupCallback with mem properties file Example

  Environment Wildfly 10.1.0.Final jBPM 7.1.0.Final   userTask-ejb-servlet-mem structure   CustomMemUserGroupCallback.java public class CustomMemUserGroupCallback implements UserGroupCallback { private String separator; private Map<String, List<String>> groupStore = new HashMap<String, List<String>>(); private Set<String> allgroups = new HashSet<String>(); private String location = “classpath:/usergroups-mem.properties”; public … Continue reading

Posted in EJB, Integration with JEE, jBPM | Tagged | Leave a comment

Integration :: EJB :: User-Task-EJB-Servlet Example

  Environment Wildfly 10.1.0.Final jBPM 7.1.0.Final Process KJAR Deploy this in your local maven repository. Class UserTaskData.java is used for communication between User Task and Servlet. public class UserTaskData { private String reason; private String performance; private static final UserTaskData … Continue reading

Posted in EJB, Integration with JEE, jBPM | Tagged | Leave a comment

Core Engine :: KieBase :: KJAR Maven Deployment Units

  jBPM provides deployment mechanism that is based entirely on Maven artifacts. These artifacts known as kjars are jar files that include a descriptor for KIE system to provide KieBase and KieSession. A KIE project or module is a Maven … Continue reading

Posted in Core Engine, jBPM, KieBase | Leave a comment