@@ -241,7 +241,11 @@ private void submitActionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-
241
241
}
242
242
243
243
try {
244
- gma .launchAction (actionTable .getSelectedDefinitionObjId (), argumentValueList , new ActionAdapter () {
244
+ Long definitionObjId = actionTable .getSelectedDefinitionObjId ();
245
+ Logger .getLogger (ActionConsumerPanel .class .getName ()).log (Level .INFO ,
246
+ "Triggering action with id: " + definitionObjId );
247
+
248
+ gma .launchAction (definitionObjId , argumentValueList , new ActionAdapter () {
245
249
@ Override
246
250
public void submitActionAckReceived (MALMessageHeader msgHeader , Map qosProperties ) {
247
251
super .submitActionAckReceived (msgHeader , qosProperties );
@@ -251,10 +255,12 @@ public void submitActionAckReceived(MALMessageHeader msgHeader, Map qosPropertie
251
255
@ Override
252
256
public void submitActionErrorReceived (MALMessageHeader msgHeader , MALStandardError error , Map qosProperties ) {
253
257
super .submitActionErrorReceived (msgHeader , error , qosProperties );
254
- JOptionPane .showMessageDialog (null , "The action submittal has failed." , "Error" , JOptionPane .PLAIN_MESSAGE );
258
+ JOptionPane .showMessageDialog (
259
+ null ,
260
+ "The submitted action failed: " + error .toString (),
261
+ "Error" , JOptionPane .PLAIN_MESSAGE );
255
262
}
256
263
});
257
-
258
264
} catch (NMFException ex ) {
259
265
JOptionPane .showMessageDialog (null , "There was an error with the submitted action." , "Error" , JOptionPane .PLAIN_MESSAGE );
260
266
Logger .getLogger (ActionConsumerPanel .class .getName ()).log (Level .SEVERE , null , ex );
0 commit comments