node-red-contrib-ibm-mq
Version:
IBM MQ read/write nodes
79 lines (78 loc) • 3.66 kB
HTML
<script type="text/x-red" data-template-name="ibm-mq-write">
<div class="form-row">
<label for="node-input-name"><i class="fa icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-url"><i class="fa fa-globe"></i> Service URL</label>
<input type="text" id="node-input-url" value="http://localhost:8080/eventbus/">
</div>
<div class="form-row">
<label for="node-input-host"><i class="fa fa-globe"></i> MQ Host</label>
<input type="text" id="node-input-host" value="172.0.0.1">
</div>
<div class="form-row">
<label for="node-input-port"><i class="fa fa-sign-in"></i> Port</label>
<input id="node-input-port" style="width: 60px;" value="1414">
</div>
<div class="form-row">
<label for="node-input-channel"><i class="fa fa-random"></i> Channel</label>
<input type="text" id="node-input-channel">
</div>
<div class="form-row">
<label for="node-input-user"><i class="fa fa-user"></i> Username</label>
<input type="text" id="node-input-user" dir="">
</div>
<div class="form-row">
<label for="node-input-pass"><i class="fa fa-lock"></i> Password</label>
<input type="password" id="node-input-pass">
</div>
<div class="form-row">
<label for="node-input-qmname"><i class="fa icon-tag"></i> Queue Manager Name</label>
<input type="text" id="node-input-qmname" placeholder="MyQueueManagerName">
</div>
<div class="form-row">
<label for="node-input-qname"><i class="icon-tag"></i> Queue Name</label>
<input type="text" id="node-input-qname" placeholder="MyQueueName">
</div>
<div class="form-row">
<label for="node-input-ccsid"><i class="icon-tag"></i> CCSID</label>
<input type="text" id="node-input-ccsid" style="width: 60px;" placeholder="1098">
</div>
</script>
<script type="text/x-red" data-help-name="ibm-mq-write">
<p>A node capable of writing string messages to any IBM Websphere MQ and send them on its output if it was successful</p>
<p>Node properties help & tips</p>
<ul>
<li><p>It's the best idea to choose a unique and meaningful name in your graph.</p></li>
<li><p>"Service URL" is something like "http://localhost:8080/eventbus/" and related to your "Vertx" engine</p></li>
<li><p>"MQ Host", "Port", "Channel", "Username", "Password", "Queue Manager Named", "Queue Name" and "CCSID" come from IBM Websphere MQ ("CCSID" is code page number used to read message from MQ)</p></li>
</ul>
</script>
<script type="text/javascript">
RED.nodes.registerType('ibm-mq-write', {
category: 'output',
color: '#a6bbcf',
defaults: {
url: {value: "http://localhost:8080/eventbus/"},
host: {value: "172.0.0.1", required: false},
port: {value: 1414, required: false, validate: RED.validators.number()},
channel: {value: "", required: true},
user: {value: "", required: true},
pass: {value: "", required: true},
qmname: {value: "", required: true},
qname: {value: "", required: true},
ccsid: {value: "1098"},
name: {value: "", required: false}
},
inputs: 1,
outputs: 1,
icon: "ibmmq.png",
label: function () {
return this.name || "ibm-mq";
},
paletteLabel: function () {
return "ibm-mq";
}
});
</script>