Class ProtobufProcessMarshallerWriteContext

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.io.ObjectOutput, java.io.ObjectStreamConstants, java.lang.AutoCloseable, org.drools.core.marshalling.MarshallerWriteContext

    public class ProtobufProcessMarshallerWriteContext
    extends ProtobufMarshallerWriteContext
    Extension to default MarshallerWriteContext that allows to pass additional information to marshaller strategies, such as process instance id, task it, state
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.io.ObjectOutputStream

        java.io.ObjectOutputStream.PutField
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int STATE_ACTIVE  
      static int STATE_COMPLETED  
      • Fields inherited from interface java.io.ObjectStreamConstants

        baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, SERIAL_FILTER_PERMISSION, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
    • Constructor Summary

      Constructors 
      Constructor Description
      ProtobufProcessMarshallerWriteContext​(java.io.OutputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, org.drools.core.common.InternalWorkingMemory wm, java.util.Map<java.lang.Integer,​org.drools.core.common.BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, org.kie.api.runtime.Environment env)  
    • Constructor Detail

      • ProtobufProcessMarshallerWriteContext

        public ProtobufProcessMarshallerWriteContext​(java.io.OutputStream stream,
                                                     org.drools.kiesession.rulebase.InternalKnowledgeBase kBase,
                                                     org.drools.core.common.InternalWorkingMemory wm,
                                                     java.util.Map<java.lang.Integer,​org.drools.core.common.BaseNode> sinks,
                                                     org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory,
                                                     org.kie.api.runtime.Environment env)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getProcessInstanceId

        public java.lang.String getProcessInstanceId()
      • setProcessInstanceId

        public void setProcessInstanceId​(java.lang.String processInstanceId)
      • getTaskId

        public java.lang.Long getTaskId()
      • setTaskId

        public void setTaskId​(java.lang.Long taskId)
      • getWorkItemId

        public java.lang.Long getWorkItemId()
      • setWorkItemId

        public void setWorkItemId​(java.lang.Long workItemId)
      • getState

        public int getState()
      • setState

        public void setState​(int state)