Skip to content

Clarification on DSL Step Input Binding and Expression Language Support #1354

@imiljkovic

Description

@imiljkovic

I'm working with workflow-core's JSON DSL, and I have a few questions regarding step input bindings:

  1. Is it strictly WorkflowData property mapping or is there a broader set of supported expressions?

From testing, it seems like expressions like the ternary operator work?

{
            "Id": "UpdateStatus",
            "Name": "Update Status",
            "StepType": "Test.UpdateFGStatusStep, Test",
            "Inputs": {
                "MessageId": "data.MessageId",
                "Status": "data.Status == \"approved\" ? \"sent\" : data.Status"
            }
}
  1. Are there any official docs or guidelines on what is allowed (property binding, static values, nested properties, etc.) inside the Inputs section of a step definition?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions