/**
* Generate node configuration from XML representation.
*
* @param DOMElement $element
* @return array
* @ignore
*/
public static function configurationFromXML(DOMElement $element)
{
$configuration = array('class' => $element->getAttribute('serviceObjectClass'), 'arguments' => array());
$childNode = ezcWorkflowUtil::getChildNode($element);
if ($childNode->tagName == 'arguments') {
foreach (ezcWorkflowUtil::getChildNodes($childNode) as $argument) {
$configuration['arguments'][] = ezcWorkflowDefinitionStorageXml::xmlToVariable($argument);
}
}
return $configuration;
}