Path

ez components / documentation / api reference / 2008.1 / workflow


Workflow: ezcWorkflowVisitorVerification

[ Tutorial ] [ Theoretical background ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcWorkflowVisitorVerification

An implementation of the ezcWorkflowVisitor interface that verifies a workflow specification. [source]

Implemented Interfaces

This visitor should not be used directly but will be used by the verify() method on the workflow.
1.  <?php
2.  $workflow->verify();
3.  ?>
The verifier checks that:
  • there is only one start node
  • each node satisfies the constraints of the respective node type

Member Variables

protected integer $numFinallyNodes = 0
Holds the number of finally nodes encountered during visiting.
protected integer $numStartNodes = 0
Holds the number of start nodes encountered during visiting.
protected array $visited = array()
Holds the id of each node that has been visited already.

Method Summary

public boolean visit( $visitable )
Visits the node, checks contraints and calls verify on each node.

Methods

visit

boolean visit( ezcWorkflowVisitable $visitable )
Visits the node, checks contraints and calls verify on each node.
Returns true if the node was verified. False if it was already verified.

Parameters

Name Type Description
$visitable ezcWorkflowVisitable  

Throws

ClassDescription
ezcWorkflowInvalidWorkflowException

Last updated: Wed, 18 Jun 2008