Class WorkflowTriggerPropsFactory
java.lang.Object
de.xima.fc.workflow.processor.factory.WorkflowTriggerPropsFactory
Factory methods for creating various kinds of
WorkflowTrigger models.- Since:
- 8.0.1
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic FcCatchErrorPropsstatic FcDoiVerifiedPropsstatic FcDoiVerifiedPropsdoiVerified(WorkflowNode targetNode) static FcDoiVerifiedPropsdoiVerified(NodeKey targetNode) static FcFormSubmitButtonPropsformSubmitButton(String buttonName) Creates a new model of typeEWorkflowTriggerType.FC_FORM_SUBMIT_BUTTONthat occurs when an a form was submitted via any button with a given name.static FcInvitationErrorPropsCreates a new model of typeEWorkflowTriggerType.FC_INVITATION_ERRORthat occurs when an invitation email could not be sent.static FcInvitationSentPropsCreates a new model of typeEWorkflowTriggerType.FC_INVITATION_SENTthat occurs when an invitation was created successfully.static FcManualPropsmanual()Creates a new model of typeEWorkflowTriggerType.FC_MANUALthat occurs when a user initiates it.static FcManualPropsmanual(Iterable<WorkflowState> states, Iterable<BenutzerGruppe> userGroups) Creates a new model of typeEWorkflowTriggerType.FC_MANUALthat occurs when a user initiates it.qualifiedFormSubmitButton(String qualifier, String buttonName) Creates a new model of typeEWorkflowTriggerType.FC_QUALIFIED_FORM_SUBMIT_BUTTONthat occurs when an a form was submitted via a specific button of a certain button list element.static FcStateTimerPropsstateTimer(WorkflowState state, Duration duration) static FcTimePointPropstimePointExpression(String dateTimeTemplate, String dateTimeFormat, WorkflowState... allowedStates) static FcTimePointPropstimePointExpression(String dateTimeTemplate, String dateTimeFormat, ETimePointTriggerOperation offsetOperation, String offsetDuration, ETimePointTriggerDurationUnit offsetUnit, WorkflowState... allowedStates) static FcTimePointPropstimePointExpressionOrPast(String dateTimeTemplate, String dateTimeFormat, WorkflowState... allowedStates) static FcTimePointPropstimePointExpressionOrPast(String dateTimeTemplate, String dateTimeFormat, ETimePointTriggerOperation offsetOperation, String offsetDuration, ETimePointTriggerDurationUnit offsetUnit, WorkflowState... allowedStates) static FcTimePointPropstimePointFixed(Instant instant, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at a certain point in time.static FcTimePointPropstimePointFixed(Instant instant, ZoneId zoneId, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at a certain point in time.static FcTimePointPropstimePointFixed(LocalDateTime dateTime, ZoneId zoneId, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at a certain point in time.static FcTimePointPropstimePointFixedOrPast(Instant instant, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at or after a certain point in time.static FcTimePointPropstimePointFixedOrPast(Instant instant, ZoneId zoneId, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at or after a certain point in time.static FcTimePointPropstimePointFixedOrPast(LocalDateTime dateTime, ZoneId zoneId, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at or after a certain point in time.
-
Method Details
-
catchError
-
doiVerified
-
doiVerified
-
doiVerified
-
formSubmitButton
Creates a new model of typeEWorkflowTriggerType.FC_FORM_SUBMIT_BUTTONthat occurs when an a form was submitted via any button with a given name.- Parameters:
buttonName- Name of the submit button to which the trigger should react. Leave empty to react to all submit buttons.- Returns:
- A new trigger model for a submit button event.
-
qualifiedFormSubmitButton
public static FcQualifiedFormSubmitButtonProps qualifiedFormSubmitButton(String qualifier, String buttonName) Creates a new model of typeEWorkflowTriggerType.FC_QUALIFIED_FORM_SUBMIT_BUTTONthat occurs when an a form was submitted via a specific button of a certain button list element.- Parameters:
qualifier- Qualifier of the submit button, e.g. the name of the button list element.buttonName- Name of the submit button to which the trigger should react.- Returns:
- A new trigger model for a qualified submit button event.
-
invitationError
Creates a new model of typeEWorkflowTriggerType.FC_INVITATION_ERRORthat occurs when an invitation email could not be sent.- Returns:
- A new trigger model for an invitation sent event.
-
invitationSent
Creates a new model of typeEWorkflowTriggerType.FC_INVITATION_SENTthat occurs when an invitation was created successfully.- Returns:
- A new trigger model for an invitation sent event.
-
manual
Creates a new model of typeEWorkflowTriggerType.FC_MANUALthat occurs when a user initiates it. Does not restrict the event to a particular state or user group.- Returns:
- A new trigger model for a manual event.
-
manual
public static FcManualProps manual(Iterable<WorkflowState> states, Iterable<BenutzerGruppe> userGroups) Creates a new model of typeEWorkflowTriggerType.FC_MANUALthat occurs when a user initiates it.- Parameters:
states- States a form record must have for a user to be allowed to initiate the event.userGroups- User groups a user must be part of for them to be allowed to initiate the event.- Returns:
- A new trigger model for a manual event.
-
stateTimer
-
timePointExpression
public static FcTimePointProps timePointExpression(String dateTimeTemplate, String dateTimeFormat, ETimePointTriggerOperation offsetOperation, String offsetDuration, ETimePointTriggerDurationUnit offsetUnit, WorkflowState... allowedStates) -
timePointExpression
public static FcTimePointProps timePointExpression(String dateTimeTemplate, String dateTimeFormat, WorkflowState... allowedStates) -
timePointExpressionOrPast
public static FcTimePointProps timePointExpressionOrPast(String dateTimeTemplate, String dateTimeFormat, ETimePointTriggerOperation offsetOperation, String offsetDuration, ETimePointTriggerDurationUnit offsetUnit, WorkflowState... allowedStates) -
timePointExpressionOrPast
public static FcTimePointProps timePointExpressionOrPast(String dateTimeTemplate, String dateTimeFormat, WorkflowState... allowedStates) -
timePointFixed
public static FcTimePointProps timePointFixed(Instant instant, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at a certain point in time.- Parameters:
instant- Instant at which the event occurs.allowedStates- States to which to restrict the event. Leave empty for all states.- Returns:
- A new trigger model for a time point event.
-
timePointFixed
public static FcTimePointProps timePointFixed(Instant instant, ZoneId zoneId, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at a certain point in time.- Parameters:
instant- Instant at which the event occurs.zoneId- Time zone to use.allowedStates- States to which to restrict the event. Leave empty for all states.- Returns:
- A new trigger model for a time point event.
-
timePointFixed
public static FcTimePointProps timePointFixed(LocalDateTime dateTime, ZoneId zoneId, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at a certain point in time.- Parameters:
dateTime- Date and time at which the event occurs.zoneId- Time zone to use.allowedStates- States to which to restrict the event. Leave empty for all states.- Returns:
- A new trigger model for a time point event.
-
timePointFixedOrPast
public static FcTimePointProps timePointFixedOrPast(Instant instant, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at or after a certain point in time.- Parameters:
instant- Instant at which the event occurs.allowedStates- States to which to restrict the event. Leave empty for all states.- Returns:
- A new trigger model for a time point event.
-
timePointFixedOrPast
public static FcTimePointProps timePointFixedOrPast(Instant instant, ZoneId zoneId, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at or after a certain point in time.- Parameters:
instant- Instant at which the event occurs.zoneId- Time zone to use.allowedStates- States to which to restrict the event. Leave empty for all states.- Returns:
- A new trigger model for a time point event.
-
timePointFixedOrPast
public static FcTimePointProps timePointFixedOrPast(LocalDateTime dateTime, ZoneId zoneId, Iterable<WorkflowState> allowedStates) Creates a new model of typeEWorkflowTriggerType.FC_TIME_POINTthat occurs at or after a certain point in time.- Parameters:
dateTime- Date and time at which the event occurs.zoneId- Time zone of the date time.allowedStates- States to which to restrict the event. Leave empty for all states.- Returns:
- A new trigger model for a time point event.
-