Class OpenDSLWorkflow
- 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 Summary
Fields Modifier and Type Field Description static String
PROCESS_VARIABLE
-
Constructor Summary
Constructors Constructor Description OpenDSLWorkflow(OpenDSLContext context)
-
Method Summary
Modifier and Type Method Description void
endPhase(String status, String message)
WorkflowPhase
getCurrentPhase()
void
reschedule(long delay)
Var
runWorkflow(VarWorkflow workflow, VarDynamicObject input, VarDynamicObject output)
void
startPhase(String phase)
Var
visitAbort(com.walkfares.odsl.grammar.OpenDSLParser.AbortContext ctx)
Visit a parse tree produced byOpenDSLParser.abort()
.Var
visitAction(com.walkfares.odsl.grammar.OpenDSLParser.ActionContext ctx)
Visit a parse tree produced byOpenDSLParser.action()
.Var
visitDeclaredType(com.walkfares.odsl.grammar.OpenDSLParser.DeclaredTypeContext ctx)
Visit a parse tree produced byOpenDSLParser.declaredType()
.Var
visitExtractor(com.walkfares.odsl.grammar.OpenDSLParser.ExtractorContext ctx)
Visit a parse tree produced byOpenDSLParser.extractor()
.Var
visitFail(com.walkfares.odsl.grammar.OpenDSLParser.FailContext ctx)
Visit a parse tree produced byOpenDSLParser.fail()
.Var
visitInnerObjectDeclaration(com.walkfares.odsl.grammar.OpenDSLParser.ObjectDeclarationContext ctx)
Var
visitObjectDeclaration(com.walkfares.odsl.grammar.OpenDSLParser.ObjectDeclarationContext ctx)
Visit a parse tree produced byOpenDSLParser.objectDeclaration()
.Var
visitPhase(com.walkfares.odsl.grammar.OpenDSLParser.PhaseContext ctx)
Visit a parse tree produced byOpenDSLParser.phase()
.Var
visitPublish(com.walkfares.odsl.grammar.OpenDSLParser.PublishContext ctx)
Visit a parse tree produced byOpenDSLParser.publish()
.Var
visitReschedule(com.walkfares.odsl.grammar.OpenDSLParser.RescheduleContext ctx)
Visit a parse tree produced byOpenDSLParser.reschedule()
.Var
visitRun(com.walkfares.odsl.grammar.OpenDSLParser.RunContext ctx)
Visit a parse tree produced byOpenDSLParser.run()
.Var
visitSend(com.walkfares.odsl.grammar.OpenDSLParser.SendContext ctx)
Visit a parse tree produced byOpenDSLParser.send()
.Var
visitSendmail(com.walkfares.odsl.grammar.OpenDSLParser.SendmailContext ctx)
sendmail: SENDMAIL variable TO dest=varname? (WITH template=varname)?;Var
visitTransformer(com.walkfares.odsl.grammar.OpenDSLParser.TransformerContext ctx)
Visit a parse tree produced byOpenDSLParser.transformer()
.Var
visitTypeDeclaration(com.walkfares.odsl.grammar.OpenDSLParser.TypeDeclarationContext ctx)
Visit a parse tree produced byOpenDSLParser.typeDeclaration()
.Var
visitVarname(com.walkfares.odsl.grammar.OpenDSLParser.VarnameContext ctx)
Visit a parse tree produced byOpenDSLParser.varname()
.Var
visitWorkflow(com.walkfares.odsl.grammar.OpenDSLParser.WorkflowContext ctx)
Visit a parse tree produced byOpenDSLParser.workflow()
.Var
visitWorkflowAction(com.walkfares.odsl.grammar.OpenDSLParser.WorkflowActionContext ctx)
Visit a parse tree produced byOpenDSLParser.workflowAction()
.Var
visitWorkflowEvent(com.walkfares.odsl.grammar.OpenDSLParser.WorkflowEventContext ctx)
Visit a parse tree produced byOpenDSLParser.workflowEvent()
.Var
visitWorkflowGateway(com.walkfares.odsl.grammar.OpenDSLParser.WorkflowGatewayContext ctx)
Visit a parse tree produced byOpenDSLParser.workflowGateway()
.Var
visitWorkflowWorkflow(com.walkfares.odsl.grammar.OpenDSLParser.WorkflowWorkflowContext ctx)
Visit a parse tree produced byOpenDSLParser.workflowWorkflow()
.Methods inherited from class com.walkfares.odsl.OpenDSLFunction
visitFunction, visitFunctionbody, visitStart
Methods inherited from class com.walkfares.odsl.OpenDSLControlVisitor
visitCondition, visitForeach, visitForstmt, visitIfstmt, visitSingleLineIfExpression, visitSingleLineIfStatement, visitTransformFor, visitTransformIf, visitWhilestmt
Methods inherited from class com.walkfares.odsl.OpenDSLVarVisitor
addLogMessage, callFunction, changeModule, getContext, getCurrentLine, getProperty, getPropertyParent, getUDF, getUDF, getVarHelper, matches, newInstance, save, setEOFEndsExecution, visitActivevar, visitAddingExpression, visitArray, visitArrayexpression, visitArrayindex, visitArrayinitialiser, visitAssign, visitAssignee, visitAvservice, visitConditionalExpression, visitDateexpression, visitErrors, visitExponentExpression, visitExpression, visitExtractCheck, visitExtractClick, visitExtractFill, visitExtractParam, visitExtractSelect, visitFunctioncall, visitId, visitInteger, visitMethod, visitMethod, visitMethodbody, visitMultiplyExpression, visitNumber, visitPrint, visitProperty, visitRelationalExpression, visitRowexpression, visitScalarvar, visitSingularExpression, visitStatement, visitString, visitTagstmt, visitTf, visitUnevaluatedExpression, visitVariable, visitVersion
Methods inherited from class com.walkfares.odsl.grammar.OpenDSLBaseVisitor
visitActionExit, visitActionInput, visitActionOutput, visitAddField, visitAggregate, visitAggregationOptions, visitAggregationPipeline, visitArraycondition, visitArrayindex, visitBucketOutput, visitComment, visitControl, visitCreateIndex, visitDate, visitDelete, visitDeleteBulk, visitDynamicname, visitErrorText, visitExpressionOrCondition, visitExtract, visitFacetItem, visitFind, visitFoldingrange, visitFunctionparam, visitGranularity, visitGroupAssign, visitImportscript, visitIndexcollation, visitIndexcollationitem, visitIndexfield, visitIndexoptions, visitIndexpartial, visitIndexttl, visitJsonElement, visitJsonObject, visitLink, visitLinkType, visitLog, visitLogout, visitMlVarname, visitNl, visitObjectDefinition, visitPipelineAddFields, visitPipelineBucket, visitPipelineBucketauto, visitPipelineCount, visitPipelineDocuments, visitPipelineFacet, visitPipelineGeoNear, visitPipelineGraphLookup, visitPipelineGroup, visitPipelineItem, visitPipelineLimit, visitPipelineLookup, visitPipelineMatch, visitPipelineMerge, visitPipelineOperator, visitPipelineOut, visitPipelineProject, visitPipelineRedact, visitPipelineReplaceRoot, visitPipelineReplaceWith, visitPipelineSample, visitPipelineSkip, visitPipelineSort, visitPipelineSortByCount, visitPipelineUnwind, visitPprojectField, visitPrint, visitProject, visitProjectField, visitPublicvar, visitQualityCheck, visitQualityCheckProfile, visitQualityCheckProfileParams, visitQualityCheckWithChecks, visitRename, visitReturnstmt, visitSave, visitSet, visitSortItem, visitThrowerror, visitTransform, visitTransformClear, visitTransformCreate, visitTransformIgnore, visitTransformOptions, visitTransformUnique, visitTrigger, visitTypeBucket, visitTypeConstraint, visitTypeDefinition, visitTypeEditor, visitTypeExpression, visitTypeMethod, visitTypeMethodParams, visitTypeProperty, visitTypeSmartData, visitUpdateBulk, visitUpdateOperator, visitUpdateOperatorParam, visitUse, visitWaitcmd, visitWorkflowBody, visitWorkflowStart, visitWorkflowTransition
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Field Details
-
PROCESS_VARIABLE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
visitRun
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.run()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitPhase
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.phase()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitFail
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.fail()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitAbort
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.abort()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitReschedule
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.reschedule()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitWorkflow
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.workflow()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
runWorkflow
- Overrides:
runWorkflow
in classOpenDSLVarVisitor
-
startPhase
-
endPhase
-
reschedule
public void reschedule(long delay) -
getCurrentPhase
-
visitWorkflowAction
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.workflowAction()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
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 byOpenDSLParser.workflowGateway()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
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 byOpenDSLParser.workflowWorkflow()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitWorkflowEvent
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.workflowEvent()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitAction
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.action()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitSend
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.send()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitPublish
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.publish()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitSendmail
sendmail: SENDMAIL variable TO dest=varname? (WITH template=varname)?; -
visitVarname
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.varname()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitTransformer
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.transformer()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitExtractor
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.extractor()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
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 byOpenDSLParser.typeDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitDeclaredType
Description copied from class:com.walkfares.odsl.grammar.OpenDSLBaseVisitor
Visit a parse tree produced byOpenDSLParser.declaredType()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDeclaredType
in interfacecom.walkfares.odsl.grammar.OpenDSLVisitor<Var>
- Overrides:
visitDeclaredType
in classOpenDSLVarVisitor
- 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 byOpenDSLParser.objectDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitInnerObjectDeclaration
public Var visitInnerObjectDeclaration(com.walkfares.odsl.grammar.OpenDSLParser.ObjectDeclarationContext ctx)
-