@@ -307,6 +307,7 @@ export class workflow_out_node {
307307 delete msgcopy . jwt ;
308308 delete msgcopy . user ;
309309 // Logger.instanse.info("Updating workflow instance with id " + msg._id + " (" + msg.name + " with state " + msg.state);
310+ this . node . status ( { fill : "blue" , shape : "dot" , text : "Updating workflow instance" } ) ;
310311 var res2 = await NoderedUtil . UpdateOne ( "workflow_instances" , null , msgcopy , 1 , false , msg . jwt ) ;
311312 }
312313 } catch ( error ) {
@@ -329,6 +330,7 @@ export class workflow_out_node {
329330 // data.jwt = msg.jwt;
330331 // ROLLBACK
331332 // msg.amqpacknowledgment(true, JSON.stringify(data));
333+ this . node . status ( { fill : "blue" , shape : "dot" , text : "amqpacknowledgment" } ) ;
332334 msg . amqpacknowledgment ( true ) ;
333335 }
334336 } catch ( error ) {
@@ -354,6 +356,7 @@ export class workflow_out_node {
354356 expiration = msg . expiration ;
355357 }
356358 var expiration = Config . amqp_workflow_out_expiration ;
359+ this . node . status ( { fill : "blue" , shape : "dot" , text : "QueueMessage.1" } ) ;
357360 var res = await NoderedUtil . QueueMessage ( WebSocketClient . instance , msg . resultqueue , null , data , msg . correlationId , expiration ) ;
358361 // this.con.SendMessage(JSON.stringify(data), msg.resultqueue, msg.correlationId, false);
359362 }
@@ -382,6 +385,7 @@ export class workflow_out_node {
382385 }
383386 // ROLLBACK
384387 // Don't wait for ack(), we don't care if the receiver is there, right ?
388+ this . node . status ( { fill : "blue" , shape : "dot" , text : "Queue message for " + msg . _replyTo } ) ;
385389 var result = await NoderedUtil . QueueMessage ( WebSocketClient . instance , msg . _replyTo , null , data , msg . correlationId , Config . amqp_workflow_out_expiration ) ;
386390 // console.log("Send reply data to " + msg._replyTo, data);
387391 //this.con.SendMessage(JSON.stringify(data), msg._replyTo, msg._correlationId, false);
0 commit comments