Class OpenDSLWorkflow

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
All Implemented Interfaces:
com.walkfares.odsl.grammar.OpenDSLVisitor<Var>, org.antlr.v4.runtime.tree.ParseTreeVisitor<Var>
Direct Known Subclasses:
OpenDSLSearch

public class OpenDSLWorkflow
extends OpenDSLFunction
  • Field Details

  • Constructor Details

  • Method Details

    • visitRun

      public Var visitRun​(com.walkfares.odsl.grammar.OpenDSLParser.RunContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.run().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitRun in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitRun in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitPhase

      public Var visitPhase​(com.walkfares.odsl.grammar.OpenDSLParser.PhaseContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.phase().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitPhase in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitPhase in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitFail

      public Var visitFail​(com.walkfares.odsl.grammar.OpenDSLParser.FailContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.fail().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitFail in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitFail in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitAbort

      public Var visitAbort​(com.walkfares.odsl.grammar.OpenDSLParser.AbortContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.abort().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitAbort in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitAbort in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitReschedule

      public Var visitReschedule​(com.walkfares.odsl.grammar.OpenDSLParser.RescheduleContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.reschedule().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitReschedule in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitReschedule in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitWorkflow

      public Var visitWorkflow​(com.walkfares.odsl.grammar.OpenDSLParser.WorkflowContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.workflow().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitWorkflow in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitWorkflow in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • runWorkflow

      public Var runWorkflow​(VarWorkflow workflow, VarDynamicObject input, VarDynamicObject output)
      Overrides:
      runWorkflow in class OpenDSLVarVisitor
    • startPhase

      public void startPhase​(String phase)
    • endPhase

      public void endPhase​(String status, String message)
    • reschedule

      public void reschedule​(long delay)
    • getCurrentPhase

      public WorkflowPhase getCurrentPhase()
    • visitWorkflowAction

      public Var visitWorkflowAction​(com.walkfares.odsl.grammar.OpenDSLParser.WorkflowActionContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.workflowAction().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitWorkflowAction in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitWorkflowAction in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitWorkflowGateway

      public Var visitWorkflowGateway​(com.walkfares.odsl.grammar.OpenDSLParser.WorkflowGatewayContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.workflowGateway().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitWorkflowGateway in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitWorkflowGateway in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitWorkflowWorkflow

      public Var visitWorkflowWorkflow​(com.walkfares.odsl.grammar.OpenDSLParser.WorkflowWorkflowContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.workflowWorkflow().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitWorkflowWorkflow in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitWorkflowWorkflow in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitWorkflowEvent

      public Var visitWorkflowEvent​(com.walkfares.odsl.grammar.OpenDSLParser.WorkflowEventContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.workflowEvent().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitWorkflowEvent in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitWorkflowEvent in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitAction

      public Var visitAction​(com.walkfares.odsl.grammar.OpenDSLParser.ActionContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.action().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitAction in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitAction in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitSend

      public Var visitSend​(com.walkfares.odsl.grammar.OpenDSLParser.SendContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.send().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitSend in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitSend in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitPublish

      public Var visitPublish​(com.walkfares.odsl.grammar.OpenDSLParser.PublishContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.publish().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitPublish in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitPublish in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitSendmail

      public Var visitSendmail​(com.walkfares.odsl.grammar.OpenDSLParser.SendmailContext ctx)
      sendmail: SENDMAIL variable TO dest=varname? (WITH template=varname)?;
      Specified by:
      visitSendmail in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitSendmail in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitVarname

      public Var visitVarname​(com.walkfares.odsl.grammar.OpenDSLParser.VarnameContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.varname().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitVarname in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitVarname in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitTransformer

      public Var visitTransformer​(com.walkfares.odsl.grammar.OpenDSLParser.TransformerContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.transformer().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitTransformer in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitTransformer in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitExtractor

      public Var visitExtractor​(com.walkfares.odsl.grammar.OpenDSLParser.ExtractorContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.extractor().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitExtractor in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitExtractor in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitTypeDeclaration

      public Var visitTypeDeclaration​(com.walkfares.odsl.grammar.OpenDSLParser.TypeDeclarationContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.typeDeclaration().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitTypeDeclaration in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitTypeDeclaration in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitDeclaredType

      public Var visitDeclaredType​(com.walkfares.odsl.grammar.OpenDSLParser.DeclaredTypeContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.declaredType().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitDeclaredType in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitDeclaredType in class OpenDSLVarVisitor
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitObjectDeclaration

      public Var visitObjectDeclaration​(com.walkfares.odsl.grammar.OpenDSLParser.ObjectDeclarationContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.objectDeclaration().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitObjectDeclaration in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitObjectDeclaration in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitInnerObjectDeclaration

      public Var visitInnerObjectDeclaration​(com.walkfares.odsl.grammar.OpenDSLParser.ObjectDeclarationContext ctx)