Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo hello world

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 ...

Wildfly 10 Javascript Hello World in 2 minutes

We already talked about Nashorn, JavaFX and Javascript in this blog, but today I was surprised by the announcement that Widlfly 10 supports Javascript in the server side. I should have seen before, but only after a few months it was released I saw it on twitter ! After seeing the announcements samples , I thought I had to try it and surprisingly it took less than a few minutes to have my first script running. Here are the steps I had to follow: (I am considering you already have Java 8 installed) * Download Widlfly 10: I downloaded Widlfly 10.0.0.CR4 Application Server Distribution. See more in widlfly downloads page; $ wget http://download.jboss.org/wildfly/10.0.0.CR4/wildfly-10.0.0.CR4.zip Unzip it somewhere locally:  $ unzip wildfly-10.0.0.CR4.zip Start it "quietly": $ cd wildfly-10.0.0.CR4 & ./bin/standalone.sh > /dev/null & Create the application structure in the deployments directory $ mkdir -p standalone/deployments...