public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
dataSize += computeStringSizeNoTag(completedNodeIds_.getRaw(i)); size += 1 * getCompletedNodeIdsList().size();
hash = (19 * hash) + getDescriptor().hashCode(); if (hasProcessType()) { hash = (37 * hash) + PROCESS_TYPE_FIELD_NUMBER; hash = (53 * hash) + getProcessType().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); if (hasProcessId()) { hash = (37 * hash) + PROCESS_ID_FIELD_NUMBER; hash = (53 * hash) + getProcessId().hashCode(); if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState(); if (hasNodeInstanceCounter()) { hash = (37 * hash) + NODE_INSTANCE_COUNTER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodeInstanceCounter()); if (hasProcessXml()) { hash = (37 * hash) + PROCESS_XML_FIELD_NUMBER; hash = (53 * hash) + getProcessXml().hashCode(); if (hasParentProcessInstanceId()) { hash = (37 * hash) + PARENT_PROCESS_INSTANCE_ID_FIELD_NUMBER;
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.getDefaultInstance()) return this; if (other.hasProcessType()) { bitField0_ |= 0x00000001; processType_ = other.processType_; onChanged(); if (other.hasId()) { setId(other.getId()); if (other.hasProcessId()) { bitField0_ |= 0x00000004; processId_ = other.processId_; onChanged(); if (other.hasState()) { setState(other.getState()); if (other.hasNodeInstanceCounter()) { setNodeInstanceCounter(other.getNodeInstanceCounter()); if (other.hasProcessXml()) { bitField0_ |= 0x00000020; processXml_ = other.processXml_; onChanged(); if (other.hasParentProcessInstanceId()) { setParentProcessInstanceId(other.getParentProcessInstanceId()); if (other.hasDescription()) {
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
_instance = JBPMMessages.ProcessInstance.parseFrom( _header.getPayload(), registry ); processInstance.setId( _instance.getId() ); String processId = _instance.getProcessId(); processInstance.setProcessId( processId ); String processXml = _instance.getProcessXml(); Process process = null; if (processXml != null && processXml.trim().length() > 0) { processInstance.setDescription(_instance.getDescription()); processInstance.setState( _instance.getState() ); processInstance.setParentProcessInstanceId(_instance.getParentProcessInstanceId()); processInstance.setSignalCompletion(_instance.getSignalCompletion()); processInstance.setDeploymentId(_instance.getDeploymentId()); processInstance.setCorrelationKey(_instance.getCorrelationKey()); processInstance.internalSetSlaCompliance(_instance.getSlaCompliance()); if (_instance.getSlaDueDate() > 0) { processInstance.internalSetSlaDueDate(new Date(_instance.getSlaDueDate())); processInstance.internalSetSlaTimerId(_instance.getSlaTimerId()); long nodeInstanceCounter = _instance.getNodeInstanceCounter(); processInstance.setKnowledgeRuntime( wm.getKnowledgeRuntime() ); processInstance.internalSetNodeInstanceCounter( nodeInstanceCounter ); for( String completedNodeId : _instance.getCompletedNodeIdsList() ) { processInstance.addCompletedNodeId(completedNodeId); if ( _instance.getSwimlaneContextCount() > 0 ) { Context swimlaneContext = ((org.jbpm.process.core.Process) process).getDefaultContext( SwimlaneContext.SWIMLANE_SCOPE );
result = result && (hasProcessType() == other.hasProcessType()); if (hasProcessType()) { result = result && getProcessType() .equals(other.getProcessType()); result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); result = result && (hasProcessId() == other.hasProcessId()); if (hasProcessId()) { result = result && getProcessId() .equals(other.getProcessId()); result = result && (hasState() == other.hasState()); if (hasState()) { result = result && (getState() == other.getState()); result = result && (hasNodeInstanceCounter() == other.hasNodeInstanceCounter()); if (hasNodeInstanceCounter()) { result = result && (getNodeInstanceCounter() == other.getNodeInstanceCounter()); result = result && (hasProcessXml() == other.hasProcessXml()); if (hasProcessXml()) { result = result && getProcessXml() .equals(other.getProcessXml());
dataSize += computeStringSizeNoTag(completedNodeIds_.getRaw(i)); size += 1 * getCompletedNodeIdsList().size();
hash = (19 * hash) + getDescriptor().hashCode(); if (hasProcessType()) { hash = (37 * hash) + PROCESS_TYPE_FIELD_NUMBER; hash = (53 * hash) + getProcessType().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); if (hasProcessId()) { hash = (37 * hash) + PROCESS_ID_FIELD_NUMBER; hash = (53 * hash) + getProcessId().hashCode(); if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState(); if (hasNodeInstanceCounter()) { hash = (37 * hash) + NODE_INSTANCE_COUNTER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodeInstanceCounter()); if (hasProcessXml()) { hash = (37 * hash) + PROCESS_XML_FIELD_NUMBER; hash = (53 * hash) + getProcessXml().hashCode(); if (hasParentProcessInstanceId()) { hash = (37 * hash) + PARENT_PROCESS_INSTANCE_ID_FIELD_NUMBER;
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance getDefaultInstanceForType() { return org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.getDefaultInstance(); }
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.getDescriptor().getEnumTypes().get(0); }
/** * <code>optional string process_id = 3;</code> */ public Builder clearProcessId() { bitField0_ = (bitField0_ & ~0x00000004); processId_ = getDefaultInstance().getProcessId(); onChanged(); return this; } /**
/** * <code>optional string correlation_key = 18;</code> */ public Builder clearCorrelationKey() { bitField0_ = (bitField0_ & ~0x00000400); correlationKey_ = getDefaultInstance().getCorrelationKey(); onChanged(); return this; } /**
/** * <code>optional string deploymentId = 17;</code> */ public Builder clearDeploymentId() { bitField0_ = (bitField0_ & ~0x00000200); deploymentId_ = getDefaultInstance().getDeploymentId(); onChanged(); return this; } /**
/** * <code>optional string process_xml = 11;</code> */ public Builder clearProcessXml() { bitField0_ = (bitField0_ & ~0x00000020); processXml_ = getDefaultInstance().getProcessXml(); onChanged(); return this; } /**
/** * <code>optional string process_type = 1;</code> */ public Builder clearProcessType() { bitField0_ = (bitField0_ & ~0x00000001); processType_ = getDefaultInstance().getProcessType(); onChanged(); return this; } /**
/** * <code>optional string description = 15;</code> */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000080); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.getDefaultInstance()) return this; if (other.hasProcessType()) { bitField0_ |= 0x00000001; processType_ = other.processType_; onChanged(); if (other.hasId()) { setId(other.getId()); if (other.hasProcessId()) { bitField0_ |= 0x00000004; processId_ = other.processId_; onChanged(); if (other.hasState()) { setState(other.getState()); if (other.hasNodeInstanceCounter()) { setNodeInstanceCounter(other.getNodeInstanceCounter()); if (other.hasProcessXml()) { bitField0_ |= 0x00000020; processXml_ = other.processXml_; onChanged(); if (other.hasParentProcessInstanceId()) { setParentProcessInstanceId(other.getParentProcessInstanceId()); if (other.hasDescription()) {
_instance = JBPMMessages.ProcessInstance.parseFrom( _header.getPayload(), registry ); processInstance.setId( _instance.getId() ); String processId = _instance.getProcessId(); processInstance.setProcessId( processId ); String processXml = _instance.getProcessXml(); Process process = null; if (processXml != null && processXml.trim().length() > 0) { processInstance.setDescription(_instance.getDescription()); processInstance.setState( _instance.getState() ); processInstance.setParentProcessInstanceId(_instance.getParentProcessInstanceId()); processInstance.setSignalCompletion(_instance.getSignalCompletion()); processInstance.setDeploymentId(_instance.getDeploymentId()); processInstance.setCorrelationKey(_instance.getCorrelationKey()); processInstance.internalSetSlaCompliance(_instance.getSlaCompliance()); if (_instance.getSlaDueDate() > 0) { processInstance.internalSetSlaDueDate(new Date(_instance.getSlaDueDate())); processInstance.internalSetSlaTimerId(_instance.getSlaTimerId()); long nodeInstanceCounter = _instance.getNodeInstanceCounter(); processInstance.setKnowledgeRuntime( wm.getKnowledgeRuntime() ); processInstance.internalSetNodeInstanceCounter( nodeInstanceCounter ); for( String completedNodeId : _instance.getCompletedNodeIdsList() ) { processInstance.addCompletedNodeId(completedNodeId); if ( _instance.getSwimlaneContextCount() > 0 ) { Context swimlaneContext = ((org.jbpm.process.core.Process) process).getDefaultContext( SwimlaneContext.SWIMLANE_SCOPE );
result = result && (hasProcessType() == other.hasProcessType()); if (hasProcessType()) { result = result && getProcessType() .equals(other.getProcessType()); result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); result = result && (hasProcessId() == other.hasProcessId()); if (hasProcessId()) { result = result && getProcessId() .equals(other.getProcessId()); result = result && (hasState() == other.hasState()); if (hasState()) { result = result && (getState() == other.getState()); result = result && (hasNodeInstanceCounter() == other.hasNodeInstanceCounter()); if (hasNodeInstanceCounter()) { result = result && (getNodeInstanceCounter() == other.getNodeInstanceCounter()); result = result && (hasProcessXml() == other.hasProcessXml()); if (hasProcessXml()) { result = result && getProcessXml() .equals(other.getProcessXml());