[Fwd: [Smartfrog-checkins] SF.net SVN: smartfrog: [3468] trunk/core/smartfrog/src/org/smartfrog/sfcore /prim/prim.sf]
Steve Loughran <[email protected]> Mon, 09 Oct 2006 17:46:41 +0100
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
This should (!) not break anything. I've declared a the schema and template for a prim that can be used by stuff that is workflow-enabled (that is, it uses ComponentHelper to terminate itself if the various workflow properties are set) Indeed, to stop it breaking, the declaration is in prim.sf, rather than, say workflowprim.sf, which is something we could switch to. I've been marking up components that use the componentHelper.sfSelfDetachOrTerminate() as workflow prims where appropriate, so it will be easier to see in the files which components are so enabled, and so the schema checking will keep everything type safe. If something does break, complain to me... -steve -------- Original Message -------- Subject: [Smartfrog-checkins] SF.net SVN: smartfrog: [3468] trunk/core/smartfrog/src/org/smartfrog/sfcore /prim/prim.sf Date: Mon, 09 Oct 2006 09:19:18 -0700 From: [email protected] To: smartfrog-checkins-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Revision: 3468 http://svn.sourceforge.net/smartfrog/?rev=3468&view=rev Author: steve_l Date: 2006-10-09 09:19:15 -0700 (Mon, 09 Oct 2006) Log Message: ----------- Declare a new WorkflowPrim component. This does nothing except declare the schema types for self-terminating "workflow enabled" components, and to make things that extend it more documented as such Modified Paths: -------------- trunk/core/smartfrog/src/org/smartfrog/sfcore/prim/prim.sf Modified: trunk/core/smartfrog/src/org/smartfrog/sfcore/prim/prim.sf =================================================================== --- trunk/core/smartfrog/src/org/smartfrog/sfcore/prim/prim.sf 2006-10-09 16:15:07 UTC (rev 3467) +++ trunk/core/smartfrog/src/org/smartfrog/sfcore/prim/prim.sf 2006-10-09 16:19:15 UTC (rev 3468) @@ -66,4 +66,25 @@ UpdatablePrim extends Prim { sfUpdatable true; +} + +/** + * This is a component that can be asked to terminate itself after doing its work + * Such components fit in to workflows easily. + * Usually components that support these attributes default to not being self-terminating, + * though that may vary on a case by case basis. + */ +WorkflowPrimSchema extends Schema { + sfShouldTerminate extends OptionalBoolean { + description "true if a component should terminate after doing its 'work'"; + } + sfShouldTerminateQuietly extends OptionalBoolean { + description "true if a component should terminate quietly after doing its 'work'"; + } + sfShouldDetach extends OptionalBoolean { + description "true if a component should detach after doing its 'work'"; + } +} +WorkflowPrim extends Prim { + workflowPrimSchema extends WorkflowPrimSchema; } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Smartfrog-checkins mailing list Smartfrog-checkins-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/smartfrog-checkins ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV