Configure CronEvent with runtime-evaluated description lambda

This commit is contained in:
Sipke Schoorstra 2019-09-26 18:38:32 +02:00
parent 2d70b4dc9f
commit 236b7bff67

View file

@ -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;