Class AbstractNodeHandler

    • Constructor Detail

      • AbstractNodeHandler

        public AbstractNodeHandler()
    • Method Detail

      • initValidParents

        protected void initValidParents()
      • initValidPeers

        protected void initValidPeers()
      • 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
      • createNode

        protected abstract io.automatiko.engine.workflow.process.core.Node createNode​(Attributes attrs)
      • 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
      • handleNode

        protected void handleNode​(io.automatiko.engine.workflow.process.core.Node node,
                                  Element element,
                                  String uri,
                                  String localName,
                                  io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser)
                           throws SAXException
        Throws:
        SAXException
      • writeNode

        public abstract void writeNode​(io.automatiko.engine.workflow.process.core.Node node,
                                       StringBuilder xmlDump,
                                       int metaDataType)
      • writeNode

        protected void writeNode​(String name,
                                 io.automatiko.engine.workflow.process.core.Node node,
                                 StringBuilder xmlDump,
                                 int metaDataType)
      • handleScript

        protected void handleScript​(io.automatiko.engine.workflow.process.core.impl.ExtendedNodeImpl node,
                                    Element element,
                                    String type)
      • extractScript

        public static io.automatiko.engine.workflow.process.core.ProcessAction extractScript​(Element xmlNode)
      • writeMetaData

        protected void writeMetaData​(io.automatiko.engine.workflow.process.core.Node node,
                                     StringBuilder xmlDump)
      • getMetaData

        protected Map<String,​Object> getMetaData​(io.automatiko.engine.workflow.process.core.Node node)
      • writeExtensionElements

        protected void writeExtensionElements​(io.automatiko.engine.workflow.process.core.Node node,
                                              StringBuilder xmlDump)
      • containsExtensionElements

        protected boolean containsExtensionElements​(io.automatiko.engine.workflow.process.core.Node node)
      • writeScripts

        protected void writeScripts​(String type,
                                    List<io.automatiko.engine.workflow.process.core.ProcessAction> actions,
                                    StringBuilder xmlDump)
      • writeScript

        public static void writeScript​(io.automatiko.engine.workflow.process.core.ProcessAction action,
                                       String type,
                                       StringBuilder xmlDump)
      • readDataInputAssociation

        protected void readDataInputAssociation​(Node xmlNode,
                                                Map<String,​String> forEachNodeInputAssociation)
      • readDataOutputAssociation

        protected void readDataOutputAssociation​(Node xmlNode,
                                                 Map<String,​String> forEachNodeOutputAssociation)
      • readMultiInstanceLoopCharacteristics

        protected void readMultiInstanceLoopCharacteristics​(Node xmlNode,
                                                            io.automatiko.engine.workflow.process.core.node.ForEachNode forEachNode,
                                                            io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser)
      • getErrorIdForErrorCode

        protected String getErrorIdForErrorCode​(String errorCode,
                                                io.automatiko.engine.workflow.process.core.Node node)
      • handleThrowCompensationEventNode

        protected void handleThrowCompensationEventNode​(io.automatiko.engine.workflow.process.core.Node node,
                                                        Element element,
                                                        String uri,
                                                        String localName,
                                                        io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser)
      • writeVariableName

        protected void writeVariableName​(io.automatiko.engine.workflow.process.core.node.EventNode eventNode,
                                         StringBuilder xmlDump)
      • checkSignalAndConvertToRealSignalNam

        protected String checkSignalAndConvertToRealSignalNam​(io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser,
                                                              String signalName)
      • findSignalByName

        protected Signal findSignalByName​(io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser,
                                          String signalName)
      • retrieveDataType

        protected String retrieveDataType​(String itemSubjectRef,
                                          String dtype,
                                          io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser)
      • findVariable

        protected String findVariable​(String variableName,
                                      io.automatiko.engine.workflow.compiler.xml.ExtensibleXmlParser parser)
        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
        parser - parser instance
        Returns:
        returns found variable name or given 'variableName' otherwise