FeelingElephants’s Weblog

18 November, 2007

How to Find Information Fast (2 of 3 How Tos)

Filed under: open source, politics-tech, workflow — Webmonarch @ 6:06 pm

I often find myself researching something I know nothing about. And I usually don’t have much time to find out what I need to know. I have a fairly simple process through which I find out information which I thought was a pretty weird way to do it, until I asked a friend with similiar research needs and found out he did it the same way. Go figure. Anyhoo, here is my process.

Define what you need to know

This can be done with the simple question: what do I need to do to get where I want to go.

Get a good webpage on it

I and about 50/50 on wikipedia. I usually need a great deal more depths and more instructions than wikipedia will give me.

Look up *every single term* which you don’t know

Many will be hyperlinked out, just click on the hyper link. Don’t feel a need to read the content at the end of the link unless that terms comes up multiple times.

Keep records

It could be an NeoOffice Spreadsheet, a bookmark list, heck, an index card. But find a dynamic way to keeping track of where you’ve been. I like the spread sheet because I can put a link, a description of the webpage that links takes me to and a brief reason why I care about that web page.

Keep learning

If you realize 3/4s of the way through a project you have no idea how you got there, go back to your first good web page and your resource list and refresh yourself. Odds are you’ll find you understand a great deal more about the subject than when you started.

Here’s an example using the process outlined above.

Define what you need to know

I need to get mail functionality on my jbpm workflow.

Get a good webpage on it

The official jbpm user guide gives basics and code.

Look up *every single term* which you don’t know

However it does not give me nearly enough information. Having narrowed what I want to an email sent off by an AAction as part of a State Node, I put the following code into my Process Definition (the actual nodes names have been changed for their own protection. My nodes are too young to have a web presence :-D ):

Then I tried running my code to see if anything different happened. Ok, I knew it wouldn’t work, but I wanted to see if it would.

<end-state name=”Sucess”>
<event type=”node-enter”>
<action name=”Bake Muffins”>
<name-mail to=’MyEmailAddress’ subject=’urgent’ text=’Put in the Muffins’ />
</action>
</event>
</end-state>

It didn’t do anything.

Going back and reading the User doc more carefully I found the following statement:

“16.7. Mail server

If you need a mailserver that is easy to install, checkout JBossMail Server or Apache James

Ok, so I need a mailserver. Apache has some of the nicest intro docs I have seen in a long time. I fell a little bit in love.

But before I went and set up a mail server, I wanted to make sure I could make my workflow communicate in some way. Therefore I put in the code (again, the anonymity of my nodes are protected by false identities):

<state name=”Baking Muffins”>
<action name=”OpenOvenDoor” class=”com.OpenOvenDoor”>
<message>Don’t Touch Hot Oven!</message>
</action>
<transition to=”Run Ingest”></transition>
</state>

com.OpenOvenDoor reads:

package com;

import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

public class OpenOvenDoor implements ActionHandler {

private static final long serialVersionUID = 1L;

String message;

public void execute(ExecutionContext context) throws Exception {
context.getContextInstance().setVariable(“Don’t Touch Hot Oven!”, message);
}
}

Now this code worked. It is definitely not the most elegant way I could have done this (Don’t Touch Hot Oven shows up in two places–I will need to figure out which one actually is forcing the display of that message) but I did figure out that I could make my jbpm run java.

Keep records

I have a spreadsheet I keep updated with every website I have found which was relevant to my jbpm searchings. I go back through it sometimes when I’m stuck to see if there’s a resource I’m neglecting. It is a very nice way to keep organized.

Keep learning

Now I just have to figure out how to set up a mailserver. It should be fun! When I get it to work I’ll post. This would be me learning. :-D

Inspirational Quote:

“Gravitation cannot be held responsible for people falling in love.” Albert Einstein

12 October, 2007

I have conquered Unix!

Filed under: open source, workflow — Webmonarch @ 9:46 pm

Ok, not Unix as a whole, but command line with shell scripts, yes, I have conquered it. For months I was sketched out by a tiny bit of code which presented itself as a text document in my jbpm download.

#!/bin/sh
cd bin
./run.sh -c jbpm

I had no flashing idea what that was about. I didn’t really know about command line or unix commands. Like a lot of relative n00bs I talked to my computer (Amelia is her name) mostly through her GUI. Now, she’s a beautiful Mac, so we rarely have miscommunication issues though I rarely talk to her directly. But today, I figured it out! I must admit the process started a month or more ago when my stepdad worked through the commands with me over the phone (thank you so much!) but it took Computing at Carnegie Mellon for me to really get command line. There is something to be said about a class which is so low level all of the student know almost all of the material already. But for C@CM one of the few topics which was not obsequiously boring was Unix commands. Here are the online notes which I used. In class we moved from directory to directory, changed access rights, fiddled with file location and silly stuff like that. But it taught me what it was supposed to: the principal behind command line.

Horray for some redeeming social value!

And once I got those commands, I could run jBPM on Amelia, I created processes, deployed them, successfully manipulated them through the web interface, downloaded other people’s processes and played with them–so small a thing made so much difficult.

Anyhoo, have a great night!

Inspirational Quote:

Indecision may or may not be my problem.
- Jimmy Buffett

6 August, 2007

Accolades for StubHub

Filed under: open source, workflow — Webmonarch @ 11:07 pm

Recently I purchased tickets for Projekt Revolution through StubHub. They came on top of my search for affordable tickets because they were well-organized online and were truthfully the cheapest tickets I could find (when you’re at Shoreline the view is good from anywhere [esp when 'anywhere' gets you out of ear-drum bursting sound]). So I order the tickets about a month in advance and get ready to wait. In that month I must have received 1/2 a dozen brief emails, all of which included my ticket price, my seat placement and the current status of my order.

This is all very comforting, but when it gets to be a week and less before the concert I need the tickets in hand to feel secure. I receive an email telling me the distributor has not sent out the tickets yet and they will arrive the Thursday before the concert (which is on a Sunday). I get home from work Thursday:

No Tickets.

Now, I am feeling generous and refusing to freak out until they don’t arrive Friday. I mean, maybe there was some huge influx of late order HP books and the tickets got shuffled in the mix. Just as I’m starting to worry more (about 11am Friday) I receive a cell phone call. It’s StubHub, with a live human on the phone asking me a little concernedly if I received my tickets. I replied I had not. She said they were making the distributor do some research into where my tickets were, she read my confirmation number to me over the phone and said I would get a call soon. She also gave me a phone number to call if I had any more questions. Throughout the interaction I had the distinct impression that a) they cared about my little two ticket order enough to be calling me up to check in b) they were well organized.

About half an hour later I get a phone call. She is having my tickets overnight fed exed to me and she gives me a tracking number so I can follow them all the way to my front door. She double checked I had all my numbers and reiterated that I should call them if the tickets had not arrived by 11am and they would figure something out.

It was so relieving to be taken care of by customer service–and by a bargain ticket site!

I came away with such a sense of furious organization that I didn’t feel a need to check in on my tickets as they traveled to my front door. And do you know what? They arrived. And the concert was good.

30 July, 2007

Blog at WordPress.com.