use of org.camunda.bpm.model.bpmn.instance.TimeDate in project camunda-bpmn-model by camunda.
the class AbstractCatchEventBuilder method timerWithDate.
/**
* Sets an event definition for the timer with a time date.
*
* @param timerDate the time date of the timer
* @return the builder object
*/
public B timerWithDate(String timerDate) {
TimeDate timeDate = createInstance(TimeDate.class);
timeDate.setTextContent(timerDate);
TimerEventDefinition timerEventDefinition = createInstance(TimerEventDefinition.class);
timerEventDefinition.setTimeDate(timeDate);
element.getEventDefinitions().add(timerEventDefinition);
return myself;
}
use of org.camunda.bpm.model.bpmn.instance.TimeDate in project camunda-bpmn-model by camunda.
the class TimeDateImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(TimeDate.class, BPMN_ELEMENT_TIME_DATE).namespaceUri(BPMN20_NS).extendsType(Expression.class).instanceProvider(new ModelTypeInstanceProvider<TimeDate>() {
public TimeDate newInstance(ModelTypeInstanceContext instanceContext) {
return new TimeDateImpl(instanceContext);
}
});
typeBuilder.build();
}
Aggregations