Spring Modules

Jbpm springmodules support does not support subprocesses

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: 0.8
  • Fix Version/s: None
  • Component/s: WORKFLOW
  • Description:
    Hide
    current springmodules worflow jbpm support performs process definition instantiation (using process definition factory) outside jbpmcontext, so that sub-process resolver (DbSubProcessResolver) cannot attach itself to the context and correctly resolve subprocesses.

    to solve this issue, processdefinition factory bean has to be instantiated with reference to the jbpm configuration used, so that it can open/create new context and parse process defintion within this context.

    i have also performed some modifications to localjbpmconfigurationfactorybean, to allow for list of process definition file locations be specified, and modified 'afterPropertiesSet()' method to perform processes definitions parsing INSIDE opened context.

    probably, to solve this issue, the whole idea of localjbpmconfigurationfactorybean and processdefinitionfactorybean has to be redesigned (case one), or parsing has to be allowed only within localjbpmconfigurationfactorybean, and then process definition factory won't be used anymore.

    additional idea, is to create deployer bean, fired from within of localjbpmconfigurationfactorybean after being configured, so that deployer's deploy() method will be called from within of localjbpmconfigurationfactory bean after factory has passed jbpmconfiguration to it.


    Show
    current springmodules worflow jbpm support performs process definition instantiation (using process definition factory) outside jbpmcontext, so that sub-process resolver (DbSubProcessResolver) cannot attach itself to the context and correctly resolve subprocesses. to solve this issue, processdefinition factory bean has to be instantiated with reference to the jbpm configuration used, so that it can open/create new context and parse process defintion within this context. i have also performed some modifications to localjbpmconfigurationfactorybean, to allow for list of process definition file locations be specified, and modified 'afterPropertiesSet()' method to perform processes definitions parsing INSIDE opened context. probably, to solve this issue, the whole idea of localjbpmconfigurationfactorybean and processdefinitionfactorybean has to be redesigned (case one), or parsing has to be allowed only within localjbpmconfigurationfactorybean, and then process definition factory won't be used anymore. additional idea, is to create deployer bean, fired from within of localjbpmconfigurationfactorybean after being configured, so that deployer's deploy() method will be called from within of localjbpmconfigurationfactory bean after factory has passed jbpmconfiguration to it.
  • Environment:
    springmodules v0.8, mule v1.4.3 standalone server, linux 2.6.22
  1. ProcessDefinitionLookupFactoryBean.java
    (2 kB)
    Summers Pittman
    29/Jan/08 12:48 PM

Issue Links

Activity

Hide
Summers Pittman added a comment - 25/Jan/08 4:15 PM
Konrad,

I have run into this issue as well. I was wondering if you solution used the stock code or if you had to customize. Some insight would be much appreciated.

Thanks,

Summers
Show
Summers Pittman added a comment - 25/Jan/08 4:15 PM Konrad, I have run into this issue as well. I was wondering if you solution used the stock code or if you had to customize. Some insight would be much appreciated. Thanks, Summers
Hide
Summers Pittman added a comment - 29/Jan/08 12:47 PM
I have been able to get subprocesses to load and process correctly.

I set processDefinitionsResources on the LocalJbpmConfigurationFactoryBean factory to the classpath location of my process definitions. Then I created and configured a ProcessDefinitionLookupFactoryBean which took in parameters jbpmConfiguration and workflowName.

I have attached the file to this issue for review/comment.

Summers
Show
Summers Pittman added a comment - 29/Jan/08 12:47 PM I have been able to get subprocesses to load and process correctly. I set processDefinitionsResources on the LocalJbpmConfigurationFactoryBean factory to the classpath location of my process definitions. Then I created and configured a ProcessDefinitionLookupFactoryBean which took in parameters jbpmConfiguration and workflowName. I have attached the file to this issue for review/comment. Summers

People

Dates

  • Created:
    22/Dec/07 9:03 PM
    Updated:
    01/Feb/08 10:31 AM

Time Tracking

Estimated:
3d
Original Estimate - 3d
Remaining:
3d
Remaining Estimate - 3d
Logged:
Not Specified
Time Spent - Not Specified