Package jadex.bpmn

Class BpmnModelLoader


  • public class BpmnModelLoader
    extends AbstractModelLoader
    Loader for eclipse STP BPMN models (.bpmn files).
    • Field Detail

      • FILE_EXTENSION_BPMN

        public static final java.lang.String FILE_EXTENSION_BPMN
        The BPMN file extension.
        See Also:
        Constant Field Values
      • FILE_EXTENSION_BPMN2

        public static final java.lang.String FILE_EXTENSION_BPMN2
        The BPMN 2 file extension.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BpmnModelLoader

        public BpmnModelLoader()
        Create a new BPMN model loader.
    • Method Detail

      • loadBpmnModel

        public jadex.bpmn.model.MBpmnModel loadBpmnModel​(java.lang.String name,
                                                         java.lang.String[] imports,
                                                         java.lang.ClassLoader classloader,
                                                         java.lang.Object context)
                                                  throws java.lang.Exception
        Load a BPMN model.
        Parameters:
        name - The filename or logical name (resolved via imports and extensions).
        imports - The imports, if any.
        Throws:
        java.lang.Exception
      • doLoadModel

        protected ICacheableModel doLoadModel​(java.lang.String name,
                                              java.lang.String[] imports,
                                              ResourceInfo info,
                                              java.lang.ClassLoader classloader,
                                              java.lang.Object context)
                                       throws java.lang.Exception
        Load a model.
        Specified by:
        doLoadModel in class AbstractModelLoader
        Parameters:
        name - The original name (i.e. not filename).
        info - The resource info.
        Throws:
        java.lang.Exception