public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
.computeMessageSize(4, getContent());
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.NodeInstance node_instance = 7;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.Builder addNodeInstanceBuilder() { return getNodeInstanceFieldBuilder().addBuilder( org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.getDefaultInstance()); } /**
WorkflowProcessInstance processInstance) throws IOException { NodeInstanceImpl nodeInstance = null; NodeInstanceContent _content = _node.getContent(); switch ( _content.getType() ) { case RULE_SET_NODE:
nodeInstance.setNodeId( _node.getNodeId() ); nodeInstance.setId( _node.getId() ); nodeInstance.setNodeInstanceContainer( nodeInstanceContainer ); nodeInstance.setProcessInstance( (org.jbpm.workflow.instance.WorkflowProcessInstance) processInstance ); nodeInstance.setLevel(_node.getLevel()==0?1:_node.getLevel()); nodeInstance.internalSetSlaCompliance(_node.getSlaCompliance()); if (_node.getSlaDueDate() > 0) { nodeInstance.internalSetSlaDueDate(new Date(_node.getSlaDueDate())); nodeInstance.internalSetSlaTimerId(_node.getSlaTimerId()); switch ( _node.getContent().getType() ) { case COMPOSITE_CONTEXT_NODE : if ( _node.getContent().getComposite().getVariableCount() > 0 ) { Context variableScope = ((org.jbpm.process.core.Process) ((org.jbpm.process.instance.ProcessInstance) processInstance).getProcess()).getDefaultContext( VariableScope.VARIABLE_SCOPE ); VariableScopeInstance variableScopeInstance = (VariableScopeInstance) ((CompositeContextNodeInstance) nodeInstance).getContextInstance( variableScope ); for ( JBPMMessages.Variable _variable : _node.getContent().getComposite().getVariableList() ) { try { Object _value = ProtobufProcessMarshaller.unmarshallVariableValue( context, _variable ); if ( _node.getContent().getComposite().getIterationLevelsCount() > 0 ) { for ( JBPMMessages.IterationLevel _level : _node.getContent().getComposite().getIterationLevelsList()) { ((CompositeContextNodeInstance) nodeInstance).getIterationLevels().put(_level.getId(), _level.getLevel()); for ( JBPMMessages.ProcessInstance.NodeInstance _instance : _node.getContent().getComposite().getNodeInstanceList() ) { context.parameterObject = _instance;
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); result = result && (hasNodeId() == other.hasNodeId()); if (hasNodeId()) { result = result && (getNodeId() == other.getNodeId()); result = result && (hasContent() == other.hasContent()); if (hasContent()) { result = result && getContent() .equals(other.getContent()); result = result && (hasLevel() == other.hasLevel()); if (hasLevel()) { result = result && (getLevel() == other.getLevel()); result = result && (hasSlaTimerId() == other.hasSlaTimerId()); if (hasSlaTimerId()) { result = result && (getSlaTimerId() == other.getSlaTimerId()); result = result && (hasSlaDueDate() == other.hasSlaDueDate()); if (hasSlaDueDate()) { result = result && (getSlaDueDate() == other.getSlaDueDate());
hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); if (hasNodeId()) { hash = (37 * hash) + NODE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodeId()); if (hasContent()) { hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); if (hasLevel()) { hash = (37 * hash) + LEVEL_FIELD_NUMBER; hash = (53 * hash) + getLevel(); if (hasSlaTimerId()) { hash = (37 * hash) + SLA_TIMER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSlaTimerId()); if (hasSlaDueDate()) { hash = (37 * hash) + SLA_DUE_DATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSlaDueDate());
.computeMessageSize(4, getContent());
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, nodeId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, getContent()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(5, level_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(6, slaTimerId_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(7, slaDueDate_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(8, slaCompliance_); } unknownFields.writeTo(output); }
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasNodeId()) { setNodeId(other.getNodeId()); } if (other.hasContent()) { mergeContent(other.getContent()); } if (other.hasLevel()) { setLevel(other.getLevel()); } if (other.hasSlaTimerId()) { setSlaTimerId(other.getSlaTimerId()); } if (other.hasSlaDueDate()) { setSlaDueDate(other.getSlaDueDate()); } if (other.hasSlaCompliance()) { setSlaCompliance(other.getSlaCompliance()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance getDefaultInstanceForType() { return org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.getDefaultInstance(); }
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.NodeInstance node_instance = 7;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.Builder addNodeInstanceBuilder( int index) { return getNodeInstanceFieldBuilder().addBuilder( index, org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.getDefaultInstance()); } /**
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.NodeInstance node_instance = 4;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.Builder addNodeInstanceBuilder() { return getNodeInstanceFieldBuilder().addBuilder( org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.getDefaultInstance()); } /**
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.NodeInstance node_instance = 7;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.Builder addNodeInstanceBuilder() { return getNodeInstanceFieldBuilder().addBuilder( org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.getDefaultInstance()); } /**
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.NodeInstance node_instance = 1;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.Builder addNodeInstanceBuilder() { return getNodeInstanceFieldBuilder().addBuilder( org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.getDefaultInstance()); } /**
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.NodeInstance node_instance = 4;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.Builder addNodeInstanceBuilder( int index) { return getNodeInstanceFieldBuilder().addBuilder( index, org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.getDefaultInstance()); } /**
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.NodeInstance node_instance = 1;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.Builder addNodeInstanceBuilder( int index) { return getNodeInstanceFieldBuilder().addBuilder( index, org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance.getDefaultInstance()); } /**
WorkflowProcessInstance processInstance) throws IOException { NodeInstanceImpl nodeInstance = null; NodeInstanceContent _content = _node.getContent(); switch ( _content.getType() ) { case RULE_SET_NODE:
nodeInstance.setNodeId( _node.getNodeId() ); nodeInstance.setId( _node.getId() ); nodeInstance.setNodeInstanceContainer( nodeInstanceContainer ); nodeInstance.setProcessInstance( (org.jbpm.workflow.instance.WorkflowProcessInstance) processInstance ); nodeInstance.setLevel(_node.getLevel()==0?1:_node.getLevel()); nodeInstance.internalSetSlaCompliance(_node.getSlaCompliance()); if (_node.getSlaDueDate() > 0) { nodeInstance.internalSetSlaDueDate(new Date(_node.getSlaDueDate())); nodeInstance.internalSetSlaTimerId(_node.getSlaTimerId()); switch ( _node.getContent().getType() ) { case COMPOSITE_CONTEXT_NODE : if ( _node.getContent().getComposite().getVariableCount() > 0 ) { Context variableScope = ((org.jbpm.process.core.Process) ((org.jbpm.process.instance.ProcessInstance) processInstance).getProcess()).getDefaultContext( VariableScope.VARIABLE_SCOPE ); VariableScopeInstance variableScopeInstance = (VariableScopeInstance) ((CompositeContextNodeInstance) nodeInstance).getContextInstance( variableScope ); for ( JBPMMessages.Variable _variable : _node.getContent().getComposite().getVariableList() ) { try { Object _value = ProtobufProcessMarshaller.unmarshallVariableValue( context, _variable ); if ( _node.getContent().getComposite().getIterationLevelsCount() > 0 ) { for ( JBPMMessages.IterationLevel _level : _node.getContent().getComposite().getIterationLevelsList()) { ((CompositeContextNodeInstance) nodeInstance).getIterationLevels().put(_level.getId(), _level.getLevel()); for ( JBPMMessages.ProcessInstance.NodeInstance _instance : _node.getContent().getComposite().getNodeInstanceList() ) { context.parameterObject = _instance;