dapr icon indicating copy to clipboard operation
dapr copied to clipboard

Custom workflows

Open daneel3001 opened this issue 1 year ago • 4 comments

Hello

Is the capability of publishing Custom Workflows in Dapr considered ? Scenario: I would like to enable the Workflow functionality in a software whereby it is possible to publish a workflow definition entirely from code and then of publishing it to the Dapr Workflow component.

I have parsed the documentation and I cannot find any reference to this capability.

Thanks

daneel3001 avatar Jun 24 '24 16:06 daneel3001

workflows are entirely based in code, so I'm a little unsure how what you're asking for differs from what exists today.

Can you provide an example of what this would look like?

olitomlinson avatar Jun 26 '24 06:06 olitomlinson

workflows are entirely based in code, so I'm a little unsure how what you're asking for differs from what exists today.

Can you provide an example of what this would look like?

I understand it's today based on code. I wanted to know if there is a plan to be able to declaratively describe a workflow along its policies and then publish it to the runtime. The scenario is indeed workflows that aren't known ahead of time and configured by users via a dedicated component.

daneel3001 avatar Jun 26 '24 07:06 daneel3001

@daneel3001 The current implementation is based on the approach taken by the Durable Task framework and I haven't seen any mention here or there of some sort of configuration-based generative approach like what I think you're describing.

Fundamentally, I don't think that would be possible with how the workflows work today. Under the hood, they're serving their various activities to run atop Actors which themselves don't support a configuration-based approach.

While you might be able to parameterize what it is that happens based on the options you pass in, Workflows doesn't facilitate an on-demand flow composition experience like what you might get from an implementation of Reaqtor or the like and several large additional components would need to be added to even imagine such a broad capability.

WhitWaldo avatar Jun 28 '24 04:06 WhitWaldo

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Aug 27 '24 04:08 dapr-bot

This issue has been automatically closed because it has not had activity in the last 67 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.

dapr-bot avatar Sep 03 '24 04:09 dapr-bot