node-red-contrib-digital-factory
Version:
Node-Red nodes for Supply Chain Wizard's Digital Factory Platform
35 lines (29 loc) • 1.31 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('custommethodresponse',{
category: 'Digital Factory',
color: '#D3D3D3',
inputs:1,
icon: "digital-factory-logo.png",
label: function() {
return this.name||"Send Response";
},
paletteLabel: "Send Response",
inputLabel: "Send Response",
defaults: {
name: {value:""},
},
});
</script>
<script type="text/x-red" data-template-name="custommethodresponse">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i>Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="custommethodresponse">
<p>Through Digital Factory node, you can receive calls to custom methods. Methods are special kind of calls where you can send a response to. Use this node to send responses. <br>
<br>
This node expects msg.topic and msg.messageId to be as received from the Digital Factory node.
<br>
<b>msg.code</b> will be used as a response code (similar to http response codes) and <b>msg.payload</b> will be used as the response string.</p>
</script>