$value) { echo '-------------------------------------------------------'.PHP_EOL; echo $key.PHP_EOL; try { $obj = json_decode($value); $nodeType = ""; if (isset($obj->nodeType)) $nodeType = $obj->nodeType; $result = $amdaAction->execute($obj->nodeType, $obj); if ($result['success']) { if ($result['status'] == 'error') { echo 'Error during execution !'.PHP_EOL; } else echo 'Success !'.PHP_EOL; } else echo 'Error ! '.$result['message'].PHP_EOL; } catch (Exception $e) { echo 'Exception detected : '.$e->getMessage().PHP_EOL; } } ?>