@@ -150,10 +150,10 @@ export class workflow_in_node {
150150 if ( data . payload . _id !== null && data . payload . _id !== undefined && data . payload . _id !== "" ) _id = data . payload . _id ;
151151 }
152152 }
153- this . node . status ( { fill : "blue" , shape : "dot" , text : "Processing " + _id } ) ;
153+
154154 console . log ( data ) ;
155155 if ( _id !== null && _id !== undefined && _id !== "" ) {
156-
156+ this . node . status ( { fill : "blue" , shape : "dot" , text : "Processing id " + _id } ) ;
157157 var jwt = data . jwt ;
158158 delete data . jwt ;
159159
@@ -195,6 +195,7 @@ export class workflow_in_node {
195195 // }
196196 // result.workflow = this.workflow._id;
197197 } else {
198+ this . node . status ( { fill : "blue" , shape : "dot" , text : "Processing new instance " } ) ;
198199 var queue : string = this . config . queue ;
199200 if ( ! NoderedUtil . IsNullUndefinded ( Config . queue_prefix ) ) {
200201 queue = Config . queue_prefix + this . config . queue ;
@@ -204,6 +205,7 @@ export class workflow_in_node {
204205
205206 var who = WebSocketClient . instance . user ;
206207 var me = WebSocketClient . instance . user ;
208+ this . node . status ( { fill : "blue" , shape : "dot" , text : "Renew token " } ) ;
207209 if ( ! NoderedUtil . IsNullEmpty ( jwt ) ) {
208210 var signin = await NoderedUtil . RenewToken ( jwt , true ) ;
209211 who = signin . user ;
@@ -214,11 +216,13 @@ export class workflow_in_node {
214216 item = Base . assign ( item ) ;
215217 item . addRight ( who . _id , who . name , [ - 1 ] ) ;
216218 if ( who . _id != me . _id ) item . addRight ( me . _id , me . name , [ - 1 ] ) ;
219+ this . node . status ( { fill : "blue" , shape : "dot" , text : "Create instance " } ) ;
217220 var res2 = await NoderedUtil . InsertOne ( "workflow_instances" , item , 1 , true , jwt ) ;
218221
219222 // Logger.instanse.info("workflow in activated creating a new workflow instance with id " + res2._id);
220223 // OpenFlow Controller.ts needs the id, when creating a new intance !
221224 data . _id = res2 . _id ;
225+ this . node . status ( { fill : "blue" , shape : "dot" , text : "Processing new id " + res2 . _id } ) ;
222226 if ( data . payload !== null && data . payload != undefined ) {
223227 try {
224228 data . payload . _id = res2 . _id ;
0 commit comments