1 Reply Latest reply on Jun 5, 2013 2:27 PM by mani.jorell

    Substituting Protobuf serialization to something else (binary, json etc)

    mani.jorell

      I am working on using jbpm as an embedded workflow engine in a wider system which is dependent on a new version of protobuf. I do not want to recompile jbpm/drool proto files (and having to regenerate jbpm/drools jars) each time the enclosing system upgrades to a new protobuf version. I think it will be easier to just shift to binary serialization or json. Anything other than protobufs. Does any one have experience with this that they can share or maybe point me to resources to accomplish this?

       

      I'd appreciate any help as this is quickly becoming a blocker for us. If there is a simple way to shift to another serialization mechanism that would be great.

        • 1. Re: Substituting Protobuf serialization to something else (binary, json etc)
          mani.jorell

          I'm am trying to add my own ObjectMarshallingStrategy by setting the relevant environment variable:

           

          env.set(EnvironmentName.OBJECT_MARSHALLING_STRATEGIES,  new org.drools.marshalling.ObjectMarshallingStrategy[] {new SomeMarshallingStrategy()});

           

           

          So far this doesn't seem to have any effect, it still goes to the ProtobufMarshaller and I'm still looking into it. But I wanted to report it here in case I'm on the wrong track. Or if someone know why setting this environment variable is not having any effect.