Search in sources :

Example 26 with Expiration

use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration in project kie-wb-common by kiegroup.

the class ExpirationTypeOracleTest method testISO8601WithTZ02RepeatableValue.

@Test
public void testISO8601WithTZ02RepeatableValue() {
    Expiration result = oracle.guess("2019-07-14T13:34-02");
    assertEquals(Expiration.DATETIME, result);
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Test(org.junit.Test)

Example 27 with Expiration

use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration in project kie-wb-common by kiegroup.

the class ExpirationTypeOracleTest method testRepeatingIntervals.

@Test
public void testRepeatingIntervals() {
    Expiration result = oracle.guess("R5/P1Y2M5DT4H5M8S6MS");
    assertEquals(Expiration.EXPRESSION, result);
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Test(org.junit.Test)

Example 28 with Expiration

use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration in project kie-wb-common by kiegroup.

the class ExpirationTypeOracleTest method testNotificationAndTZ002.

@Test
public void testNotificationAndTZ002() {
    Expiration result = oracle.guess("2019-07-14T13:34:00Z");
    assertEquals(Expiration.DATETIME, result);
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Test(org.junit.Test)

Example 29 with Expiration

use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration in project kie-wb-common by kiegroup.

the class ExpirationTypeOracleTest method testDurationsD.

@Test
public void testDurationsD() {
    Expiration result = oracle.guess("P1DT20H13M");
    assertEquals(Expiration.EXPRESSION, result);
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Test(org.junit.Test)

Example 30 with Expiration

use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration in project kie-wb-common by kiegroup.

the class NotificationEditorWidgetViewImpl method initTaskExpirationSelector.

void initTaskExpirationSelector() {
    for (Expiration value : Expiration.values()) {
        Option option = new Option();
        option.setText(presenter.getExpirationLabel(value));
        option.setValue(value.getName());
        taskExpiration.add(option);
    }
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Option(org.gwtbootstrap3.extras.select.client.ui.Option)

Aggregations

Expiration (org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration)31 Test (org.junit.Test)29 Option (org.gwtbootstrap3.extras.select.client.ui.Option)1