[jboss-user] [JBoss jBPM] - Re: jBPM or pages.xml overloading / extending / composition

kukeltje do-not-reply at jboss.com
Thu Jun 28 09:06:41 EDT 2007


if you want it now, apply this patch to the source of 3.2.1


  | ### Eclipse Workspace Patch 1.0
  | #P jbpm.3-clean
  | Index: jpdl/jar/src/main/java/org/jbpm/graph/node/ProcessState.java
  | ===================================================================
  | RCS file: /cvsroot/jbpm/jbpm.3/jpdl/jar/src/main/java/org/jbpm/graph/node/ProcessState.java,v
  | retrieving revision 1.3
  | diff -u -r1.3 ProcessState.java
  | --- jpdl/jar/src/main/java/org/jbpm/graph/node/ProcessState.java	15 Nov 2006 12:51:07 -0000	1.3
  | +++ jpdl/jar/src/main/java/org/jbpm/graph/node/ProcessState.java	28 Jun 2007 13:04:57 -0000
  | @@ -62,6 +62,7 @@
  |  import org.jbpm.graph.exe.Token;
  |  import org.jbpm.graph.log.NodeLog;
  |  import org.jbpm.graph.log.ProcessStateLog;
  | +import org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator;
  |  import org.jbpm.jpdl.xml.JpdlXmlReader;
  |  import org.jbpm.jpdl.xml.Parsable;
  |  
  | @@ -147,9 +148,14 @@
  |         ) {
  |        SubProcessResolver subProcessResolver = getSubProcessResolver();
  |        List attributes = new ArrayList();
  | -      attributes.add(new FlyweightAttribute("name", subProcessName));
  | +      String subProcessNameResolved = (String) JbpmExpressionEvaluator.evaluate(subProcessName, executionContext);
  | +      if (log.isDebugEnabled()) {
  | +          log.debug("SubProcessName after eval: " + subProcessNameResolved);
  | +      }
  | +      attributes.add(new FlyweightAttribute("name", subProcessNameResolved));
  |        Element subProcessElement = new DefaultElement("sub-process");
  |        subProcessElement.setAttributes(attributes);
  | +
  |        usedSubProcessDefinition = subProcessResolver.findSubProcess(subProcessElement);
  |      }
  |  
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058718#4058718

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058718



More information about the jboss-user mailing list