Pular para o conteúdo principal

Postagens

Mostrando postagens de abril, 2016

A jBPM 6 JPA Work Item Handler implementation

When we work with jBPM, we can already invoke REST and SOAP Web Services, send email without the need of writing a single line of Java code. You can simply drag and drop a component and configure it to perform the action. Using the REST Task from jBPM 6 Behind a component (tasks), we have a Work Item Handler(WIH): Creating custom Work Item Handler in BPM Suite/jBPM 6 A Parser work item handler for jbpm 6 In this post I will briefly talk about a work item handler I recently created to perform JPA(Java Persistence API) operations. Persistence and jBPM The jBPM process runs on a transaction. Once it reaches a safe point (start a subprocess, human task, timer and others), the transaction is commited. If we do operations that requires a transaction, it is important to these operations to be part of the running jBPM transaction. To persist process variables, we can use a  JPAPlaceholderResolverStrategy  and the process variables will be also persisted as part of the ...