Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
[JBPM] how to load process defintion form directory in classpath ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [JBPM] how to load process defintion form directory in classpath ?

    Hello,

    I'am using JBPM with Struts (spring 2.0.8 and jbpm-spring 0.8). Actually, we load processes definitions from inside ear (ie /src/main/resources/jbpm/processDefinition.xml ).
    The application run with jboss (4.0.5-GA).

    We want to move process definition inside <JBOSS>/server/conf directory (ie <JBOSS>/server/conf/foo/bar/processDefinition.xml).

    We actually move some part of the applicationContext.xml in <JBOSS>/server/conf directory using <import/>

    ie :
    Code:
    <import resource="classpath*:**/${application.configurationExterne.path}/jbpmContext.xml" />
    where jbpmContext.xml is in <JBOSS>/server/conf/foo/

    this file contains references to process definitions like :

    Code:
    <bean id="workflow"
            class="org.springmodules.workflow.jbpm31.definition.ProcessDefinitionFactoryBean">
            <property name="definitionLocation"
                value="classpath:jbpm/workflow.xml" />
        </bean>
    This definition refere to an xml inside ear and it works.

    But when we try to refere xml in jboss/conf it doesn't work and we get a FileNotFoundException...

    ie :

    Code:
    <bean id="workflow"
            class="org.springmodules.workflow.jbpm31.definition.ProcessDefinitionFactoryBean">
            <property name="definitionLocation"
                value="classpath*:**/${application.configurationExterne.path}/workflow.xml" />
        </bean>
    don't work.

    Is there any way to have this case work ?

    Thanks.
Working...
X