Search in sources :

Example 1 with TimerEventDefinition

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;
}
Also used : TimeDuration(org.camunda.bpm.model.bpmn.instance.TimeDuration) TimerEventDefinition(org.camunda.bpm.model.bpmn.instance.TimerEventDefinition)

Example 2 with TimerEventDefinition

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;
}
Also used : TimeCycle(org.camunda.bpm.model.bpmn.instance.TimeCycle) TimerEventDefinition(org.camunda.bpm.model.bpmn.instance.TimerEventDefinition)

Example 3 with TimerEventDefinition

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;
}
Also used : TimeDate(org.camunda.bpm.model.bpmn.instance.TimeDate) TimerEventDefinition(org.camunda.bpm.model.bpmn.instance.TimerEventDefinition)

Aggregations

TimerEventDefinition (org.camunda.bpm.model.bpmn.instance.TimerEventDefinition)3 TimeCycle (org.camunda.bpm.model.bpmn.instance.TimeCycle)1 TimeDate (org.camunda.bpm.model.bpmn.instance.TimeDate)1 TimeDuration (org.camunda.bpm.model.bpmn.instance.TimeDuration)1