You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the WithVariablesInReturn propertty on CompleteTask, I would expect that .SubmitForm() should return the updated variables.
The same way as ProcessDefinitionResource.StartProcessInstance() does.
But .SubmitForm() returns a Task instead.
Am I missing something?
While trying to workaround this, I have managed to get the variables myself like so:
var resultVariable = await camunda.ProcessInstances[instanceInfo.Id].Variables.Get("result", false);
var result = JsonSerializer.Deserialize<Result>(resultVariable.Value as string, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
The text was updated successfully, but these errors were encountered:
DumboJetEngine
changed the title
Shouldn't .CompleteTask() return variables?
Shouldn't .SubmitForm() return variables?
Jun 5, 2024
I am completely new to Camunda and to this library, but I try to submit a form to complete a user task like that:
Given the
WithVariablesInReturn
propertty onCompleteTask
, I would expect that.SubmitForm()
should return the updated variables.The same way as
ProcessDefinitionResource.StartProcessInstance()
does.But
.SubmitForm()
returns aTask
instead.Am I missing something?
While trying to workaround this, I have managed to get the variables myself like so:
The text was updated successfully, but these errors were encountered: