Closed hamidouikene closed 4 months ago
Hi @hamidouikene, thanks for the detailed report. Indeed, this is missing. There's no particular reason for this hack not being in PostEvent, it's just a miss. I'll publish a fix ASAP.
This should be fixed in build 1.1.47 The following methods will be fixed: StartWithParameters, PostEvent, SimulateWithParameters, SpawnWithParameters, and SpawnWithParametersEx
Thank you so much @mkiki!
@mkiki I can close this one if you want.
Hi @hamidouikene , that would be great yes
Expected Behaviour
PostEvent
fromxtk:workflow
to send an event to a signal in a workflowActual Behaviour
The SDK throws an error because it's expecting the parameters to be inside a
variables
entity.Reproduce Scenario (including but not limited to)
Just use the SDK and call
PostEvent
method:await NLWS.xtkWorkflow.postEvent(name, 'signal', '', variables, false);
Steps to Reproduce
Platform and Version
Sample Code that illustrates the problem
Please see above
Logs taken while reproducing problem
The SDK throws an error when I try to use
PostEvent
fromxtk:workflow
schema. The error says that Parameters must be inside a 'variables
' entity (instead of 'parameters
'). I took a look at the code and it looks like the XML element name is overriden for methodStartWithParameters
only.Is there a reason this hack is not implemented for the other methods?
PostEvent
for example?