@5minds/node-red-contrib-processcube
Version:
Node-RED nodes for ProcessCube
50 lines (41 loc) • 1.86 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('signal-event-trigger', {
category: 'ProcessCube',
color: '#02AFD6',
defaults: {
name: { value: '' },
engine: { value: '', type: 'processcube-engine-config' },
signalname: { value: '', required: true },
},
inputs: 1,
outputs: 1,
icon: 'signal_event_trigger.svg',
label: function () {
return this.name || 'signal-event-trigger';
},
});
</script>
<script type="text/html" data-template-name="signal-event-trigger">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name" />
</div>
<div class="form-row">
<label for="node-input-engine"><i class="fa fa-tag"></i> Engine</label>
<input type="text" id="node-input-engine" placeholder="Engine" />
</div>
<div class="form-row">
<label for="node-input-signalname"><i class="fa fa-tag"></i> Signal Name</label>
<input type="text" id="node-input-signalname" placeholder="Name of the Signal" />
</div>
</script>
<script type="text/markdown" data-help-name="signal-event-trigger">
A node which emmits a signal event to the Engine.
From the config the `signalname` and the `processInstanceId` must be set.
## Inputs
: payload (Object) : Will sent to the event and used an new token payload.
: processInstanceId (string) : The process instance where the signal event should be triggered.
### References
- [The ProcessCube© Developer Network](https://processcube.io) - All documentation for the ProcessCube© platform
- [ProcessCube© LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube©
</script>