Class WorkflowTriggerPropsFactory
- java.lang.Object
-
- de.xima.fc.workflow.processor.factory.WorkflowTriggerPropsFactory
-
public final class WorkflowTriggerPropsFactory extends Object
Factory methods for creating various kinds ofWorkflowTriggermodels.- Since:
- 8.0.1
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FcCatchErrorPropscatchError()static FcDoiVerifiedPropsdoiVerified()static 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 FcInvitationErrorPropsinvitationError()Creates a new model of typeEWorkflowTriggerType.FC_INVITATION_ERRORthat occurs when an invitation email could not be sent.static FcInvitationSentPropsinvitationSent()Creates 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.static FcQualifiedFormSubmitButtonPropsqualifiedFormSubmitButton(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.static IUserInvocationTriggerBuilderuserInvocation()Creates a builder for a new event of typeEWorkflowTriggerType.FC_USER_INVOCATIONthat occurs when a portal user initiates it.
-
-
-
Method Detail
-
catchError
public static FcCatchErrorProps catchError()
-
doiVerified
public static FcDoiVerifiedProps doiVerified()
-
doiVerified
public static FcDoiVerifiedProps doiVerified(NodeKey targetNode)
-
doiVerified
public static FcDoiVerifiedProps doiVerified(WorkflowNode targetNode)
-
formSubmitButton
public static FcFormSubmitButtonProps formSubmitButton(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.- 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.
-
invitationError
public static FcInvitationErrorProps 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
public static FcInvitationSentProps 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
public static FcManualProps 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.
-
userInvocation
public static IUserInvocationTriggerBuilder userInvocation()
Creates a builder for a new event of typeEWorkflowTriggerType.FC_USER_INVOCATIONthat occurs when a portal user initiates it.- Returns:
- A new trigger model for a user invocation 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.
-
stateTimer
public static FcStateTimerProps stateTimer(WorkflowState state, Duration duration)
-
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.
-
-