Unknown workflow type "XYZWorkflow1". Known types are [XYZWorkflow]",

Hi Team,

when i change my workflow name from XYZWorkflow to XYZWorkflow1 from my workflow.json, i am getting below error.
Below is my sample workflow.json

{
	"id": "123456-2234-4a03-8716-f979f350e0c1",
	"name": "XYZWorkflow1",
	"description": "XYZ Workflow",
	"version": "1",
	"start": "<StateName to Start>",
	:::::::::::::::::::::
	:::::::::::::::::::::
	:::::::::::::::::::::
}

Is the name of the workflow should exactly match the workflow interface we use in the implementation?

My workflow implementation class is like below

@WorkflowInterface
public interface XYZWorkflow {

and

public class XYZWorkflowImpl implements XYZWorkflow {

You can specify the workflow type name explicitly through @WorkflowMethod.name annotation. If not specified it defaults to the short name of the workflow interface.

Thank you for the response @maxim

My requirement is to not to depend on interface or @WorkflowMethod.name for the workflow name. This should be generic and my workflow is always need to consider from the workflow.json as i am using the DSL and i have different workflow.json for each flow execution

Right now it is forcing me to have the workflow interface name is same as the workflow name specified in the json. And this josn is not a static. dynamically i will get this with same name or different name every time my flow starts

{
	"id": "123456-2234-4a03-8716-f979f350e0c1",
	"name": "XYZWorkflow1",
	"description": "XYZ Workflow",
	"version": "1",
	"start": "<StateName to Start>",
	:::::::::::::::::::::
	:::::::::::::::::::::
	:::::::::::::::::::::
}

I see. Use DynamicWorkflow for this.