Activity Pickers (3.7-preview)
Overview
This section explains how to change the activity picker used in the workflow editor. Currently, two activity picker types are supported: Accordion (default) and Treeview.
Accordion
To use the Accordion activity picker, use the following line.
builder.Services.AddScoped<IActivityPickerComponentProvider, AccordionActivityPickerComponentProvider>();

When using nested activity categories, the accordion picker defaults to returning the first category within the string. You are able to change this behaviour by specifying your own CategoryDisplayResolver
.
builder.Services.AddScoped<IActivityPickerComponentProvider>(sp => new AccordionActivityPickerComponentProvider
{
// Example - Replace the default category resolver with a custom one.
CategoryDisplayResolver = category => category.Split('/').Last().Trim()
});
Treeview
To use the TreeView activity picker, add the following line.
builder.Services.AddScoped<IActivityPickerComponentProvider, TreeviewActivityPickerComponentProvider>();

Last updated