Return-Path: X-Original-To: apmail-oodt-dev-archive@www.apache.org Delivered-To: apmail-oodt-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B4982D751 for ; Thu, 8 Nov 2012 18:53:57 +0000 (UTC) Received: (qmail 26421 invoked by uid 500); 8 Nov 2012 18:53:57 -0000 Delivered-To: apmail-oodt-dev-archive@oodt.apache.org Received: (qmail 26393 invoked by uid 500); 8 Nov 2012 18:53:57 -0000 Mailing-List: contact dev-help@oodt.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oodt.apache.org Delivered-To: mailing list dev@oodt.apache.org Received: (qmail 26378 invoked by uid 99); 8 Nov 2012 18:53:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2012 18:53:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brbarkstrom@gmail.com designates 209.85.219.43 as permitted sender) Received: from [209.85.219.43] (HELO mail-oa0-f43.google.com) (209.85.219.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2012 18:53:50 +0000 Received: by mail-oa0-f43.google.com with SMTP id k1so4050454oag.16 for ; Thu, 08 Nov 2012 10:53:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/aZEQ+f1+DYHMWQ5qMlypIg2AoEzf5uKYTTccon+ZX8=; b=l0tpThYxh/qMqRn8ebDUlGsGOt1ggfCwXCRKpZlM3DRZJLhi3YhaIX9rvqzIB0JPDN gQQ812ULmm12regsjveJkYzqJgIzzVwIyoexjyghNdyKLYwK4YRjs7ctVRfh/r8gaue0 4kwQUd5gGA32ncGQlsvbZTZOM98hPjvWvwmUB5T3YSR5DyUGZV4XwfjaC5RjOSYS0lSi kg04uJWrr8mce3hxU/U5FGvICoL3z6KiO53VyLC2iLfrmtmN/MfoDgeYWfmBWFZshRHA x14GpvEV5k1VyN+MSRtmQYzApOYa1+a3Ewxb6Ho+71kTohSJVG16E1xxk2I2xvWZeDhg ftSg== MIME-Version: 1.0 Received: by 10.60.11.67 with SMTP id o3mr5976786oeb.43.1352400810212; Thu, 08 Nov 2012 10:53:30 -0800 (PST) Received: by 10.76.85.135 with HTTP; Thu, 8 Nov 2012 10:53:30 -0800 (PST) In-Reply-To: <9ECD1EC8-6282-47B4-BFB7-4EBA4E2E55FB@gmail.com> References: <603BE2EF-F263-4FFA-9A95-E33229E92CC8@me.com> <9ECD1EC8-6282-47B4-BFB7-4EBA4E2E55FB@gmail.com> Date: Thu, 8 Nov 2012 13:53:30 -0500 Message-ID: Subject: Re: Workflow Task/Condition Instances... From: Bruce Barkstrom To: dev@oodt.apache.org Content-Type: multipart/alternative; boundary=e89a8fb2066ee2fc2d04ce005961 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb2066ee2fc2d04ce005961 Content-Type: text/plain; charset=ISO-8859-1 You might consider building the graph in advance and use it for planning purposes. Bruce B. On Thu, Nov 8, 2012 at 4:01 AM, Chris A Mattmann wrote: > Hey Brian, > > That sounds Perfect! I like the idea of simply creating a RunnableInstance > and think it fits the architecture well! > +50 to proceed down that path. > > Cheers, > Chris > > On Nov 8, 2012, at 3:16 PM, Brian Foster wrote: > > > > > hey chris, > > > > I think i work this out... i'm gonna create a RunnableInstance class... > this will then hold the state, start/end times, type (TASK or CONDITION), > and the class to run (WorkflowTaskInstance or WorkflowConditionInstance). > > > > -brian > > > > On Nov 7, 2012, at 3:05 PM, Brian Foster wrote: > > > >> hey chris, > >> > >> so i'm going through this WorkflowProcessor stuff and finishing it > up... I'm trying to make it so that WorkflowProcessor is used by all > Workflow Engines... WorkflowInstance holds the state, times, etc.. for a > Workflow, and then a WorkflowProcessor is response for analyzing that > WorkflowInstance and determining what to run next in the Workflow... in > this process i've notices that we really don't have any > "WorkflowInstance-like" class for Tasks and Conditions... A > WorkflowTaskInstance is actually the runnable task/condition job... I know > this would be a big structural change, but i think WorkflowTaskInstance and > WorkflowConditionInstance should be similar to WorkflowInstance (it should > hold the state, times, etc... for a task/condition)... then possibly > introduce a WorkflowTaskExecutable and WorkflowConditionExecutable > interface, or something like that, which CAS-PGE and all other runnable > tasks would implement instead... then i've already created a version of > WorkflowInstance which would hold the WorkflowTaskInstances and > WorkflowConditionInstance for it's task, preConds, and postConds... this > way when one loads a WorkflowInstance they would have access to all the > state, times, etc.. of everything in that workflow... this makes is very > easy to create a WorkflowProcessor which then is stateless and when given a > WorkflowInstance can easy determine what is the next thing to run or what > state the workflow is in... this new design i working toward also ditches > the whole WorkflowProcessorListener interface stuff, which i never liked in > the first place, but just never came up with something better. > >> > >> -brian > > > > --e89a8fb2066ee2fc2d04ce005961--