Item8221: Initial State using WorkFlowPlugin
Priority: Enhancement
Current State: No Action Required
Released In:
Target Release:
I was using query search to search for topics in a specific state by searching the META data
%SEARCH{"META:WORKFLOW.name='APPROVED'" type="query"}%
I noticed in the latest
WorkflowPlugin (Foswiki 1.0.6) that there is no META data for the initial state (i.e., on creation of a topic containing Workflow). Once you change state the first time, the META data now appears. In the previous WorkFlowPlugin (TWiki Version), the META data was there as soon as the file was created. I can workaround this by having users select the first state - but would the insert of META data with the initial state on file creation be an easy task?
--
JoeMarandola - 20 Jul 2009
No. The workflow has an implicit default state that should be assumed by any topic that uses the workflow, but does not explicitly set a state - i.e. if no state is set, assume the initial state applies.
--
CrawfordCurrie - 02 Sep 2009