How to use inputs and outputs in json?I got an error!
When i define my workflows in JSON,vs warns me ‘No property or field 'XXX' exists in type 'Object'’. Why can't I find this field? How to get the value in output? Please help me, thank you!
Can you provide your JSON ?
Can you provide your JSON ?
{ "Id": "HelloWorld", "Version": 1, "Steps": [ { "Id": "HelloWorld", "StepType": "WorkflowCoreTest.Steps.HelloWorld, WorkflowCoreTest", "NextStepId": "GoodbyeWorld", "Inputs": { "BMI": "data.BMI" }, "Outputs": { "Messages": "step.Messages" } }, { "Id": "GoodbyeWorld", "StepType": "WorkflowCoreTest.Steps.GoodbyeWorld, WorkflowCoreTest", } ] }
You haven't set the DataType of your workflow - https://workflow-core.readthedocs.io/en/latest/json-yaml/
You haven't set the
DataTypeof your workflow - https://workflow-core.readthedocs.io/en/latest/json-yaml/
Sorry,i have one another question. How to spell my if condition? Just like"<<if(data=>data.XXX==‘’)>>"or"<<if(data.XXX==‘’)>>"?
{
"Id": "MyIfStep",
"StepType": "WorkflowCore.Primitives.If, WorkflowCore",
"NextStepId": "...",
"Inputs": { "Condition": "<
Here is the docs for the expression language - https://github.com/zzzprojects/System.Linq.Dynamic.Core/wiki/Dynamic-Expressions#expression-language