[jbpm-commits] JBoss JBPM SVN: r6575 - jbpm4/trunk/modules/jpdl/src/main/java/org/jbpm/jpdl/internal/xml.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Aug 11 09:56:21 EDT 2010


Author: rebody
Date: 2010-08-11 09:56:21 -0400 (Wed, 11 Aug 2010)
New Revision: 6575

Modified:
   jbpm4/trunk/modules/jpdl/src/main/java/org/jbpm/jpdl/internal/xml/JpdlParser.java
Log:
add jbpm-4.5.xsd to JpdlParser

Modified: jbpm4/trunk/modules/jpdl/src/main/java/org/jbpm/jpdl/internal/xml/JpdlParser.java
===================================================================
--- jbpm4/trunk/modules/jpdl/src/main/java/org/jbpm/jpdl/internal/xml/JpdlParser.java	2010-08-11 13:52:37 UTC (rev 6574)
+++ jbpm4/trunk/modules/jpdl/src/main/java/org/jbpm/jpdl/internal/xml/JpdlParser.java	2010-08-11 13:56:21 UTC (rev 6575)
@@ -86,15 +86,16 @@
   public static final String NAMESPACE_JPDL_42 = "http://jbpm.org/4.2/jpdl";
   public static final String NAMESPACE_JPDL_43 = "http://jbpm.org/4.3/jpdl";
   public static final String NAMESPACE_JPDL_44 = "http://jbpm.org/4.4/jpdl";
+  public static final String NAMESPACE_JPDL_45 = "http://jbpm.org/4.5/jpdl";
 
-  public static final String CURRENT_VERSION_JBPM = "4.4";
+  public static final String CURRENT_VERSION_JBPM = "4.5";
   public static final String CURRENT_VERSION_NAMESPACE =
     "http://jbpm.org/" + CURRENT_VERSION_JBPM + "/jpdl";
   public static final String CURRENT_VERSION_PROCESS_LANGUAGE_ID =
     "jpdl-" + CURRENT_VERSION_JBPM;
 
   private static final String[] SCHEMA_RESOURCES =
-    { "jpdl-4.0.xsd", "jpdl-4.2.xsd", "jpdl-4.3.xsd", "jpdl-4.4.xsd" };
+    { "jpdl-4.0.xsd", "jpdl-4.2.xsd", "jpdl-4.3.xsd", "jpdl-4.4.xsd", "jpdl-4.5.xsd" };
 
   // array elements are mutable, even when final
   // never make a static array public
@@ -119,7 +120,9 @@
       if (resourceUrls.hasMoreElements()) {
         while (resourceUrls.hasMoreElements()) {
           URL resourceUrl = resourceUrls.nextElement();
-          log.trace("loading jpdl bindings from resource: " + resourceUrl);
+          if (log.isTraceEnabled()) {
+            log.trace("loading jpdl bindings from resource: " + resourceUrl);
+          }
           jpdlBindingsParser.createParse()
             .setUrl(resourceUrl)
             .contextMapPut(Parse.CONTEXT_KEY_BINDINGS, bindings)
@@ -128,7 +131,9 @@
         }
       }
       else {
-        log.trace("skipping unavailable jpdl activities resource: " + activityResource);
+        if (log.isTraceEnabled()) {
+          log.trace("skipping unavailable jpdl activities resource: " + activityResource);
+        }
       }
     }
   }
@@ -289,7 +294,9 @@
 
       JpdlBinding activityBinding = (JpdlBinding) getBinding(nestedElement, CATEGORY_ACTIVITY);
       if (activityBinding == null) {
-        log.debug("unrecognized activity: " + tagName);
+        if (log.isDebugEnabled()) {
+          log.debug("unrecognized activity: " + tagName);
+        }
         continue;
       }
 



More information about the jbpm-commits mailing list