public function configurationToXML(DOMElement $element)
{
foreach ($this->configuration as $variable => $value) {
$variableXml = $element->appendChild($element->ownerDocument->createElement('variable'));
$variableXml->setAttribute('name', $variable);
$variableXml->appendChild(ezcWorkflowDefinitionStorageXml::variableToXml($value, $element->ownerDocument));
}
}