org.camunda.bpm.engine.impl.cmmn.execution.CmmnSentryPart 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. Camunda licenses this file to you under the Apache License,
* Version 2.0; you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.camunda.bpm.engine.impl.cmmn.execution;
import java.io.Serializable;
/**
* @author Roman Smirnov
*
*/
public abstract class CmmnSentryPart implements Serializable {
private static final long serialVersionUID = 1L;
protected String type;
protected String sentryId;
protected String standardEvent;
protected String source;
protected String variableEvent;
protected String variableName;
protected boolean satisfied = false;
public abstract CmmnExecution getCaseInstance();
public abstract void setCaseInstance(CmmnExecution caseInstance);
public abstract CmmnExecution getCaseExecution();
public abstract void setCaseExecution(CmmnExecution caseExecution);
public String getSentryId() {
return sentryId;
}
public void setSentryId(String sentryId) {
this.sentryId = sentryId;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
/**
* @deprecated since 7.4 A new instance of a sentry
* does not reference the source case execution id anymore.
*/
public abstract String getSourceCaseExecutionId();
/**
* @deprecated since 7.4 A new instance of a sentry
* does not reference the source case execution id anymore.
*/
public abstract CmmnExecution getSourceCaseExecution();
/**
* @deprecated since 7.4 A new instance of a sentry
* does not reference the source case execution id anymore.
*/
public abstract void setSourceCaseExecution(CmmnExecution sourceCaseExecution);
public String getStandardEvent() {
return standardEvent;
}
public void setStandardEvent(String standardEvent) {
this.standardEvent = standardEvent;
}
public boolean isSatisfied() {
return satisfied;
}
public void setSatisfied(boolean satisfied) {
this.satisfied = satisfied;
}
public String getVariableEvent() {
return variableEvent;
}
public void setVariableEvent(String variableEvent) {
this.variableEvent = variableEvent;
}
public String getVariableName() {
return variableName;
}
public void setVariableName(String variableName) {
this.variableName = variableName;
}
}