Item8912: WORKFLOWSTATE Problem

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Extension
Component: WorkflowPlugin
Branches:
Reported By: PhilipParsons
Waiting For:
Last Change By: CrawfordCurrie
-- PhilipParsons - 15 Apr 2010

 

I'm trying to look for documents with a Withdrawn status, but the %WORKFLOWSTATE% is returning UNDERREVISION. Am I doing something wrong? Plugin version 4752. Please see code in raw view. Thanks.
<!--
   * Set WORKFLOW = ReferenceApprovalWorkflow
-->

| *WikiName* | *Title* | *Category* | *Reviewer* | *User* | *State* | *Comment* |
%SEARCH{"META:WORKFLOW.name='WITHDRAWN'" type="query" nosearch="on" format="|[[$topic]] | $formfield(Title) | $formfield(TopicCategory) | $formfield(Reviewer) |  $formfield(User) | $percntWORKFLOWSTATE$percnt | $formfield(Comment) | "}%

Your WORKFLOWSTATE call doesn't specify the topic to get the workflow state from. It will return the state of the current topic (the topic where the search is executed). Use $percntWORKFLOWSTATE{$topic}$percnt

Not a bug. No action.

-- CrawfordCurrie - 20 May 2010

ItemTemplate edit

Summary WORKFLOWSTATE Problem
ReportedBy PhilipParsons
Codebase 1.0.6
SVN Range
AppliesTo Extension
Component WorkflowPlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r3 - 20 May 2010, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy