-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get options/parameters in workflow #5202
Comments
To access the input parameter public class CodeGenerationWorkflow : WorkflowBase
{
protected override ValueTask BuildAsync(IWorkflowBuilder builder, CancellationToken cancellationToken = default)
{
builder
.StartWith<CustomActivity>()
.Then(/* ... other activities ... */);
return base.BuildAsync(builder, cancellationToken);
}
}
public class CustomActivity : Activity
{
protected override IActivityExecutionResult OnExecute(ActivityExecutionContext context)
{
// Retrieve the 'container' input parameter
var containerModel = context.GetInput<ContainerModel>("container");
// Use the containerModel as needed within your activity
// ...
return Done();
}
} In this example, Make sure to replace |
I would like to complain about the lack of documentation.
|
I passed this parameter to my workflow on elsa
now i want to get this value in my workflow
The text was updated successfully, but these errors were encountered: