Help:Process format

From semantic-mediawiki.org
Process format
Displays process graphs
Further Information
Provided by: Extension "Semantic Result Formats"
Added: 1.4.2
Removed: still supported
Requirements: GraphViz
Format name: process
Enabled? Indicates whether the result format is enabled by default upon installation of the respective extension. no
Authors: Frank Dengler , Hans-Jörg Happel
Categories: graph
Table of Contents

The result format process, part of the Extension "Semantic Result Formats" extension, can be used to display result values as a process graph. The extension "GraphViz" (MediaWiki.org) (≤ MediaWiki 1.35.x) or extension "Diagrams" (MediaWiki.org) or extension "External Data" (MediaWiki.org) (≥ MediaWiki 1.36.x) should also be installed for this result format.

Parameters[edit]

Format specific
Parameter Type Default Description
graphname text empty Sets the title of the graph
rankdir text TB Sets the direction of the arrows
graphsize text empty Sets the size of the graph in pixels
clustercolor text lightgrey Sets the colors the cluster boxes
highlight text empty Sets the node to be highlighted
highlightcolor text blue Sets the font color for the highlighted node
redlinkcolor text red Sets the font color for the red links
processcat text Process Sets the wiki category collecting the process steps
showroles yes/no no Shows the corresponding roles in the graph
showstatus yes/no no Sets whether a process step status should be rendered
showresources yes/no no Shows the corresponding resources in the graph
showdiscussion yes/no no Sets whether a discussion should be rendered
showredlinks yes/no no Sets whether red links should be checked and highlighted
showcompound yes/no yes Sets whether to highlight compound nodes, i.e. subprocesses
debug yes/no no Sets whether the process graph code should be shown wrapped pre tags
graphvalidation yes/no no Displays the process steps in red which do not have a assigned role

NoteNote:

Example[edit]

{{#ask:
 [[Category:Process Step]]
 [[Category:{{PAGENAME}}]]   
 |?has OrSuccessor=hasorsuccessor 
 |?has Successor=hassuccessor 
 |?has ConTrueSuccessor=hascontruesuccessor 
 |?has ConFalseSuccessor =hasconfalsesuccessor 
 |?has Condition=hascondition 
 |?has Role=hasrole 
 |?uses Resource=usesresource
 |?has Status=hasstatus
 |format=process
 |graphsize=12,12
 |graphvalidation=no
 |showroles=yes
 |showstatus=yes
 |showresources=yes 
 |clustercolor=lightgrey 
}}

External links[edit]

Enabling[edit]

This result format is not enabled by default on a wiki. To enable it the line

$srfgFormats[] = 'process';

must be added to the "LocalSettings.php" file below the inclusion of the Extension "Semantic Result Formats" extension.



This documentation page applies to all SMW versions from 1.4.2 to the most current version.