Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo xml

A Parser work item handler for jbpm 6

One usual task we do in a process is to have to parse XML/JSON to objects and vice versa. I always look at sample work item handlers from jbpm and I want to create my own work item handlers because it is fun. Today I will quickly show the first public useful work item handler I have created: The parser. What is and how to use it? It is a simple parser task that you can use in your BPM Suite/ jbpm 6 process to parse from XML/JSON to some Java object and vice versa. You can, for example, read XML from a file and convert to your model object. It can be used with the REST Task for previous jbpm version, since recently support to transform was added to the REST Task .  It accepts the following parameters: Input: The input data. If you provide a string, the parser will try to parse the string to an object of type Type  and format Format  (see below), if not, it will try to parse the object to a String of format Format. It is a required parameter; Forma...

Another World Cup App... Using JavaFX, FXML, Javascript, CSS

The World Cup Brazil is happening! It's exciting to see people from all over the world visiting my country! Today I decided to create another World Cup App, this time I'll use JavaFX, but I won't write any Java code . It's a simple app to visualize all the world cup matches and click on a game for details about it. I spent less than 3 hours working on the core of the application and a few more hours working on the details. Getting the resources to create the App By resources I meant images and to do this I downloaded all the flags images from Fifa site. It was a small and easy scrapping. Notice that all images are in under the following URL:  http://img.fifa.com/images/flags/4/{CODE}.png. To download all flags I used the following Python Script: import urllib2 codes = open('countries_codes.txt', 'r') for line in codes:         code = line.replace('\n', '').lower() + '.png'         img_url = 'http://img.fifa.com/ima...