Skip to content

A simple xml structure for representing process flows using GraphViz

License

Notifications You must be signed in to change notification settings

JoePlant/xml-process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xml-process

A simple xml structure for representing process flows and is used to generate process flow diagrams.


Process Flow (top-bottom) Process flow (left-right)
Top Flow Left Flow

Xml: Source

<ProcessFlow>
	<Area name='Auxiliaries'>
		<Consumable name='Water'/>
		<Consumable name='Energy'/>
		<Consumable name='Energy'/>
		<Link to='Concentrator' />
		<Link to='Smelter' />
	</Area>
	<Area name='Concentrator'>
		<Input name='Ore'/>
		<Waste name='Waste'/>
		<Flow to='Smelter'/>
	</Area>
	<Area name='Smelter'>
		<Waste name='Slag'/>
		<Output name='Product'/>
	</Area>
</ProcessFlow>

Examples

Source: xml

Process Flow Output

Source: xml

Process Flow Output

Source: xml

Process Flow Output

Elements

Input Output Consumable Waste
Input Output Consumable Waste
Flow Link
Flow Link

Input

Input flow for the process.

  • name = name of the flow

Xml: Source

<ProcessFlow name='Example: Input'>
	<Area name='Site'>
		<Input name='Ore'/>
	</Area>
</ProcessFlow>

Input

Output

Output flow for the process.

  • name = name of the flow

Xml: Source

<ProcessFlow name='Example: Output'>
	<Area name='Site'>
		<Output name='Product'/>
	</Area>
</ProcessFlow>

Output

Consumable

Consumable flow for the process.

  • name = name of the flow

Xml: Source

<ProcessFlow name='Example: Consumable'>
	<Area name='Site'>	
		<Consumable name='Water'/>
	</Area>
</ProcessFlow>

Consumable

Waste

Waste flow for the process.

  • name = name of the flow

Xml: Source

<ProcessFlow name='Example: Waste'>
	<Area name='Site'>
		<Waste name='Waste'/>
	</Area>
</ProcessFlow>

Waste

Flow

Generic flow for the process. to or flow is required.

  • to = Where the flow goes to (name of the area)
  • from = Where the flow comes from (name of the area)

Xml: Source

<ProcessFlow name='Example: Flow'>
	<Area name='Site 1'>
		<Flow to='Site 2'/>
	</Area>
	<Area name='Site 2'>
		<Flow to='Site 3'/>
	</Area>
	<Area name='Site 3'>
		<Flow from='Site 1'/>
	</Area>	
</ProcessFlow>

Flow

Link

Link between the two areas. (@to or @from is required)

  • to = Where the link goes to (name of the area)
  • from = Where the link comes from (name of the area)

Xml: Source

<ProcessFlow name='Example: Link between 1 and 3'>
	<Area name='Site 1'>
		<Flow to='Site 2'/>
	</Area>
	<Area name='Site 2'>
		<Flow to='Site 3'/>
	</Area>
	<Area name='Site 3'>
		<Link from='Site 1'/>
	</Area>	
</ProcessFlow>

Link

About

A simple xml structure for representing process flows using GraphViz

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published