[rules-dev] How to work with Protobuf (.proto) files

Mauricio Salatino salaboy at gmail.com
Wed Mar 21 14:25:23 EDT 2012


Exactly,
We need to define low level policies to know exactly what needs to be
persisted in binary formats for processes.
Instead of persisting the full object just the changes based on the
activities that were executed.

Cheers


On Wed, Mar 21, 2012 at 6:22 PM, Edson Tirelli <ed.tirelli at gmail.com> wrote:

>
>    Mauricio,
>
>    Just to clarify, the change from the previous approach to this approach
> with Protobuf is a low level change that should not affect existing
> features... I mean, it changes the binary format, but not the higher level
> APIs/use cases.
>
>    Edson
>
>
> On Wed, Mar 21, 2012 at 1:55 PM, Mauricio Salatino <salaboy at gmail.com>wrote:
>
>> @Kris, we need to look at this as soon as possible to define how jBPM5
>> will do the serialization.
>> Do you have any idea about this topic? or we need to start thinking how
>> are going to work all the different approaches?
>> Cheers
>>
>> On Wed, Mar 21, 2012 at 4:30 PM, Edson Tirelli <ed.tirelli at gmail.com>wrote:
>>
>>>
>>>    All,
>>>
>>>    As we started using Protobuf, it is important to know how you make
>>> changes to .proto files and how to compile them. Easiest way:
>>>
>>> 1. Download protobuf compiler from:
>>> http://code.google.com/p/protobuf/downloads/list
>>>
>>> 2. Install protobuf-dt eclipse plugin as detailed here:
>>> http://code.google.com/p/protobuf-dt/
>>>
>>> 3. Configure the destination directory to generate the java files as
>>> detailed in step 2 here:
>>>
>>> http://code.google.com/p/protobuf-dt/wiki/IntegrationWithProtoc
>>>
>>> Set the "Java Output Directory" to: src/main/java
>>>
>>> 4. VERY IMPORTANT FOR JBPM: jBPM Flow project has a .proto file that
>>> extends the data types defined in the .proto file in Drools Core, so you
>>> need to configure the protobuf import path as detailed here:
>>>
>>> http://code.google.com/p/protobuf-dt/wiki/ImportPaths
>>>
>>> Add the following import paths to the jbpm-flow project:
>>>
>>> ${your drools-core project in eclipse}/src/main/resources
>>> ${your_drools_flow_project}/src/main/resources
>>>
>>>    After doing that, when you edit and save the .proto files, eclipse
>>> will automatically compile and regenerate the java source code for them.
>>>
>>>    Edson
>>>
>>>
>>> --
>>>   Edson Tirelli
>>>   JBoss Drools Core Development
>>>   JBoss by Red Hat @ www.jboss.com
>>>
>>> _______________________________________________
>>> rules-dev mailing list
>>> rules-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>>
>>>
>>
>>
>> --
>>  - MyJourney @ http://salaboy.wordpress.com
>>  - Co-Founder @ http://www.jugargentina.org
>>  - Co-Founder @ http://www.jbug.com.ar
>>
>>  - Salatino "Salaboy" Mauricio -
>>
>>
>> _______________________________________________
>> rules-dev mailing list
>> rules-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>
>>
>
>
> --
>   Edson Tirelli
>   JBoss Drools Core Development
>   JBoss by Red Hat @ www.jboss.com
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>


-- 
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20120321/9c8097f3/attachment-0001.html 


More information about the rules-dev mailing list