(self)
return self._case_type
Get the case type from the nodeset or the function if possible
Get the case type from the nodeset or the function if possible
Get the case type from the nodeset or the function if possible
def case_type(self):
        """Get the case type from the nodeset or the function if possible
        """
        # Note that this does not support `additional_case_types`. If multiple case types are in use
        # then the case type will be inferred from the module case type.
        # See WorkflowHelper._add_missing_case_types
        def _extract_type(xpath):
            match = self.type_regex.search(xpath)
            return match.group(1) if match else None

        if not self._case_type:
            if self.nodeset:
                self._case_type = _extract_type(self.nodeset)
            elif self.function:
                self._case_type = _extract_type(self.function)

        return self._case_type
def case_type ( self ) : # Note that this does not support `additional_case_types`. If multiple case types are in use # then the case type will be inferred from the module case type. # See WorkflowHelper._add_missing_case_types def _extract_type ( xpath ) : match = self . type_regex . search ( xpath ) return match . group ( 1 ) if match else None if not self . _case_type : if self . nodeset : self . _case_type = _extract_type ( self . nodeset ) elif self . function : self . _case_type = _extract_type ( self . function ) return self . _case_type