[jboss-user] [jBPM] - Re: Problem with starting process

Lukasz Kozerski do-not-reply at jboss.com
Wed Aug 24 03:21:20 EDT 2011


Lukasz Kozerski [http://community.jboss.org/people/lukasz.kozerski] created the discussion

"Re: Problem with starting process"

To view the discussion, visit: http://community.jboss.org/message/622587#622587

--------------------------------------------------------------
Please consider attached example ( http://community.jboss.org/servlet/JiveServlet/download/2034-171311-622346-39304/drools-serialization-test.zip http://community.jboss.org/servlet/JiveServlet/download/622346-39304/drools-serialization-test.zip).

There is one test method:
luk.SerializationTest.shouldSerializeVariable()

Right now it works fine. Script1 prints Foo: A, X and Script2 prints Foo: A, Y.

But if we change method of starting process from this:
        ksession.startProcess("process", parameters);
        // ProcessInstance process = ksession.createProcessInstance("process",
        // parameters);
        // long processId = process.getId();
        // ksession.startProcessInstance(processId);

to this:
        // ksession.startProcess("process", parameters);
        ProcessInstance process = ksession.createProcessInstance("process", parameters);
        long processId = process.getId();
        ksession.startProcessInstance(processId);

then Script2 isn't fired.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/622587#622587]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110824/8fcb00fc/attachment.html 


More information about the jboss-user mailing list