Skip to content

Commit

Permalink
Remove deprecated Flowable code
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed Aug 15, 2023
1 parent 4db4e61 commit 5ba6010
Show file tree
Hide file tree
Showing 95 changed files with 112 additions and 1,571 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,6 @@ public IndentingXMLStreamWriter(XMLStreamWriter writer) {
super(writer);
}

/**
* Return the current indent step.
*
* <p>
* Return the current indent step: each start tag will be indented by this number of spaces times the number of ancestors that the element has.
* </p>
*
* @return The number of spaces in each indentation step, or 0 or less for no indentation.
* @see #setIndentStep(int)
*
* @deprecated Only return the length of the indent string.
*/
@Deprecated
public int getIndentStep() {
return indentStep.length();
}

/**
* Set the current indent step.
*
* @param indentStep
* The new indent step (0 or less for no indentation).
* @see #getIndentStep()
*
* @deprecated Should use the version that takes string.
*/
@Deprecated
public void setIndentStep(int indentStep) {
StringBuilder s = new StringBuilder();
for (; indentStep > 0; indentStep--) {
s.append(' ');
}
setIndentStep(s.toString());
}

public void setIndentStep(String s) {
this.indentStep = s;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,6 @@ public interface CmmnRepositoryService {
*/
List<DmnDecision> getDecisionsForCaseDefinition(String caseDefinitionId);

/**
* Retrieves the {@link DmnDecision}s associated with the given case definition.
*
* @param caseDefinitionId
* id of the case definition, cannot be null.
*
* @deprecated replaced by getDecisionsForCaseDefinition(String caseDefinition)
*
*/
@Deprecated
List<DmnDecision> getDecisionTablesForCaseDefinition(String caseDefinitionId);

/**
* Retrieves the {@link FormDefinition}s associated with the given case definition.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,8 @@

public interface DecisionTableVariableManager {

@Deprecated
void setVariablesOnPlanItemInstance(List<Map<String, Object>> executionResult, String decisionKey, PlanItemInstance planItemInstance, ObjectMapper objectMapper);
void setVariablesOnPlanItemInstance(List<Map<String, Object>> decisionResult, String externalRef, PlanItemInstance planItemInstance, ObjectMapper objectMapper, boolean multipleResults);

@Deprecated
void setDecisionServiceVariablesOnExecution(Map<String, List<Map<String, Object>>> executionResult, String decisionKey, PlanItemInstance planItemInstance, ObjectMapper objectMapper);

default void setVariablesOnPlanItemInstance(List<Map<String, Object>> decisionResult, String externalRef, PlanItemInstance planItemInstance, ObjectMapper objectMapper, boolean multipleResults) {
setVariablesOnPlanItemInstance(decisionResult, externalRef, planItemInstance, objectMapper);
}

default void setDecisionServiceVariablesOnPlanItemInstance(Map<String, List<Map<String, Object>>> executionResult, String decisionKey, PlanItemInstance planItemInstance, ObjectMapper objectMapper, boolean multipleResults) {
setDecisionServiceVariablesOnExecution(executionResult, decisionKey, planItemInstance, objectMapper);
}
void setDecisionServiceVariablesOnPlanItemInstance(Map<String, List<Map<String, Object>>> executionResult, String decisionKey, PlanItemInstance planItemInstance, ObjectMapper objectMapper, boolean multipleResults);

}
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,6 @@ public interface HistoricCaseInstanceQuery extends Query<HistoricCaseInstanceQue
*/
HistoricCaseInstanceQuery includeCaseVariables();

/**
* Limit historic case instance variables
* @deprecated no longer needed, this is a noop
*/
@Deprecated
HistoricCaseInstanceQuery limitCaseVariables(Integer historicCaseVariablesLimit);

/**
* Only select historic case instances that are defined by a case definition with the given deployment identifier.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,6 @@ public interface CaseInstanceQuery extends Query<CaseInstanceQuery, CaseInstance
*/
CaseInstanceQuery endOr();

/**
* Limit case instance variables
* @deprecated no longer needed, this is a noop
*/
@Deprecated
CaseInstanceQuery limitCaseInstanceVariables(Integer caseInstanceVariablesLimit);

/**
* Localize case name to specified locale.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,6 @@ public IndentingXMLStreamWriter(XMLStreamWriter writer) {
super(writer);
}

/**
* Return the current indent step.
*
* <p>
* Return the current indent step: each start tag will be indented by this number of spaces times the number of ancestors that the element has.
* </p>
*
* @return The number of spaces in each indentation step, or 0 or less for no indentation.
* @see #setIndentStep(int)
*
* @deprecated Only return the length of the indent string.
*/
@Deprecated
public int getIndentStep() {
return indentStep.length();
}

/**
* Set the current indent step.
*
* @param indentStep
* The new indent step (0 or less for no indentation).
* @see #getIndentStep()
*
* @deprecated Should use the version that takes string.
*/
@Deprecated
public void setIndentStep(int indentStep) {
StringBuilder s = new StringBuilder();
for (; indentStep > 0; indentStep--) {
s.append(' ');
}
setIndentStep(s.toString());
}

public void setIndentStep(String s) {
this.indentStep = s;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3060,22 +3060,6 @@ public CmmnEngineConfiguration setBatchServiceConfiguration(BatchServiceConfigur
return this;
}

/**
* @deprecated no longer needed, this is a noop
*/
@Deprecated
public CmmnEngineConfiguration setTaskQueryLimit(int taskQueryLimit) {
return this;
}

/**
* @deprecated no longer needed, this is a noop
*/
@Deprecated
public CmmnEngineConfiguration setHistoricTaskQueryLimit(int historicTaskQueryLimit) {
return this;
}

public InternalHistoryVariableManager getInternalHistoryVariableManager() {
return internalHistoryVariableManager;
}
Expand All @@ -3085,22 +3069,6 @@ public CmmnEngineConfiguration setInternalHistoryVariableManager(InternalHistory
return this;
}

/**
* @deprecated no longer needed, this is a noop
*/
@Deprecated
public CmmnEngineConfiguration setCaseQueryLimit(int caseQueryLimit) {
return this;
}

/**
* @deprecated no longer needed, this is a noop
*/
@Deprecated
public void setHistoricCaseQueryLimit(int historicCaseQueryLimit) {

}

public boolean isSerializableVariableTypeTrackDeserializedObjects() {
return serializableVariableTypeTrackDeserializedObjects;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,6 @@ public List<DmnDecision> getDecisionsForCaseDefinition(String caseDefinitionId)
return commandExecutor.execute(new GetDecisionsForCaseDefinitionCmd(caseDefinitionId));
}

@Override
@Deprecated
public List<DmnDecision> getDecisionTablesForCaseDefinition(String caseDefinitionId) {
return getDecisionsForCaseDefinition(caseDefinitionId);
}

@Override
public List<FormDefinition> getFormDefinitionsForCaseDefinition(String caseDefinitionId) {
return commandExecutor.execute(new GetFormDefinitionsForCaseDefinitionCmd(caseDefinitionId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -722,11 +722,6 @@ public HistoricCaseInstanceQuery includeCaseVariables() {
return this;
}

@Override
public HistoricCaseInstanceQuery limitCaseVariables(Integer historicCaseVariablesLimit) {
return this;
}

@Override
public HistoricCaseInstanceQuery activePlanItemDefinitionId(String planItemDefinitionId) {
if (planItemDefinitionId == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,6 @@ public CaseInstanceQueryImpl includeCaseVariables() {
return this;
}

@Override
public CaseInstanceQuery limitCaseInstanceVariables(Integer caseInstanceVariablesLimit) {
return this;
}

@Override
public CaseInstanceQuery locale(String locale) {
this.locale = locale;
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void deploySingleProcessAndDecisionTable() {
assertThat(definition).isNotNull();
assertThat(definition.getKey()).isEqualTo("decision1");

List<DmnDecision> decisionsList = repositoryService.getDecisionTablesForProcessDefinition(processDefinition.getId());
List<DmnDecision> decisionsList = repositoryService.getDecisionsForProcessDefinition(processDefinition.getId());
assertThat(decisionsList)
.extracting(DmnDecision::getKey)
.containsExactly("decision1");
Expand Down
Loading

0 comments on commit 5ba6010

Please sign in to comment.