I am using the following complete task query.
mutation completeTask ($taskId: String!, $variables: [VariableInput!]!) {
completeTask (taskId: $taskId, variables: $variables) {
id
name
taskDefinitionId
processName
creationTime
completionTime
assignee
variables {
id
name
value
previewValue
isValueTruncated
}
taskState
sortValues
isFirst
formKey
processDefinitionId
candidateGroups
}
}
My GraphQL variables are:
{
"taskId": {{taskid}},
"variables": [{
"name": "foo",
"value": 7
}]
}
And it works fine. But this does not work.
{
"taskId": {{taskid}},
"variables": [{
"name": "foo",
"value": "bar"
}]
}
I get an āUnrecognized typeā error.
āmessageā: āUnrecognized token ābarā: was expecting (JSON String, Number, Array, Object or token ānullā, ātrueā or āfalseā)\n at [Source: (String)ābarā; line: 1, column: 4]ā,
What am I doing incorrectly?
Thanks.