Skip to content
Discussion options

You must be logged in to vote

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:

// 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.
Elsa 3 early preview should be available around May/June.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sfmskywalker
Comment options

@zh6335901
Comment options

Answer selected by zh6335901
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2782 on March 14, 2022 14:45.