JBoss Community

jBPM 5.3.0 - Persistence fails a little bit

created by nt2005 in jBPM - View the full discussion

Hey Guys,

 

I upgraded my ear from 5.2.0 to 5.3.0. It seems to work fine but persistence fails. An example what I mean:

 

I have a global handler who goes in all workitems. In this handler I save text or pictures generated by the workitems.

 

 

GuiProcessHandler handler = new GuiProcessHandler();
         
// add any text example
handler.addText(123124124l, "Hello World");
            
Map<String, Object> params = new HashMap<String, Object>();
params.put("handler", handler);
 
// start a new process instance
ksession.startProcess(process_bpmn_id, params); //workitems make changes to the handler

 

In my BPMN-File the Handler looks like:

  <itemDefinition id="_handlerItem" />

 

And goes into each workitem with:

 

<task id="_100" name="DoIt" tns:taskName="doIt" >
  <ioSpecification>
    <dataInput id="_100_handlerInput" name="handler" />
    <inputSet>
      <dataInputRefs>_100_handlerInput</dataInputRefs>
    </inputSet>
  </ioSpecification>
  <dataInputAssociation>
    <sourceRef>handler</sourceRef>
    <targetRef>_100_handlerInput</targetRef>
  </dataInputAssociation>
</task>

 

After process is finish. I get all images out of the handler. Brilliant.

But if I reload the session and the process the handler only contains the text "Hello World"

 

Anyone have an idea? WIth jBPM 5.2 it works well.

 

I hope you could understood my problem. If not tell me. ;)

Reply to this message by going to Community

Start a new discussion in jBPM at Community