Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo tutorial

Importing Work Item Handlers in jBPM using a custom service repository

We previously talked about creating a custom Work Item Handler and how to import it in the jBPM designer. The process is not simple, it requires some manual steps and it is error prone - even some users had problems as you can see in the post comment's section. jBPM 6.5 comes with a great new feature that makes easier to import services. In this post I will show you how to use this new feature. A very simple Work Item Handler Remember our hello world work item handler ? Let's clone it and install it on your local maven using mvn clean install Now create a directory on your installacation called repository. It should have a file with content "HelloWorld" and a child directory called HelloWorld. Inside this directory we should have a file named HelloWorld.wid with the following content: [   [     "name" : "HelloWorld",     "description" : "Prints hello World in the console",     "displayName" : "Hello ...

Creating custom Work Item Handler in BPM Suite/jBPM 6

Hi all! In this post I am going to share my experience creating a work item handler for BPM Suite 6.0.3 (which is very similar to jbpm as explained in a previous post ). The Hello World Work Item Handler Let's create a really simple WorkItemHandler just to print "Hello World" in the console. Of course you can implement more feature and make it receive parameters, access database, web services, etc. But in this post we will keep it simple. Really simple. First thing to do is to create a maven project for my WorkItemHandler. Here's the pom.xml of my Maven project: Notice that we are importing jbpm dependency so we can find the java interface that is used to create work item handlers. Now we can start coding. Let's create a class name HelloWorkItemHandler in package org.jugvale.jbpm, here is the simple code: Now we can build our project and go to BPM Suite to configure it so we can use this workitem. Registering the WorkItemHandler UPDATE...