<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Gabor, finally found some time to
      work on this. Should be done in the next day or so and will post a
      video here first for review and comments before making it public
      (committing).<br>
      <br>
      I'd like for you to send me some text about yourself that I can
      put on the blog when writing about this new feature - just
      anything you would want readers to know about you. If you could
      send me that this week I'd really appreciate it.<br>
      <br>
      Thanks.<br>
      On 10/25/12 4:55 PM, G&aacute;bor Farkas wrote:<br>
    </div>
    <blockquote
cite="mid:CAOGHXeq2toJjxYT5CS7wQm-CCMEr5V9vAvwscm3H_XhOgUWMMg@mail.gmail.com"
      type="cite">Hi,
      <div>So, I cleaned it up a bit and put some comments.</div>
      <div>I guess it's not nice to attach files on a public mailing
        list, so I uploaded a package here:</div>
      <div><a moz-do-not-send="true"
          href="https://docs.google.com/open?id=0B3W14YRqXKCZc0RVSjlPWklka2s">https://docs.google.com/open?id=0B3W14YRqXKCZc0RVSjlPWklka2s</a></div>
      <div><br>
      </div>
      <div>If you unzip the folder somewhere, the editor.html can be
        loaded statically from the file. I have this folder so that I
        can test some changes faster, without actually starting the
        editor.</div>
      <div>To install it in the actual editor, you have to put the
        localhistory.js on the web root (next to editor.html), and add
        this fragment to the editor.html (right after &nbsp;div
        class='processdata' for example, in the body element)</div>
      <div>
        <div><br>
        </div>
        <div>&nbsp; &nbsp; &lt;div id='lsDiv' title='LocalHistory for teh LuLz'
          style='position:fixed;top:0px;left:0px;z-index:10000; width:
          20px; height: 20px'&gt;</div>
        <div>&nbsp; &nbsp; &lt;/div&gt;</div>
        <div>&nbsp; &nbsp; &lt;div id='lhContainerDiv'
style='position:fixed;top:32px;left:0px;z-index:10000;width:800px;height:512px;overflow:auto;visibility:hidden'&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;div id='gridDiv'/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;span id='lhClearButton'/&gt;</div>
        <div>&nbsp; &nbsp; &lt;/div&gt;</div>
        <div>&nbsp; &nbsp; &lt;script src="/designer/localhistory.js"
          type="text/javascript"&gt;</div>
        <div>&nbsp; &nbsp; &lt;/script&gt;</div>
        <div>
          <br>
        </div>
        This will put that transparent white box on the top left corner
        of the editor frame. This 'solution' will be replaced by
        properly registering localhistory as a plugin of course :)</div>
      <div><br>
      </div>
      <div>
        There are some TODO-s and questions in the localhistory.js .</div>
      <div><br>
      </div>
      <div>Feedback is welcome :) I'll go on cleaning this up so that
        this can integrate nicely to the editor.</div>
      <div><br>
      </div>
      <div>cheers,</div>
      <div>Gabor</div>
      <div><br>
        <div class="gmail_quote">On Thu, Oct 25, 2012 at 9:20 PM, G&aacute;bor
          Farkas <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:gabor.farkas@doctusoft.com" target="_blank">gabor.farkas@doctusoft.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,
            <div>Thanks for the ping, yes, I'd still like to contribute,
              it's just that the company had some other priorities these
              weeks, but i'll find some time to clean things up a bit.</div>
            <div>There are some questions still:</div>
            <div>
              <ul>
                <li><i>accessing</i>: I didn't yet scan the source to
                  check how to put an icon in the toolbar to display the
                  local history panel. I guess the best approach will be
                  to make this localhistory thing a plugin, so I can
                  start by taking the servicerepo plugin as an example.
                  For the prototype, I modified the editor.html and
                  added a transparent div, and the panel shows up by
                  clicking on that.</li>
                <li><i>when to create an entry</i>: currently I check
                  the json source of the model every 10 seconds, and if
                  it's changed, I create an entry. Maybe this should be
                  extended by somehow grouping these entries. For
                  example, if the user keeps editing actively for two
                  minutes, I keep only one entry, updating that entry
                  every 10 seconds. But if the editing period is longer
                  than two minutes for example, I keep one entry for
                  each two minutes block. If the user edits for 30
                  seconds, then waits two minutes, then edits again, two
                  entries will be created again. Something like this
                  might be useful to keep the history reasonably small,
                  but still quite useful and real-time.</li>
                <li><i>when entries expire</i>: entries don't yet
                  expire, so the local storage can get full after some
                  time. You can delete all entries at once. I think we
                  should add the possibility to delete entries
                  individually, and to configure that after a specific
                  time, entries are autmatically deleted. Or maybe, for
                  entries older than one hour, we keep entries only in 5
                  minutes granularity, after two hours, every 1 hours,
                  and one entry for each day older than 24 hours. Or
                  maybe this is unnecessary for our scope ...</li>
              </ul>
              <div>What do you think the best way would be to share the
                prototype with you? Well, maybe just emailing the files
                will be enough for now.</div>
            </div>
            <div>I'll try to clean up the source tonight and send you an
              initial version, so that you can take a look and try.</div>
            <div><br>
            </div>
            <div>Thanks</div>
            <div>Gabor</div>
            <div class="HOEnZb">
              <div class="h5">
                <div><br>
                  <div class="gmail_quote">On Thu, Oct 25, 2012 at 3:01
                    PM, Tihomir Surdilovic <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:tsurdilo@redhat.com"
                        target="_blank">tsurdilo@redhat.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 bgcolor="#FFFFFF" text="#000000">
                        <div>Hi Gabor, are you still wanting to
                          contribute your work? Just checking in case
                          you are waiting on anything from me in order
                          to start. <br>
                          <br>
                          Thanks.
                          <div>
                            <div><br>
                              On 10/3/12 11:32 AM, Tihomir Surdilovic
                              wrote:<br>
                            </div>
                          </div>
                        </div>
                        <div>
                          <div>
                            <blockquote type="cite"> Forwarding to
                              jbpm-dev list as users list is not being
                              monitored.<br>
                              <div><br>
                                <br>
                                -------- Original Message --------
                                <table border="0" cellpadding="0"
                                  cellspacing="0">
                                  <tbody>
                                    <tr>
                                      <th align="RIGHT" nowrap="nowrap"
                                        valign="BASELINE">Subject: </th>
                                      <td>Re: [jbpm-users] local history
                                        for the jbpm web editor</td>
                                    </tr>
                                    <tr>
                                      <th align="RIGHT" nowrap="nowrap"
                                        valign="BASELINE">Date: </th>
                                      <td>Wed, 03 Oct 2012 11:23:34
                                        -0400</td>
                                    </tr>
                                    <tr>
                                      <th align="RIGHT" nowrap="nowrap"
                                        valign="BASELINE">From: </th>
                                      <td>Tihomir Surdilovic <a
                                          moz-do-not-send="true"
                                          href="mailto:tsurdilo@redhat.com"
                                          target="_blank">&lt;tsurdilo@redhat.com&gt;</a></td>
                                    </tr>
                                    <tr>
                                      <th align="RIGHT" nowrap="nowrap"
                                        valign="BASELINE">To: </th>
                                      <td>G&aacute;bor Farkas <a
                                          moz-do-not-send="true"
                                          href="mailto:gabor.farkas@doctusoft.com"
                                          target="_blank">&lt;gabor.farkas@doctusoft.com&gt;</a></td>
                                    </tr>
                                    <tr>
                                      <th align="RIGHT" nowrap="nowrap"
                                        valign="BASELINE">CC: </th>
                                      <td><a moz-do-not-send="true"
                                          href="mailto:jbpm-users@lists.jboss.org"
                                          target="_blank">jbpm-users@lists.jboss.org</a></td>
                                    </tr>
                                  </tbody>
                                </table>
                                <br>
                                <br>
                                <div>Hi Gabor - that looks impressive
                                  and useful for the community. I'd be
                                  happy to work with you to incorporate
                                  this functionality into the Designer
                                  codebase and promote you as community
                                  contributor for jBPM. Let's chat on
                                  IRC (#jbpm or #jbpmdev on <a
                                    moz-do-not-send="true"
                                    href="http://irc.freenode.net"
                                    target="_blank">irc.freenode.net</a>).
                                  <br>
                                  <br>
                                  Tihomir<br>
                                  <br>
                                  On 10/3/12 10:42 AM, G&aacute;bor Farkas
                                  wrote:<br>
                                </div>
                                <blockquote type="cite">Hello,
                                  <div>We've created a prototype for a
                                    local history functionality for the
                                    jbpm-designer, we needed it for
                                    multiple reasons. It stores data in
                                    the browser localStorage, so it also
                                    serves a bit like 'undo after save'.
                                    It checks the json representation of
                                    the process every minute and if it
                                    differs, it creates a new local
                                    history entry, including a
                                    thumbnailed screenshot. It's
                                    available after browser restart too,
                                    so if you accidentally close the
                                    browser, you can still restore your
                                    work.</div>
                                  <div>Here's a small screenshot.</div>
                                  <div><a moz-do-not-send="true"
                                      href="https://docs.google.com/open?id=0Bxw7L2kmpno8RkJUY3Zjd0I4Mlk"
                                      target="_blank">https://docs.google.com/open?id=0Bxw7L2kmpno8RkJUY3Zjd0I4Mlk</a></div>
                                  <div><br>
                                  </div>
                                  <div>Needs quite much elaboration, but
                                    it's already functional and useful
                                    for our needs.</div>
                                  <div>If you find it interesting, we'd
                                    be happy to share it with the
                                    community.</div>
                                  <div><br>
                                  </div>
                                  <div>regards,</div>
                                  <div>Gabor Farkas</div>
                                  <br>
                                  <fieldset></fieldset>
                                  <br>
                                  <pre>_______________________________________________
jbpm-users mailing list
<a moz-do-not-send="true" href="mailto:jbpm-users@lists.jboss.org" target="_blank">jbpm-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/jbpm-users" target="_blank">https://lists.jboss.org/mailman/listinfo/jbpm-users</a>
</pre>
                                </blockquote>
                                <br>
                                <br>
                                <br>
                              </div>
                              <br>
                            </blockquote>
                            <br>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>