Results 1 to 3 of 3

Thread: Flow artifact naming

  1. #1
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default Flow artifact naming

    Do you guys find the current names of the definition objects straightforward when compared to the flow execution objects?

    e.g. Flow, State, Transition, are all DEFINITION objects, singletons.

    FlowExecution, FlowSession are EXECUTION objects.

    Currently the definition objects are referenced from client code (views, etc.) like _flowId and _currentStateId. The execution object is referenced _flowExecutionId.

    Do you guys find this clear? Would you prefer to see _flowDefinitionId with _flowExecutionId? Is _flowInstanceId better than _flowExecutionId?

    If we rename _flowId to _flowDefinitionId that probably also means we rename Flow to FlowDefinition, State to StateDefinition, etc. I kind of like the short names, but want things to be as clear as possible.

    Thoughts? What would be your names? This is set in stone at 1.0 final so we want to make sure we consider any option to make clarifications now.

    Keith
    Keith Donald
    Core Spring Development Team

  2. #2
    Join Date
    May 2005
    Location
    Shanghai, China
    Posts
    7

    Default

    I like the name of FlowExecution. It implies a runtime object.
    I don't like the name of FlowInstance. Surely FlowInstance is not an object instance of class Flow.

    FlowDefination may be more clear than Flow.

    I believe there's no need to rename State to StateDefination, or Transition to TransitionDefination, etc. There's no corresponding StateExecution class, so no one will make mistake.

  3. #3
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    I also pretty much like the way it is right now. Otherwise I would have renamed stuff right!

    All things seem to pretty clear and self explanatory:

    _flowId identifies a Flow
    _currentStateId identifies the current State
    _flowExecutionId identifies the current FlowExecution

    Erwin

Similar Threads

  1. FlowExecutionStorage in a DB
    By cacho in forum Web Flow
    Replies: 7
    Last Post: Oct 19th, 2009, 03:36 PM
  2. Is a 'singleton' flow a bad idea?
    By akw in forum Web Flow
    Replies: 4
    Last Post: Oct 6th, 2005, 01:16 AM
  3. Replies: 4
    Last Post: Sep 22nd, 2005, 02:48 AM
  4. Gaijin Studio 0.9.3 for Spring Web Flow Released
    By dadams in forum Announcements
    Replies: 3
    Last Post: Apr 15th, 2005, 03:56 PM
  5. Spring Web Flow - Preview 1 Released
    By Colin Sampaleanu in forum Announcements
    Replies: 13
    Last Post: Apr 6th, 2005, 07:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •