io.camunda.operate.webapp.api.v1.entities.FlowNodeInstance Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Camunda License 1.0. You may not use this file
* except in compliance with the Camunda License 1.0.
*/
package io.camunda.operate.webapp.api.v1.entities;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.camunda.webapps.schema.descriptors.operate.template.FlowNodeInstanceTemplate;
import io.camunda.webapps.schema.entities.operate.FlowNodeState;
import io.camunda.webapps.schema.entities.operate.FlowNodeType;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
@JsonInclude(Include.NON_NULL)
public class FlowNodeInstance {
public static final String KEY = FlowNodeInstanceTemplate.KEY,
START_DATE = FlowNodeInstanceTemplate.START_DATE,
END_DATE = FlowNodeInstanceTemplate.END_DATE,
FLOW_NODE_ID = FlowNodeInstanceTemplate.FLOW_NODE_ID,
INCIDENT_KEY = FlowNodeInstanceTemplate.INCIDENT_KEY,
TYPE = FlowNodeInstanceTemplate.TYPE,
STATE = FlowNodeInstanceTemplate.STATE,
INCIDENT = FlowNodeInstanceTemplate.INCIDENT,
PROCESS_INSTANCE_KEY = FlowNodeInstanceTemplate.PROCESS_INSTANCE_KEY,
PROCESS_DEFINITION_KEY = FlowNodeInstanceTemplate.PROCESS_DEFINITION_KEY,
TENANT_ID = FlowNodeInstanceTemplate.TENANT_ID;
private Long key;
private Long processInstanceKey;
private Long processDefinitionKey;
private String startDate;
private String endDate;
private String flowNodeId;
private String flowNodeName;
private Long incidentKey;
@Schema(implementation = FlowNodeType.class)
private String type;
@Schema(implementation = FlowNodeState.class)
private String state;
private Boolean incident;
private String tenantId;
public Long getKey() {
return key;
}
public FlowNodeInstance setKey(final Long key) {
this.key = key;
return this;
}
public Long getProcessInstanceKey() {
return processInstanceKey;
}
public FlowNodeInstance setProcessInstanceKey(final Long processInstanceKey) {
this.processInstanceKey = processInstanceKey;
return this;
}
public Long getProcessDefinitionKey() {
return processDefinitionKey;
}
public FlowNodeInstance setProcessDefinitionKey(final Long processDefinitionKey) {
this.processDefinitionKey = processDefinitionKey;
return this;
}
public String getStartDate() {
return startDate;
}
public FlowNodeInstance setStartDate(final String startDate) {
this.startDate = startDate;
return this;
}
public String getEndDate() {
return endDate;
}
public FlowNodeInstance setEndDate(final String endDate) {
this.endDate = endDate;
return this;
}
public String getFlowNodeId() {
return flowNodeId;
}
public FlowNodeInstance setFlowNodeId(String flowNodeId) {
this.flowNodeId = flowNodeId;
return this;
}
public String getFlowNodeName() {
return flowNodeName;
}
public FlowNodeInstance setFlowNodeName(String flowNodeName) {
this.flowNodeName = flowNodeName;
return this;
}
public Long getIncidentKey() {
return incidentKey;
}
public FlowNodeInstance setIncidentKey(final Long incidentKey) {
this.incidentKey = incidentKey;
return this;
}
public String getType() {
return type;
}
public FlowNodeInstance setType(final String type) {
this.type = type;
return this;
}
public String getState() {
return state;
}
public FlowNodeInstance setState(final String state) {
this.state = state;
return this;
}
public Boolean getIncident() {
return incident;
}
public FlowNodeInstance setIncident(final Boolean incident) {
this.incident = incident;
return this;
}
public String getTenantId() {
return tenantId;
}
public FlowNodeInstance setTenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}
@Override
public int hashCode() {
return Objects.hash(
key,
processInstanceKey,
processDefinitionKey,
startDate,
endDate,
flowNodeId,
flowNodeName,
incidentKey,
type,
state,
incident,
tenantId);
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final FlowNodeInstance that = (FlowNodeInstance) o;
return Objects.equals(key, that.key)
&& Objects.equals(processInstanceKey, that.processInstanceKey)
&& Objects.equals(processDefinitionKey, that.processDefinitionKey)
&& Objects.equals(startDate, that.startDate)
&& Objects.equals(endDate, that.endDate)
&& Objects.equals(flowNodeId, that.flowNodeId)
&& Objects.equals(flowNodeName, that.flowNodeName)
&& Objects.equals(incidentKey, that.incidentKey)
&& Objects.equals(type, that.type)
&& Objects.equals(state, that.state)
&& Objects.equals(incident, that.incident)
&& Objects.equals(tenantId, that.tenantId);
}
@Override
public String toString() {
return "FlowNodeInstance{"
+ "key="
+ key
+ ", processInstanceKey="
+ processInstanceKey
+ ", processDefinitionKey="
+ processDefinitionKey
+ ", startDate='"
+ startDate
+ '\''
+ ", endDate='"
+ endDate
+ '\''
+ ", flowNodeId='"
+ flowNodeId
+ '\''
+ ", flowNodeName='"
+ flowNodeName
+ '\''
+ ", incidentKey="
+ incidentKey
+ ", type='"
+ type
+ '\''
+ ", state='"
+ state
+ '\''
+ ", incident="
+ incident
+ ", tenantId='"
+ tenantId
+ '\''
+ '}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy