use of org.camunda.bpm.model.bpmn.instance.TimerEventDefinition in project camunda-bpmn-model by camunda.
the class AbstractCatchEventBuilder method timerWithDuration.
/**
* Sets an event definition for the timer with a time duration.
*
* @param timerDuration the time duration of the timer
* @return the builder object
*/
public B timerWithDuration(String timerDuration) {
TimeDuration timeDuration = createInstance(TimeDuration.class);
timeDuration.setTextContent(timerDuration);
TimerEventDefinition timerEventDefinition = createInstance(TimerEventDefinition.class);
timerEventDefinition.setTimeDuration(timeDuration);
element.getEventDefinitions().add(timerEventDefinition);
return myself;
}
use of org.camunda.bpm.model.bpmn.instance.TimerEventDefinition in project camunda-bpmn-model by camunda.
the class AbstractCatchEventBuilder method timerWithCycle.
/**
* Sets an event definition for the timer with a time cycle.
*
* @param timerCycle the time cycle of the timer
* @return the builder object
*/
public B timerWithCycle(String timerCycle) {
TimeCycle timeCycle = createInstance(TimeCycle.class);
timeCycle.setTextContent(timerCycle);
TimerEventDefinition timerEventDefinition = createInstance(TimerEventDefinition.class);
timerEventDefinition.setTimeCycle(timeCycle);
element.getEventDefinitions().add(timerEventDefinition);
return myself;
}
use of org.camunda.bpm.model.bpmn.instance.TimerEventDefinition 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;
}
Aggregations