Class ProcessHandler

  • All Implemented Interfaces:
    io.automatiko.engine.workflow.compiler.xml.Handler

    public class ProcessHandler
    extends io.automatiko.engine.workflow.compiler.xml.BaseAbstractHandler
    implements io.automatiko.engine.workflow.compiler.xml.Handler
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessHandler()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void addCompensationScope​(io.automatiko.engine.workflow.process.executable.core.ExecutableProcess process, io.automatiko.engine.api.definition.process.Node node, io.automatiko.engine.api.definition.process.NodeContainer parentContainer, String compensationHandlerId)  
      static io.automatiko.engine.workflow.process.core.impl.ConsequenceAction createJavaAction​(io.automatiko.engine.workflow.base.instance.impl.Action action)  
      Object end​(String uri, String localName, io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser)  
      protected String findVariable​(String variableName, io.automatiko.engine.workflow.base.core.context.variable.VariableScope variableScope)
      Finds the right variable by its name to make sure that when given as id it will be also matched
      Class<?> generateNodeFor()  
      protected void handleIntermediateOrEndThrowCompensationEvent​(io.automatiko.engine.workflow.process.core.impl.ExtendedNodeImpl throwEventNode)  
      static void linkAssociations​(Definitions definitions, io.automatiko.engine.api.definition.process.NodeContainer nodeContainer, List<Association> associations)  
      protected void linkBoundaryCompensationEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer, io.automatiko.engine.api.definition.process.Node node, String attachedTo, io.automatiko.engine.api.definition.process.Node attachedNode)  
      protected void linkBoundaryConditionEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer, io.automatiko.engine.api.definition.process.Node node, String attachedTo, io.automatiko.engine.api.definition.process.Node attachedNode)  
      protected void linkBoundaryErrorEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer, io.automatiko.engine.api.definition.process.Node node, String attachedTo, io.automatiko.engine.api.definition.process.Node attachedNode)  
      protected void linkBoundaryEscalationEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer, io.automatiko.engine.api.definition.process.Node node, String attachedTo, io.automatiko.engine.api.definition.process.Node attachedNode)  
      void linkBoundaryEvents​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer)  
      protected void linkBoundarySignalEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer, io.automatiko.engine.api.definition.process.Node node, String attachedTo, io.automatiko.engine.api.definition.process.Node attachedNode)  
      protected void linkBoundaryTimerEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer, io.automatiko.engine.api.definition.process.Node node, String attachedTo, io.automatiko.engine.api.definition.process.Node attachedNode)  
      void linkConnections​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer, List<SequenceFlow> connections)  
      static void linkIntermediateLinks​(io.automatiko.engine.api.definition.process.NodeContainer process, List<IntermediateLink> links)  
      protected void processTags​(io.automatiko.engine.api.definition.process.WorkflowProcess process)  
      Object start​(String uri, String localName, Attributes attrs, io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser)  
      • Methods inherited from class io.automatiko.engine.workflow.compiler.xml.BaseAbstractHandler

        allowNesting, emptyAttributeCheck, emptyContentCheck, getValidParents, getValidPeers
      • Methods inherited from interface io.automatiko.engine.workflow.compiler.xml.Handler

        allowNesting, getValidParents, getValidPeers
    • Constructor Detail

      • ProcessHandler

        public ProcessHandler()
    • Method Detail

      • start

        public Object start​(String uri,
                            String localName,
                            Attributes attrs,
                            io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser)
                     throws SAXException
        Specified by:
        start in interface io.automatiko.engine.workflow.compiler.xml.Handler
        Throws:
        SAXException
      • end

        public Object end​(String uri,
                          String localName,
                          io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser)
                   throws SAXException
        Specified by:
        end in interface io.automatiko.engine.workflow.compiler.xml.Handler
        Throws:
        SAXException
      • linkIntermediateLinks

        public static void linkIntermediateLinks​(io.automatiko.engine.api.definition.process.NodeContainer process,
                                                 List<IntermediateLink> links)
      • generateNodeFor

        public Class<?> generateNodeFor()
        Specified by:
        generateNodeFor in interface io.automatiko.engine.workflow.compiler.xml.Handler
      • linkConnections

        public void linkConnections​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer,
                                    List<SequenceFlow> connections)
      • linkBoundaryEvents

        public void linkBoundaryEvents​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer)
      • linkBoundaryEscalationEvent

        protected void linkBoundaryEscalationEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer,
                                                   io.automatiko.engine.api.definition.process.Node node,
                                                   String attachedTo,
                                                   io.automatiko.engine.api.definition.process.Node attachedNode)
      • linkBoundaryErrorEvent

        protected void linkBoundaryErrorEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer,
                                              io.automatiko.engine.api.definition.process.Node node,
                                              String attachedTo,
                                              io.automatiko.engine.api.definition.process.Node attachedNode)
      • linkBoundaryTimerEvent

        protected void linkBoundaryTimerEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer,
                                              io.automatiko.engine.api.definition.process.Node node,
                                              String attachedTo,
                                              io.automatiko.engine.api.definition.process.Node attachedNode)
      • linkBoundaryCompensationEvent

        protected void linkBoundaryCompensationEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer,
                                                     io.automatiko.engine.api.definition.process.Node node,
                                                     String attachedTo,
                                                     io.automatiko.engine.api.definition.process.Node attachedNode)
      • linkBoundarySignalEvent

        protected void linkBoundarySignalEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer,
                                               io.automatiko.engine.api.definition.process.Node node,
                                               String attachedTo,
                                               io.automatiko.engine.api.definition.process.Node attachedNode)
      • linkBoundaryConditionEvent

        protected void linkBoundaryConditionEvent​(io.automatiko.engine.api.definition.process.NodeContainer nodeContainer,
                                                  io.automatiko.engine.api.definition.process.Node node,
                                                  String attachedTo,
                                                  io.automatiko.engine.api.definition.process.Node attachedNode)
      • linkAssociations

        public static void linkAssociations​(Definitions definitions,
                                            io.automatiko.engine.api.definition.process.NodeContainer nodeContainer,
                                            List<Association> associations)
      • addCompensationScope

        protected static void addCompensationScope​(io.automatiko.engine.workflow.process.executable.core.ExecutableProcess process,
                                                   io.automatiko.engine.api.definition.process.Node node,
                                                   io.automatiko.engine.api.definition.process.NodeContainer parentContainer,
                                                   String compensationHandlerId)
      • handleIntermediateOrEndThrowCompensationEvent

        protected void handleIntermediateOrEndThrowCompensationEvent​(io.automatiko.engine.workflow.process.core.impl.ExtendedNodeImpl throwEventNode)
      • findVariable

        protected String findVariable​(String variableName,
                                      io.automatiko.engine.workflow.base.core.context.variable.VariableScope variableScope)
        Finds the right variable by its name to make sure that when given as id it will be also matched
        Parameters:
        variableName - name or id of the variable
        variableScope - VariableScope of given process
        Returns:
        returns found variable name or given 'variableName' otherwise
      • createJavaAction

        public static io.automatiko.engine.workflow.process.core.impl.ConsequenceAction createJavaAction​(io.automatiko.engine.workflow.base.instance.impl.Action action)
      • processTags

        protected void processTags​(io.automatiko.engine.api.definition.process.WorkflowProcess process)