getId() public method

Returns the Id of this node.
public getId ( ) : integer
return integer
Beispiel #1
0
 /**
  * Adds a variable that an (input) node is waiting for.
  *
  * @param ezcWorkflowNode $node
  * @param string $variableName
  * @param ezcWorkflowCondition $condition
  * @ignore
  */
 public function addWaitingFor(ezcWorkflowNode $node, $variableName, ezcWorkflowCondition $condition)
 {
     if (!isset($this->waitingFor[$variableName])) {
         $this->waitingFor[$variableName] = array('node' => $node->getId(), 'condition' => $condition);
     }
 }
Beispiel #2
0
 /**
  * Called after a node has been executed.
  *
  * @param ezcWorkflowExecution $execution
  * @param ezcWorkflowNode      $node
  */
 public function afterNodeExecuted(ezcWorkflowExecution $execution, ezcWorkflowNode $node)
 {
     $this->notifyListeners(sprintf('Executed node #%d(%s) for instance #%d of workflow "%s" (version %d).', $node->getId(), get_class($node), $execution->getId(), $execution->workflow->name, $execution->workflow->version), ezcWorkflowExecutionListener::DEBUG);
 }