/// <summary> /// execute : /// ON(ENTER STATE | EXIT STATE | ENTER AND EXIT STATE) /// (WHEN rule_conditions)? /// (WAITING delay BEFORE)? /// ( /// EXECUTE action+ (SET matchings)? /// | SET matchings /// ) /// ; /// </summary> /// <param name="context"></param> /// <returns></returns> public override object VisitExecute([NotNull] WorkflowParser.ExecuteContext context) { bool @in = context.ENTER() != null; bool @out = context.EXIT() != null; var r = (ResultRuleConfig)VisitExecute2(context.execute2()); return(@in, @out, r); }
/// <summary> /// Visit a parse tree produced by <see cref="WorkflowParser.execute"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitExecute([NotNull] WorkflowParser.ExecuteContext context) { return(VisitChildren(context)); }
/// <summary> /// execute : /// ON(ENTER STATE | EXIT STATE | ENTER AND EXIT STATE) /// (WHEN rule_conditions)? /// (WAITING delay BEFORE)? /// ( /// EXECUTE action+ (SET matchings)? /// | SET matchings /// ) /// ; /// </summary> /// <param name="context"></param> /// <returns></returns> public override object VisitExecute([NotNull] WorkflowParser.ExecuteContext context) { return(base.VisitExecute(context)); }