Summary
Search Tasks
Description
Search Tasks with Options
Route
POST /workflow_engine/tasks/search
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | object | yes | Search Filter |
options | object | yes | expand, fields, query, local, limit, skip, sort |
{ "filter": { "someFieldName": "Some Value to query the against the someFieldName property" }, "options": { "expand": [ "created_by", "created_by", "created_by", "user", "user" ], "fields": { "name": 1 }, "query": { "name": "abcd" }, "limit": 50, "local": true, "skip": 0, "sort": { "name": -1 } } }
{ "type": "object", "properties": { "filter": { "$ref": "wfEngineCommon#/definitions/queryObjectFieldNames" }, "options": { "$ref": "wfEngineCommon#/definitions/expandedSearchOptions" } }, "required": [ "filter", "options" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
tasks | object | Search Results |
{ "results": [ { "_id": "5cb7b531d06cceb89fd21b1c", "job": { "_id": "4321abcdef694aa79dae47ad", "task": "cd34", "ancestors": [ "4321abcdef694aa79dae47ad" ], "name": "in dolore Lorem culpa", "description": -27599482.337938502 }, "variables": { "incoming": { "inputVariable": "inputValue" }, "outgoing": { "outputVariable": null }, "error": "", "decorators": [ { "type": "encryption", "pointer": "et enim labore" }, { "type": "encryption", "pointer": "proident" }, { "type": "encryption", "pointer": "amet" } ] }, "metrics": { "retrying": false }, "name": 3259303, "summary": -86977311, "displayName": 61420378.74526358, "type": 57294581, "x": "ipsum est", "y": true }, { "_id": "4321abcdef694aa79dae47ad", "job": { "_id": "4321abcdef694aa79dae47ad", "task": "cd34", "ancestors": [ "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad" ], "name": -69092654, "description": "ut amet eu incididunt sint" }, "variables": { "incoming": { "inputVariable": "inputValue" }, "outgoing": { "outputVariable": null }, "error": "", "decorators": [ { "type": "encryption", "pointer": "cupidatat" } ] }, "metrics": { "retrying": true }, "name": true, "summary": 89441224, "displayName": -25878138.248234883, "type": 78027931, "x": "elit mollit sit ullamco", "y": "Duis eu labore magna qui" }, { "_id": "5cb7b531d06cceb89fd21b1c", "job": { "_id": "5cb7b531d06cceb89fd21b1c", "task": "12ab", "ancestors": [ "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad" ], "name": 82994713, "description": -14255725 }, "variables": { "incoming": { "inputVariable": "inputValue" }, "outgoing": { "outputVariable": null }, "error": "", "decorators": [ { "type": "encryption", "pointer": "proident magna mollit cupidatat ut" }, { "type": "encryption", "pointer": "eiusmod adipisicing" }, { "type": "encryption", "pointer": "et" }, { "type": "encryption", "pointer": "labore dolor id cupidatat sit" } ] }, "metrics": { "retrying": false }, "name": -74720477.5265466, "summary": -90774767.23745969, "displayName": 43821176, "type": 18485866.37050289, "x": true, "y": true }, { "_id": "5cb7b531d06cceb89fd21b1c", "job": { "_id": "5cb7b531d06cceb89fd21b1c", "task": "cd34", "ancestors": [ "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c" ], "name": "consectetur eu proident sed", "description": "cupidatat esse" }, "variables": { "incoming": { "inputVariable": "inputValue" }, "outgoing": { "outputVariable": null }, "error": "", "decorators": [ { "type": "encryption", "pointer": "labore velit in Excepteur" }, { "type": "encryption", "pointer": "non in minim aliqua deserunt" } ] }, "metrics": { "retrying": true }, "name": 28109734.00682339, "summary": false, "displayName": 24712891.127434403, "type": "laboris adipisicing et", "x": -72167283, "y": -5083080.562943682 }, { "_id": "5cb7b531d06cceb89fd21b1c", "job": { "_id": "4321abcdef694aa79dae47ad", "task": "cd34", "ancestors": [ "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c" ], "name": 43594042.5586963, "description": false }, "variables": { "incoming": { "inputVariable": "inputValue" }, "outgoing": { "outputVariable": null }, "error": "", "decorators": [ { "type": "encryption", "pointer": "cupidatat" }, { "type": "encryption", "pointer": "consectetur velit irure non" }, { "type": "encryption", "pointer": "culpa et minim" }, { "type": "encryption", "pointer": "qui Excepteur aliqua ea aliquip" }, { "type": "encryption", "pointer": "mollit dolor" } ] }, "metrics": { "retrying": false }, "name": -98807741.33221282, "summary": 94797209.37620667, "displayName": false, "type": 22403105, "x": 22598885.094375417, "y": 47375179.670220554 } ], "skip": 0, "limit": 50, "total": 100 }
{ "title": "tasks", "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "taskDocument" } }, "skip": { "$ref": "wfEngineCommon#/definitions/skip" }, "limit": { "$ref": "wfEngineCommon#/definitions/limit" }, "total": { "$ref": "wfEngineCommon#/definitions/total" } } }