Class ProtobufProcessMarshaller

  • All Implemented Interfaces:
    org.drools.core.marshalling.impl.ProcessMarshaller

    public class ProtobufProcessMarshaller
    extends Object
    implements org.drools.core.marshalling.impl.ProcessMarshaller
    • Constructor Detail

      • ProtobufProcessMarshaller

        public ProtobufProcessMarshaller()
    • Method Detail

      • setWorkItemVarsPersistence

        public static void setWorkItemVarsPersistence​(boolean turnOn)
      • writeProcessInstances

        public void writeProcessInstances​(org.drools.core.marshalling.impl.MarshallerWriteContext context)
                                   throws IOException
        Specified by:
        writeProcessInstances in interface org.drools.core.marshalling.impl.ProcessMarshaller
        Throws:
        IOException
      • writeProcessTimers

        public void writeProcessTimers​(org.drools.core.marshalling.impl.MarshallerWriteContext outCtx)
                                throws IOException
        Specified by:
        writeProcessTimers in interface org.drools.core.marshalling.impl.ProcessMarshaller
        Throws:
        IOException
      • writeWorkItems

        public void writeWorkItems​(org.drools.core.marshalling.impl.MarshallerWriteContext context)
                            throws IOException
        Specified by:
        writeWorkItems in interface org.drools.core.marshalling.impl.ProcessMarshaller
        Throws:
        IOException
      • writeWorkItem

        public static JBPMMessages.WorkItem writeWorkItem​(org.drools.core.marshalling.impl.MarshallerWriteContext context,
                                                          org.kie.api.runtime.process.WorkItem workItem)
                                                   throws IOException
        Throws:
        IOException
      • readProcessInstances

        public List<org.kie.api.runtime.process.ProcessInstance> readProcessInstances​(org.drools.core.marshalling.impl.MarshallerReaderContext context)
                                                                               throws IOException
        Specified by:
        readProcessInstances in interface org.drools.core.marshalling.impl.ProcessMarshaller
        Throws:
        IOException
      • readWorkItems

        public void readWorkItems​(org.drools.core.marshalling.impl.MarshallerReaderContext context)
                           throws IOException
        Specified by:
        readWorkItems in interface org.drools.core.marshalling.impl.ProcessMarshaller
        Throws:
        IOException
      • writeWorkItem

        public static JBPMMessages.WorkItem writeWorkItem​(org.drools.core.marshalling.impl.MarshallerWriteContext context,
                                                          org.kie.api.runtime.process.WorkItem workItem,
                                                          boolean includeVariables)
                                                   throws IOException
        Throws:
        IOException
      • readWorkItem

        public static org.kie.api.runtime.process.WorkItem readWorkItem​(org.drools.core.marshalling.impl.MarshallerReaderContext context,
                                                                        JBPMMessages.WorkItem _workItem)
                                                                 throws IOException
        Throws:
        IOException
      • readWorkItem

        public static org.kie.api.runtime.process.WorkItem readWorkItem​(org.drools.core.marshalling.impl.MarshallerReaderContext context,
                                                                        JBPMMessages.WorkItem _workItem,
                                                                        boolean includeVariables)
                                                                 throws IOException
        Throws:
        IOException
      • init

        public void init​(org.drools.core.marshalling.impl.MarshallerReaderContext context)
        Specified by:
        init in interface org.drools.core.marshalling.impl.ProcessMarshaller
      • writeWorkItem

        public void writeWorkItem​(org.drools.core.marshalling.impl.MarshallerWriteContext context,
                                  org.drools.core.process.instance.WorkItem workItem)
        Specified by:
        writeWorkItem in interface org.drools.core.marshalling.impl.ProcessMarshaller
      • readWorkItem

        public org.drools.core.process.instance.WorkItem readWorkItem​(org.drools.core.marshalling.impl.MarshallerReaderContext context)
        Specified by:
        readWorkItem in interface org.drools.core.marshalling.impl.ProcessMarshaller