Results 1 to 3 of 3

Thread: Jbpm31 Module and Deploy Process

  1. #1
    Join Date
    Apr 2006
    Location
    Saint-Petersburg, Russia
    Posts
    50

    Default Jbpm31 Module and Deploy Process

    I just downloaded last version of jbpm31 module and migrated our web-application from approach got from jbpm (initialization of configuration with jbpm's org.jbpm.web.JbpmContextFilter) to use jbpmConfiguration via spring beanFactory.

    I'm using default settings I've got from spring-jbpm31 test for dataSource (only difference i'm using Postgres), transactionManager and jbpmConfiguration...

    Everything works fine.... but only for reading...

    Then I try to save something - it seems done well - but not really saved.
    It seems for me that we problem in transaction management... but I'm not very familiar with transactions in Spring... before migration to the Spring jbpm works fine without any transactions...


    So, how it is possible to make working correctly? For example this code I'm using for deploying new process definition:
    Code:
    ZipInputStream zis = new ZipInputStream(fileItem.getInputStream());
    JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
    processDefinition = ProcessDefinition.parseParZipInputStream(zis);
    jbpmContext.deployProcessDefinition(processDefinition);
    What I should add or change to see my process definition on the next web-page? (I cannot find it by id I had in deploy)

    Thank you for your advice
    With best regards,
    Alexey Kakunin
    EmForge: Liferay based project hosting service

  2. #2
    Join Date
    Apr 2006
    Location
    Saint-Petersburg, Russia
    Posts
    50

    Default I found the source of problem

    OK, I found the source of problem - JbpmContextFilter called jbpmContext.close() after processing the pages - this method commited hibernate transaction user in JBPM Context.

    So, I added this method into my code and everything started to work
    With best regards,
    Alexey Kakunin
    EmForge: Liferay based project hosting service

  3. #3
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    So is there something missing from the jbpm support or the problem was in your code?
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

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