Configure CronEvent with runtime-evaluated description lambda
This commit is contained in:
parent
2d70b4dc9f
commit
236b7bff67
|
|
@ -15,6 +15,11 @@ namespace Elsa.Activities.Timers.Activities
|
|||
Category = "Timers",
|
||||
Description = "Triggers periodically based on a specified CRON expression."
|
||||
)]
|
||||
[ActivityDefinitionDesigner(
|
||||
Description =
|
||||
"x => !!x.state.cronExpression ? `<strong>${ x.state.cronExpression.expression }</strong>.` : x.definition.description",
|
||||
Outcomes = new[] { OutcomeNames.Done }
|
||||
)]
|
||||
public class CronEvent : Activity
|
||||
{
|
||||
private readonly IWorkflowExpressionEvaluator expressionEvaluator;
|
||||
|
|
|
|||
Loading…
Reference in a new issue