Pular para o conteúdo principal

Postagens

Mostrando postagens de julho, 2015

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