aw schriftzug.png aw logo 60x60.png

RenderWorkflowInfo
renders an info block at the top of a ControlledTopic

Documentation

This TopicFunction renders the header of a ControlledTopic.

Parameters
  • OBJECT the topic to render the info block for

Implementation

%STARTINCLUDE%%QMSTATE{
   ignoreerror="on"
   topic="%OBJECT{default=""}%"
   workflow="%FORMFIELD{"Workflow" topic="%OBJECT{default=""}%"}%"
}%%STOPINCLUDE%

Test

ControlledTestTopic

<div class="clearfix %IF{ "'%WORKFLOWSTATE{"ControlledTestTopic" rev=""}%'='approved'" then="foswikiSuccessMessage" else="%IF{ "'%WORKFLOWSTATE{"ControlledTestTopic" rev=""}%'='rejected'" then="foswikiErrorMessage" else="foswikiWarningMessage" }%" }%"> %TRANSLATE{"%WORKFLOWSTATEMESSAGE{"ControlledTestTopic" rev=""}%"}%
Current State: %TRANSLATE{"%WORKFLOWSTATE{"ControlledTestTopic"rev=""}%"}%
Action: %WORKFLOWTRANSITION{"ControlledTestTopic"}%
%IF{"'%WORKFLOWLASTREV{"approved" topic="ControlledTestTopic"}%'!=''" then="" }%
Workflow: WORKFLOW
Last Approved: %WORKFLOWLASTTIME{"approved" topic="ControlledTestTopic"}%, version %WORKFLOWLASTREV{"approved" topic="ControlledTestTopic"}%

Calls to 'RenderWorkflowInfo'

Copyright

© 2006-2015 Michael Daum http://michaeldaumconsulting.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Warning: Can't find topic Applications/ClassificationApp.WebLeftBarExample

Impressum © Alexander Weimer GmbH