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);
}
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);
}
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);
}
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);
}
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);
}
}
Aggregations