@5minds/node-red-contrib-processcube
Version:
Node-RED nodes for ProcessCube
66 lines (56 loc) • 2.84 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('process-start', {
category: 'ProcessCube',
color: '#02AFD6',
defaults: {
name: { value: '' },
engine: { value: '', type: 'processcube-engine-config' },
processmodel: { value: '', required: false },
startevent: { value: '', required: false },
correlationId: { value: '', required: false },
},
inputs: 1,
outputs: 1,
icon: 'process_start.svg',
label: function () {
return this.name || 'process-start';
},
});
</script>
<script type="text/html" data-template-name="process-start">
<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-URL</label>
<input type="text" id="node-input-engine" placeholder="Engine-URL" />
</div>
<div class="form-row">
<label for="node-input-processmodel"><i class="fa fa-tag"></i> Processmodel</label>
<input type="text" id="node-input-processmodel" placeholder="ID of Processmodel" />
</div>
<div class="form-row">
<label for="node-input-startevent"><i class="fa fa-tag"></i> Startevent</label>
<input type="text" id="node-input-startevent" placeholder="ID of Startevent" />
</div>
<div class="form-row">
<label for="node-input-correlationId"><i class="fa fa-tag"></i> CorrelationId</label>
<input type="text" id="node-input-correlationId" placeholder="ID of Correlation" />
</div>
</script>
<script type="text/markdown" data-help-name="process-start">
Start a new instance of a process model in the ProcessCube.
The `processModelId` and `startEventId` can be set in the message object to override the configured values.
## Inputs
: payload (Object) : Will be used as the start token for the process.
: processModelId (String) : Will be used as the process model and override the configured `Processmodel`.
: startEventId (String) : Will be used as the start event and override the configured `Startevent`.
: correlationId (String) : Will be used as the correlation identifier and override the configured `CorrelationId`.
## Outputs
: processInstanceId (string) : The unique identifier of the started process instance.
: correlationId (string) : The unique correlation identifier of the started process instance.
### 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>