UNPKG

@5minds/node-red-contrib-processcube

Version:
192 lines (180 loc) • 8.34 kB
<script type="text/javascript"> RED.nodes.registerType('usertask-input', { category: 'ProcessCube', color: '#02AFD6', defaults: { name: { value: '' }, engine: { value: '', type: 'processcube-engine-config' }, query: { value: 'payload' }, query_type: { value: 'msg' }, sendtype: { value: 'array', required: true }, }, inputs: 1, outputs: 1, icon: 'usertask_input.svg', label: function () { return this.name || 'usertask-input'; }, oneditprepare: function () { $('#node-input-query').typedInput({ default: 'msg', types: ['msg', 'json'], }); $('#node-input-query').typedInput('value', this.query); $('#node-input-query').typedInput('type', this.query_type); }, oneditsave: function () { (this.query = $('#node-input-query').typedInput('value')), (this.query_type = $('#node-input-query').typedInput('type')); }, }); </script> <script type="text/html" data-template-name="usertask-input"> <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="http://engine:8000" /> </div> <div class="form-row"> <label for="node-input-query"><i class="fa fa-tag"></i> Query</label> <input type="text" id="node-input-query" /> </div> <div class="form-row"> <label for="node-input-sendtype"><i class="fa fa-sliders"></i> Result</label> <select id="node-input-sendtype" style="width: 70%;"> <option value="array">Send as Array</option> <option value="multi">Send Separately</option> <option value="first">Send First Task</option> </select> </div> </script> <script type="text/markdown" data-help-name="usertask-input"> A node which sends a payload to a usertask in the ProcessCube. ## Inputs : payload (Object) : Will be used as the input for the usertask. : query (String) : Will be used as the query for the usertask. : query_type (String) : Will be used as the type of the query for the usertask. : force_send_array (Boolean) : Will be used to force the payload to be sent as an array. : multisend (Boolean) : Will be used to send one output of each usertask input. ### Query fields **Summary**: **Description**: Filter result for &#39;UserTasks Input&#39; #### Parameters: - Name: `offset` Required: `false` - Type: number - Description: The index of the first ProcessInstance to include in the result set. - Name: `limit` Required: `false` - Type: number - Description: The maximum number of ProcessInstances to return. - Name: `correlationId` Required: `false` - Type: Array&lt;string&gt; | string | SearchQuery - string: myCorrelationId - Array&lt;string&gt;: myCorrelationId1,myCorrelationId2 - object: - Description: Filter by the CorrelationId of the ProcessInstances. - Name: `processInstanceId` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: myProcessInstance_12345678 - Array&lt;string&gt;: myProcessInstance_12345678,myProcessInstance_87654321 - object: - Description: Filter by the ID of the ProcessInstances. - Name: `processDefinitionId` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: myProcess_12345678 - Array&lt;string&gt;: myProcess_12345678,myProcess_87654321 - object: - Description: Filter by the ID of the ProcessDefinition that the ProcessInstances belong to. - Name: `processModelId` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: myProcessModel_12345678 - Array&lt;string&gt;: myProcessModel_12345678,myProcessModel_87654321 - object: - Description: Filter by the ID of the ProcessModel that the ProcessInstances belong to. - Name: `processModelName` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: My Process Model - Array&lt;string&gt;: My Process Model,My Other Process Model - object: - Description: Filter by the name of the ProcessModel that the ProcessInstances belong to. - Name: `processModelHash` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: 12345678 - Array&lt;string&gt;: 12345678,87654321 - object: - Description: Filter by the hash of the ProcessModel that the ProcessInstances belong to. - Name: `ownerId` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: 12345678 - Array&lt;string&gt;: 12345678,87654321 - object: - Description: Filter by the ID of the User that owns the ProcessInstances. - Name: `state` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: running - Array&lt;string&gt;: running,finished - object: - Description: Filter by the state of the ProcessInstances. - Name: `parentProcessInstanceId` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: myParentProcessInstance_12345678 - Array&lt;string&gt;: myParentProcessInstance_12345678,myParentProcessInstance_87654321 - object: - Description: Filter by the ID of the parent ProcessInstance. - Name: `embeddedProcessModelId` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: myModel1 - Array&lt;string&gt;: myModel1,myModel2 - object: - Description: Filter by the ID of the embedded process model. - Name: `terminatedByUserId` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: 12345678 - Array&lt;string&gt;: 12345678,87654321 - object: - Description: Filter by the ID of the User that terminated the ProcessInstances. - Name: `createdBefore` Required: `` - Type: string - Description: The maximum created date of the ProcessInstances to include in the results. - Name: `createdAt` Required: `` - Type: Array&lt;string&gt; | string - string: 2021-01-01T00:00:00.000Z - array: 2021-01-01T00:00:00.000Z,2021-01-02T00:00:00.000Z - Description: The minimum created date of the ProcessInstances to include in the results. - Name: `createdAfter` Required: `` - Type: string - Description: The minimum created date of the ProcessInstances to include in the results. - Name: `updatedBefore` Required: `` - Type: string - Description: The maximum updated date of the ProcessInstances to include in the results. - Name: `updatedAt` Required: `` - Type: Array&lt;string&gt; | string - string: 2021-01-01T00:00:00.000Z - array: 2021-01-01T00:00:00.000Z,2021-01-02T00:00:00.000Z - Description: The exact updated date of the ProcessInstances to include in the results. - Name: `updatedAfter` Required: `` - Type: string - Description: The minimum updated date of the ProcessInstances to include in the results. - Name: `finishedBefore` Required: `` - Type: string - Description: The maximum finished date of the ProcessInstances to include in the results. - Name: `finishedAt` Required: `` - Type: Array&lt;string&gt; | string - string: 2021-01-01T00:00:00.000Z - array: 2021-01-01T00:00:00.000Z,2021-01-02T00:00:00.000Z - Description: The exact finished date of the ProcessInstances to include in the results. - Name: `finishedAfter` Required: `` - Type: string - Description: The minimum finished date of the ProcessInstances to include in the results. - Name: `triggeredByFlowNodeInstance` Required: `` - Type: Array&lt;string&gt; | string | SearchQuery - string: myFlowNodeInstance_12345678 - array: myFlowNodeInstance_12345678,myFlowNodeInstance_87654321 - object: - Description: Filter by the ID of the FlowNodeInstance that triggered the ProcessInstance. ### References - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy; </script>