findItems
query - Input Parameters
#88
Closed
MaheshkumarSundaram
started this conversation in
General
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @ralphhanna,
Consider the below example,
Here, the Receive Task
RT1
has an input parmater namedsender
with a default value.In DB, the record associated with the above task follows the below structure:
To find a item, normally we would use
server.datastore.findItems(query)
while thequery
can be anything as long as it fits into the record structure of the task (the one above).But I don't see the input parameters of a task recorded into the item's record in DB.
If I want to query a task whose input parameter matches a value,
Something like,
server.datastore.findItems({"items.status": "wait", "items.inputParams.sender": "<something>"})
.I presume I couldn't do that now as the input parameters aren' there!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions