Exemplo n.º 1
0
 /**
  * Callback to get common properties of dependent elements for staging.
  *
  * @param ElementEntity $element
  * @return array
  */
 protected function getCommonSetStagePropertiesCallback(ElementEntity $element)
 {
     $commonSetStageProperties = array();
     $elementProperties = $element->getDataValue('properties');
     if (isset($elementProperties['stageId'])) {
         $commonSetStageProperties['stageId'] = $elementProperties['stageId'];
     }
     if (isset($elementProperties['comment'])) {
         $commonSetStageProperties['comment'] = $elementProperties['comment'];
     }
     if (isset($elementProperties['action'])) {
         $commonSetStageProperties['action'] = $elementProperties['action'];
     }
     if (isset($elementProperties['notificationAlternativeRecipients'])) {
         $commonSetStageProperties['notificationAlternativeRecipients'] = $elementProperties['notificationAlternativeRecipients'];
     }
     return $commonSetStageProperties;
 }