1 Reply Latest reply on Sep 26, 2008 2:40 PM by cgo

    cannot retrieve variable in an asynchronous node

    cgo

      Hi,

      I have a process definition which at some point has the following structure

      node1(async=false) -> state -> node2(async=true)

      the issue I have is that the ActionHandler in node2 cannot retrieve a process variable that has been set in node1, the variable does not exist in the context instance, when I remove the async setting on node2 it works fine. Is that expected behaviour and if yes how can I solve this issue? I am using jbpm 3.2.3

      Thanks,
      Cyril

        • 1. Re: cannot retrieve variable in an asynchronous node
          cgo

          Replying to myself here, the issue was that the process was undeployed after state transition by the junit test involved, so it works now. However, now when accessing the variable in the asynchronous node it returns a org.jbpm.bytes.ByteArray object instead of my Serializable type in the ActionHandler, I end up with a ClassCastException, how do I get my original object?