File tree Expand file tree Collapse file tree
OpenFlowNodeRED/src/nodered/nodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 134134
135135
136136
137- < script type ="text/x-red " data-template-name ="run workflow ">
137+ < script type ="text/x-red " data-template-name ="assign workflow ">
138138 < div class = "form-row" >
139139 < label > < i class = "fa fa-tag" > </ i > Queue name</ label >
140140 < input type = "text" id = "node-input-queue" placeholder = "Queue name" >
172172
173173 </ div >
174174</ script >
175- < script type ="text/x-red " data-help-name ="run workflow ">
175+ < script type ="text/x-red " data-help-name ="assign workflow ">
176176 < p >
177177 Create a new task asssigned to a user or role.< br >
178178 You can set Workflow using msg.workflowid< br >
188188 return Math . random ( ) . toString ( 36 ) . substr ( 2 , 9 ) ;
189189 }
190190
191- RED . nodes . registerType ( 'run workflow' , {
191+ RED . nodes . registerType ( 'assign workflow' , {
192192 category : 'rpa' ,
193193 color : "#a6bbcf" ,
194194 defaults : {
203203 outputLabels : [ "scheduled" , "result" ] ,
204204 icon : "bridge.png" ,
205205 label : function ( ) {
206- return this . name || "run workflow" ;
206+ return this . name || "assign workflow" ;
207207 } ,
208208 labelStyle : function ( ) {
209209 return this . name ? "node_label_italic" : "" ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import * as workflow from "./workflow_nodes";
55export = function ( RED : Red ) {
66 RED . nodes . registerType ( "workflow in" , workflow . workflow_in_node ) ;
77 RED . nodes . registerType ( "workflow out" , workflow . workflow_out_node ) ;
8- RED . nodes . registerType ( "run workflow" , workflow . run_workflow_node ) ;
8+ RED . nodes . registerType ( "assign workflow" , workflow . assign_workflow_node ) ;
99 RED . httpAdmin . get ( "/workflow_forms" , RED . auth . needsPermission ( 'serial.read' ) , workflow . get_workflow_forms ) ;
1010 RED . httpAdmin . get ( "/workflows" , RED . auth . needsPermission ( 'serial.read' ) , workflow . get_workflows ) ;
1111}
Original file line number Diff line number Diff line change @@ -400,19 +400,19 @@ export async function get_workflows(req, res) {
400400
401401
402402
403- export interface Irun_workflow_node {
403+ export interface Iassign_workflow_node {
404404 name : string ;
405405 queue : string ;
406406 targetid : string ;
407407 workflowid : string ;
408408 initialrun : boolean ;
409409}
410- export class run_workflow_node {
410+ export class assign_workflow_node {
411411 public node : Red = null ;
412412 public name : string = "" ;
413413 public host : string ;
414414 public con : amqp_consumer ;
415- constructor ( public config : Irun_workflow_node ) {
415+ constructor ( public config : Iassign_workflow_node ) {
416416 RED . nodes . createNode ( this , config ) ;
417417 this . node = this ;
418418 this . node . status ( { } ) ;
You can’t perform that action at this time.
0 commit comments