Results 1 to 2 of 2

Thread: Acessing Spring-beans from jBPM actions not working

  1. #1
    Join Date
    May 2009
    Posts
    5

    Default Acessing Spring-beans from jBPM actions not working

    Hi,

    I'm kinda stuck with a wierd problem.
    what i'm trying to do is access Spring beans from jBPM actions.

    As said in the documentation, i did the mentioned steps.

    1)Define the ActionHandler in the spring config file.
    Code:
    <!-- BPM configuration -->
    	<bean id="jmsActionHandler"
    		class="com.bpm.JMSActionHandler" scope="singleton" >
    		<property name="msgSender" ref="workflowResponseSender" />
    	</bean>

    2) In the jBPM process definition, configure the action to use the spring proxy handler.
    Code:
    <node name="Success">
       <event type="node-enter">
    	<action name="sendSuccessMessage" config-type="bean"
    	class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy">
    	<targetBean>jmsActionHandler</targetBean> </action>
      </event>
     <transition name="trEnd" to="end"></transition>
    </node>
    I'm using
    • spring-modules-0.9 - spring-modules-jbpm31.jar

    • jbpm-jpdl-3.2.6


    Please let know what and where i'm gong wrong.
    Is it sumthing to do the versions that is been used?

    Thanks
    Ved

  2. #2

    Default Post configuration files.

    post your jbpm.cfg.xml , applicationContext.xml(Spring and jbm wiring)...
    /^\\ Pharaoh /^\\
    http://pharaohofkush.blogspot.com/

    Jeryl Cook

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •