Skip to content

Commit

Permalink
[#659] Deprecate DMN dialects and FEEL libs
Browse files Browse the repository at this point in the history
  • Loading branch information
opatrascoiu committed May 20, 2024
1 parent db5f44d commit d752e3b
Show file tree
Hide file tree
Showing 24 changed files with 101 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeDMNDialectDefinition}
*/
@Deprecated
public class DoubleMixedJavaTimeDMNDialectDefinition extends AbstractStandardDMNDialectDefinition<Double, LocalDate, OffsetTime, ZonedDateTime, Duration> {
//
// DMN Processors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeKotlinStandardDMNDialectDefinition}
*/
@Deprecated
public class DoubleMixedJavaTimeKotlinStandardDMNDialectDefinition extends AbstractStandardDMNDialectDefinition<Double, LocalDate, OffsetTime, ZonedDateTime, Duration> {
//
// DMN Processors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
import javax.xml.datatype.XMLGregorianCalendar;
import java.math.BigDecimal;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeKotlinStandardDMNDialectDefinition}
*/
@Deprecated
public class KotlinStandardDMNDialectDefinition extends AbstractStandardDMNDialectDefinition<BigDecimal, XMLGregorianCalendar, XMLGregorianCalendar, XMLGregorianCalendar, Duration> {
//
// DMN Processors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeDMNDialectDefinition}
*/
@Deprecated
public class MixedJavaTimeDMNDialectDefinition extends AbstractStandardDMNDialectDefinition<BigDecimal, LocalDate, OffsetTime, ZonedDateTime, Duration> {
//
// DMN Processors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeKotlinStandardDMNDialectDefinition}
*/
@Deprecated
public class MixedJavaTimeKotlinStandardDMNDialectDefinition extends AbstractStandardDMNDialectDefinition<BigDecimal, LocalDate, OffsetTime, ZonedDateTime, Duration> {
//
// DMN Processors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
import javax.xml.datatype.XMLGregorianCalendar;
import java.math.BigDecimal;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeDMNDialectDefinition}
*/
@Deprecated
public class StandardDMNDialectDefinition extends AbstractStandardDMNDialectDefinition<BigDecimal, XMLGregorianCalendar, XMLGregorianCalendar, XMLGregorianCalendar, Duration> {
//
// DMN Processors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeFEELLib}
*/
@Deprecated
public abstract class BaseMixedJavaTimeFEELLib<NUMBER> extends BaseStandardFEELLib<NUMBER, LocalDate, OffsetTime, ZonedDateTime, Duration> {
private static final BooleanType BOOLEAN_TYPE = new DefaultBooleanType();
private static final StringType STRING_TYPE = new DefaultStringType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@
import com.gs.dmn.feel.lib.type.string.StringType;
import com.gs.dmn.feel.lib.type.time.*;
import com.gs.dmn.feel.lib.type.time.xml.*;
import com.gs.dmn.runtime.PureJavaTimeDMNBaseDecision;

import javax.xml.datatype.Duration;
import javax.xml.datatype.XMLGregorianCalendar;
import java.math.BigDecimal;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeFEELLib}
*/
@Deprecated
public class DefaultFEELLib extends BaseStandardFEELLib<BigDecimal, XMLGregorianCalendar, XMLGregorianCalendar, XMLGregorianCalendar, Duration> {
private static final NumericType<BigDecimal> NUMERIC_TYPE = new DefaultNumericType();
private static final BooleanType BOOLEAN_TYPE = new DefaultBooleanType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeFEELLib}
*/
@Deprecated
public class DoubleMixedJavaTimeFEELLib extends BaseMixedJavaTimeFEELLib<Double> {
private static final NumericType<Double> NUMERIC_TYPE = new DoubleNumericType();
private static final DurationType<Duration, Double> DURATION_TYPE = new DoubleDurationType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeFEELLib}
*/
@Deprecated
public class MixedJavaTimeFEELLib extends BaseMixedJavaTimeFEELLib<BigDecimal> {
private static final NumericType<BigDecimal> NUMERIC_TYPE = new DefaultNumericType();
private static final DurationType<Duration, BigDecimal> DURATION_TYPE = new DefaultDurationType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
import java.math.BigDecimal;
import java.util.Map;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeDMNBaseDecision}
*/
@Deprecated
public class DefaultDMNBaseDecision extends DefaultFEELLib implements DMNDecision<BigDecimal, XMLGregorianCalendar, XMLGregorianCalendar, XMLGregorianCalendar, Duration>, AnnotationTarget {
@Override
public Object applyMap(Map<String, String> input_, ExecutionContext context_) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
import java.time.ZonedDateTime;
import java.util.Map;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeDMNBaseDecision}
*/
@Deprecated
public class DoubleMixedJavaTimeDMNBaseDecision extends DoubleMixedJavaTimeFEELLib implements DMNDecision<Double, LocalDate, OffsetTime, ZonedDateTime, Duration>, AnnotationTarget {
@Override
public Object applyMap(Map<String, String> input_, ExecutionContext context_) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package com.gs.dmn.runtime;

import com.gs.dmn.feel.lib.MixedJavaTimeFEELLib;
import com.gs.dmn.feel.lib.PureJavaTimeFEELLib;
import com.gs.dmn.runtime.annotation.AnnotationTarget;
import com.gs.dmn.runtime.annotation.DRGElement;
import com.gs.dmn.runtime.annotation.Rule;
Expand All @@ -25,6 +26,10 @@
import java.time.ZonedDateTime;
import java.util.Map;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeDMNBaseDecision}
*/
@Deprecated
public class MixedJavaTimeDMNBaseDecision extends MixedJavaTimeFEELLib implements DMNDecision<BigDecimal, LocalDate, OffsetTime, ZonedDateTime, Duration>, AnnotationTarget {
@Override
public Object applyMap(Map<String, String> input_, ExecutionContext context_) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.gs.dmn.feel.lib.type.string.StringType;
import com.gs.dmn.feel.lib.type.time.*;
import com.gs.dmn.feel.lib.type.time.xml.DefaultDurationLib;
import com.gs.dmn.runtime.PureJavaTimeDMNBaseDecision;
import com.gs.dmn.signavio.feel.lib.type.list.DefaultSignavioListLib;
import com.gs.dmn.signavio.feel.lib.type.list.SignavioListLib;
import com.gs.dmn.signavio.feel.lib.type.numeric.DefaultSignavioNumberLib;
Expand All @@ -43,6 +44,10 @@
import javax.xml.datatype.XMLGregorianCalendar;
import java.math.BigDecimal;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeSignavioLib}
*/
@Deprecated
public class DefaultSignavioLib extends BaseSignavioLib<BigDecimal, XMLGregorianCalendar, XMLGregorianCalendar, XMLGregorianCalendar, Duration> {
private static final NumericType<BigDecimal> NUMERIC_TYPE = new DefaultSignavioNumericType();
private static final BooleanType BOOLEAN_TYPE = new DefaultBooleanType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeSignavioLib}
*/
@Deprecated
public class DoubleMixedJavaTimeSignavioLib extends BaseSignavioLib<Double, LocalDate, OffsetTime, ZonedDateTime, Duration> {
private static final NumericType<Double> NUMERIC_TYPE = new DoubleSignavioNumericType();
private static final BooleanType BOOLEAN_TYPE = new DefaultBooleanType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeSignavioLib}
*/
@Deprecated
public class MixedJavaTimeSignavioLib extends BaseSignavioLib<BigDecimal, LocalDate, OffsetTime, ZonedDateTime, Duration> {
private static final NumericType<BigDecimal> NUMERIC_TYPE = new DefaultSignavioNumericType();
private static final BooleanType BOOLEAN_TYPE = new DefaultBooleanType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@
import com.gs.dmn.runtime.annotation.DRGElement;
import com.gs.dmn.runtime.annotation.Rule;
import com.gs.dmn.signavio.feel.lib.DefaultSignavioLib;
import com.gs.dmn.signavio.feel.lib.PureJavaTimeSignavioLib;

import javax.xml.datatype.Duration;
import javax.xml.datatype.XMLGregorianCalendar;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.util.Map;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeSignavioBaseDecision}
*/
@Deprecated
public class DefaultSignavioBaseDecision extends DefaultSignavioLib
implements SignavioDecision<BigDecimal, XMLGregorianCalendar, XMLGregorianCalendar, XMLGregorianCalendar, Duration>,
AnnotationTarget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
import java.time.ZonedDateTime;
import java.util.Map;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeSignavioBaseDecision}
*/
@Deprecated
public class DoubleMixedJavaTimeSignavioBaseDecision extends DoubleMixedJavaTimeSignavioLib
implements SignavioDecision<Double, LocalDate, OffsetTime, ZonedDateTime, Duration>,
AnnotationTarget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
import java.time.ZonedDateTime;
import java.util.Map;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeSignavioBaseDecision}
*/
@Deprecated
public class MixedJavaTimeSignavioBaseDecision extends MixedJavaTimeSignavioLib
implements SignavioDecision<BigDecimal, LocalDate, OffsetTime, ZonedDateTime, Duration>,
AnnotationTarget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link com.gs.dmn.dialect.MixedJavaTimeKotlinStandardDMNDialectDefinition}
*/
@Deprecated
public class DoubleMixedJavaTimeKotlinSignavioDMNDialectDefinition extends AbstractSignavioDMNDialectDefinition<Double, LocalDate, OffsetTime, ZonedDateTime, Duration> {
//
// DMN processors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeSignavioDMNDialectDefinition}
*/
@Deprecated
public class DoubleMixedJavaTimeSignavioDMNDialectDefinition extends AbstractSignavioDMNDialectDefinition<Double, LocalDate, OffsetTime, ZonedDateTime, Duration> {
//
// DMN processors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
import javax.xml.datatype.XMLGregorianCalendar;
import java.math.BigDecimal;

/**
* @deprecated As of release 8.3.0, replaced by {@link com.gs.dmn.dialect.MixedJavaTimeKotlinStandardDMNDialectDefinition}
*/
@Deprecated
public class KotlinSignavioDMNDialectDefinition extends AbstractSignavioDMNDialectDefinition<BigDecimal, XMLGregorianCalendar, XMLGregorianCalendar, XMLGregorianCalendar, Duration> {
//
// DMN processors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import com.gs.dmn.DMNModelRepository;
import com.gs.dmn.context.environment.EnvironmentFactory;
import com.gs.dmn.dialect.PureJavaTimeDMNDialectDefinition;
import com.gs.dmn.feel.lib.FEELLib;
import com.gs.dmn.feel.synthesis.type.MixedJavaTimeNativeTypeFactory;
import com.gs.dmn.feel.synthesis.type.NativeTypeFactory;
Expand All @@ -38,6 +39,10 @@
import java.time.OffsetTime;
import java.time.ZonedDateTime;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeSignavioDMNDialectDefinition}
*/
@Deprecated
public class MixedJavaTimeSignavioDMNDialectDefinition extends AbstractSignavioDMNDialectDefinition<BigDecimal, LocalDate, OffsetTime, ZonedDateTime, Duration> {
//
// DMN processors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
import javax.xml.datatype.XMLGregorianCalendar;
import java.math.BigDecimal;

/**
* @deprecated As of release 8.3.0, replaced by {@link PureJavaTimeSignavioDMNDialectDefinition}
*/
@Deprecated
public class SignavioDMNDialectDefinition extends AbstractSignavioDMNDialectDefinition<BigDecimal, XMLGregorianCalendar, XMLGregorianCalendar, XMLGregorianCalendar, Duration> {
//
// DMN processors
Expand Down

0 comments on commit d752e3b

Please sign in to comment.