How to compose activities and build/run workflow dynamically? #2835
|
Hi, Thank for your great project! |
Answered by
sfmskywalker
Mar 14, 2022
Replies: 1 comment 2 replies
|
With Elsa 2, I don't think it's possible without making some drastic changes. // Some application code
var myCompositeActivity = new Composite
{
Root = new Sequence
{
new WriteLine("Wazzaa")
}
};
var workflow = new Workflow
{
Root = myCompositeActivity
}
workflowRunner.RunAsync(workflow);I realize this doesn't help you now though. |
2 replies
Answer selected by
zh6335901
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With Elsa 2, I don't think it's possible without making some drastic changes.
With Elsa 3 on the other hand, this can be done natively. There, you could do something like this:
I realize this doesn't help you now though.
Elsa 3 early preview should be available around May/June.