Can we set customWorkflowDefinitionId to workflow while registrating workflow in registry? #4916
Replies: 1 comment
-
To set a custom Here's an example of how you might define a custom public class MyCustomWorkflow : IWorkflow
{
public string Id { get; } = "my-custom-workflow-id";
public void Build(IWorkflowBuilder builder)
{
builder
.WithId(Id)
.StartWith<SomeActivity>()
// ... other activities
.Then<SomeOtherActivity>();
}
} In the above example, the If you are using the Elsa Dashboard or the REST API to create workflows, the Please note that the exact method to set a custom If you need further clarification or if you are encountering issues, please provide more details about the version of Elsa you are using and the context in which you are trying to set the |
Beta Was this translation helpful? Give feedback.
-
Observed that, Id of customworkflow is same as ClassName of that customworkflow. It seems, it get sets when we register. So is there Can we set customWorkflowDefinitionId to workflow, if yes, how to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions