<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hey Mauricio, <br>
    <br>
    (<i>Sorry, <b>really</b> late reply to a rules-dev thread</i>). <br>
    <br>
    I had the impression that this wouldn't work because the
    ProcessInstanceInfo entity is always replaced when persisted. <br>
    <br>
    What am I missing? Would you midn explaining it a little more? <br>
    <br>
    Thanks!<br>
    Marco<br>
    <br>
    <br>
    21-03-12 14:25, Mauricio Salatino:
    <blockquote
cite="mid:CANzbnyUTpPTQr9L+9cVP9k=GEtoNF9a-6pphSfy5XmQ-cGjG-g@mail.gmail.com"
      type="cite">Exactly,&nbsp;
      <div>We need to define low level policies to know exactly what
        needs to be persisted in binary formats for processes.&nbsp;</div>
      <div>Instead of persisting the full object just the changes based
        on the activities that were executed.</div>
      <div><br>
      </div>
      <div>Cheers</div>
      <div><br>
        <br>
        <div class="gmail_quote">On Wed, Mar 21, 2012 at 6:22 PM, Edson
          Tirelli <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:ed.tirelli@gmail.com">ed.tirelli@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div><br>
            </div>
            &nbsp; &nbsp;Mauricio,
            <div><br>
            </div>
            <div>&nbsp; &nbsp;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.&nbsp;</div>
            <span class="HOEnZb"><font color="#888888">
                <div><br>
                </div>
              </font></span>
            <div><span class="HOEnZb"><font color="#888888">&nbsp; &nbsp;Edson</font></span>
              <div>
                <div class="h5"><br>
                  <br>
                  <div class="gmail_quote">On Wed, Mar 21, 2012 at 1:55
                    PM, Mauricio Salatino <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      @Kris, we need to look at this as soon as possible
                      to define how jBPM5 will do the serialization.
                      <div>Do you have any idea about this topic? or we
                        need to start thinking how are going to work all
                        the different approaches?</div>
                      <div>Cheers<br>
                        <br>
                        <div class="gmail_quote">
                          <div>
                            <div>On Wed, Mar 21, 2012 at 4:30 PM, Edson
                              Tirelli <span dir="ltr">&lt;<a
                                  moz-do-not-send="true"
                                  href="mailto:ed.tirelli@gmail.com"
                                  target="_blank">ed.tirelli@gmail.com</a>&gt;</span>
                              wrote:<br>
                            </div>
                          </div>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div>
                              <div>
                                <div><br>
                                </div>
                                &nbsp; &nbsp;All,
                                <div><br>
                                </div>
                                <div>&nbsp; &nbsp;As we started using Protobuf, it
                                  is important to know how you make
                                  changes to .proto files and how to
                                  compile them. Easiest way:</div>
                                <div><br>
                                </div>
                                <div>1. Download protobuf compiler
                                  from:&nbsp;<a moz-do-not-send="true"
                                    href="http://code.google.com/p/protobuf/downloads/list"
                                    target="_blank">http://code.google.com/p/protobuf/downloads/list</a></div>
                                <div><br>
                                </div>
                                <div>2. Install protobuf-dt eclipse
                                  plugin as detailed here:&nbsp;<a
                                    moz-do-not-send="true"
                                    href="http://code.google.com/p/protobuf-dt/"
                                    target="_blank">http://code.google.com/p/protobuf-dt/</a></div>
                                <div><br>
                                </div>
                                <div>3. Configure the destination
                                  directory to generate the java files
                                  as detailed in step 2 here:</div>
                                <div><br>
                                </div>
                                <div><a moz-do-not-send="true"
                                    href="http://code.google.com/p/protobuf-dt/wiki/IntegrationWithProtoc"
                                    target="_blank">http://code.google.com/p/protobuf-dt/wiki/IntegrationWithProtoc</a><br>
                                </div>
                                <div><br>
                                </div>
                                <div>Set the "Java Output Directory"
                                  to:&nbsp;src/main/java</div>
                                <div><br>
                                </div>
                                <div>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:</div>
                                <div><br>
                                </div>
                                <div><a moz-do-not-send="true"
                                    href="http://code.google.com/p/protobuf-dt/wiki/ImportPaths"
                                    target="_blank">http://code.google.com/p/protobuf-dt/wiki/ImportPaths</a></div>
                                <div><br>
                                </div>
                                <div>Add the following import paths to
                                  the jbpm-flow project:</div>
                                <div><br>
                                </div>
                                <div>${your drools-core project in
                                  eclipse}/src/main/resources</div>
                                <div>${your_drools_flow_project}/src/main/resources</div>
                                <div><br>
                                </div>
                                <div>&nbsp; &nbsp;After doing that, when you edit
                                  and save the .proto files, eclipse
                                  will automatically compile and
                                  regenerate the java source code for
                                  them.</div>
                                <span><font color="#888888">
                                    <div><br>
                                    </div>
                                    <div>&nbsp; &nbsp;Edson</div>
                                    <div>&nbsp;</div>
                                    <div>
                                      <div><br>
                                      </div>
                                      -- <br>
                                      &nbsp; Edson Tirelli<br>
                                      &nbsp; JBoss Drools Core Development<br>
                                      &nbsp; JBoss by Red Hat @ <a
                                        moz-do-not-send="true"
                                        href="http://www.jboss.com"
                                        target="_blank">www.jboss.com</a><br>
                                    </div>
                                  </font></span><br>
                              </div>
                            </div>
_______________________________________________<br>
                            rules-dev mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:rules-dev@lists.jboss.org"
                              target="_blank">rules-dev@lists.jboss.org</a><br>
                            <a moz-do-not-send="true"
                              href="https://lists.jboss.org/mailman/listinfo/rules-dev"
                              target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
                            <br>
                          </blockquote>
                        </div>
                        <span><font color="#888888"><br>
                            <br clear="all">
                            <div><br>
                            </div>
                            -- <br>
                            &nbsp;- MyJourney @ <a moz-do-not-send="true"
                              href="http://salaboy.wordpress.com"
                              target="_blank">http://salaboy.wordpress.com</a>
                            <div>&nbsp;- Co-Founder @ <a
                                moz-do-not-send="true"
                                href="http://www.jugargentina.org"
                                target="_blank">http://www.jugargentina.org</a><br>
                              &nbsp;- Co-Founder @ <a moz-do-not-send="true"
                                href="http://www.jbug.com.ar"
                                target="_blank">http://www.jbug.com.ar</a><br>
                              &nbsp;<br>
                              &nbsp;- Salatino "Salaboy" Mauricio -</div>
                            <br>
                          </font></span></div>
                      <br>
                      _______________________________________________<br>
                      rules-dev mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:rules-dev@lists.jboss.org"
                        target="_blank">rules-dev@lists.jboss.org</a><br>
                      <a moz-do-not-send="true"
                        href="https://lists.jboss.org/mailman/listinfo/rules-dev"
                        target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <div><br>
                  </div>
                  -- <br>
                  &nbsp; Edson Tirelli<br>
                  &nbsp; JBoss Drools Core Development<br>
                  &nbsp; JBoss by Red Hat @ <a moz-do-not-send="true"
                    href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            rules-dev mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/rules-dev"
              target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        &nbsp;- MyJourney @ <a moz-do-not-send="true"
          href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a>
        <div>&nbsp;- Co-Founder @ <a moz-do-not-send="true"
            href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
          &nbsp;- Co-Founder @ <a moz-do-not-send="true"
            href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
          &nbsp;<br>
          &nbsp;- Salatino "Salaboy" Mauricio -</div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
jBPM/Drools developer
Utrecht, the Netherlands</pre>
  </body>
</html>