Class WorkflowTriggerHelper
- java.lang.Object
 - 
- de.xima.fc.workflow.designer.helper.WorkflowTriggerHelper
 
 
- 
public final class WorkflowTriggerHelper extends Object
Utilities for implementing workflow trigger handlers.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckStatePrecondition(IWorkflowEventData eventData, List<UuidEntityRef> allowedStates)static booleancheckUserGroupPrecondition(IWorkflowEventData eventData, List<UuidEntityRef> allowedUserGroups)static booleancheckUserGroupPrecondition(IWorkflowEventData eventData, List<UuidEntityRef> allowedUserGroups, String scope)static de.xima.cmn.criteria.FilterCriterioncreateUserGroupFilter(String userGroupSearchTerm, IUser user, Mandant client, String scope)Creates a filter for a workflow trigger that check if either no search term with the given key exists; or one exists and its value matches one of the user group UUIDs of the given user.static de.xima.cmn.criteria.FilterCriterioncreateUserGroupFilter(String userGroupSearchTerm, IWorkflowEventData event, String userGroupScope)Creates a filter for a workflow trigger that check if either no search term with the given key exists; or one exists and its value matches one of the user group UUIDs of the user from the given event data.static de.xima.cmn.criteria.FilterCriterioncreateUserGroupFilter(String userGroupSearchTerm, Iterable<BenutzerGruppe> userGroups)Creates a filter for a workflow trigger that check if either no search term with the given key exists; or one exists and its value matches one of the given user group's UUIDs.static de.xima.cmn.criteria.FilterCriterioncreateWorkflowStateFilter(String stateSearchTerm, WorkflowState workflowState)Creates a filter for a workflow trigger that check if either no search term with the given key exists; or one exists and its value matches the given workflow state's UUID.static de.xima.cmn.criteria.FilterCriterioncreateWorkflowStateFilter(String stateSearchTerm, IFormRecordProvidingEvent event)Creates a filter for a workflow trigger that check if either no search term with the given key exists; or one exists and its value matches the given workflow state's UUID. 
 - 
 
- 
- 
Method Detail
- 
checkStatePrecondition
public static boolean checkStatePrecondition(IWorkflowEventData eventData, List<UuidEntityRef> allowedStates)
 
- 
checkUserGroupPrecondition
public static boolean checkUserGroupPrecondition(IWorkflowEventData eventData, List<UuidEntityRef> allowedUserGroups)
 
- 
checkUserGroupPrecondition
public static boolean checkUserGroupPrecondition(IWorkflowEventData eventData, List<UuidEntityRef> allowedUserGroups, String scope)
 
- 
createUserGroupFilter
public static de.xima.cmn.criteria.FilterCriterion createUserGroupFilter(String userGroupSearchTerm, Iterable<BenutzerGruppe> userGroups)
Creates a filter for a workflow trigger that check if either no search term with the given key exists; or one exists and its value matches one of the given user group's UUIDs.- Parameters:
 userGroupSearchTerm- The search term key.userGroups- The user groups to match.- Returns:
 - The filter criterion.
 
 
- 
createUserGroupFilter
public static de.xima.cmn.criteria.FilterCriterion createUserGroupFilter(String userGroupSearchTerm, IUser user, Mandant client, String scope)
Creates a filter for a workflow trigger that check if either no search term with the given key exists; or one exists and its value matches one of the user group UUIDs of the given user.- Parameters:
 userGroupSearchTerm- The search term key.user- A user with user groups to match.client- The client scope from which to obtain the user's groups.scope- The scope from which to obtain the user's groups.- Returns:
 - The filter criterion.
 
 
- 
createUserGroupFilter
public static de.xima.cmn.criteria.FilterCriterion createUserGroupFilter(String userGroupSearchTerm, IWorkflowEventData event, String userGroupScope)
Creates a filter for a workflow trigger that check if either no search term with the given key exists; or one exists and its value matches one of the user group UUIDs of the user from the given event data.- Parameters:
 userGroupSearchTerm- The search term key.event- Event data from which to obtain the user and client.- Returns:
 - The filter criterion.
 
 
- 
createWorkflowStateFilter
public static de.xima.cmn.criteria.FilterCriterion createWorkflowStateFilter(String stateSearchTerm, WorkflowState workflowState)
Creates a filter for a workflow trigger that check if either no search term with the given key exists; or one exists and its value matches the given workflow state's UUID.- Parameters:
 stateSearchTerm- The search term key.workflowState- The workflow state to match.- Returns:
 - The filter criterion.
 
 
- 
createWorkflowStateFilter
public static de.xima.cmn.criteria.FilterCriterion createWorkflowStateFilter(String stateSearchTerm, IFormRecordProvidingEvent event)
Creates a filter for a workflow trigger that check if either no search term with the given key exists; or one exists and its value matches the given workflow state's UUID.- Parameters:
 stateSearchTerm- The search term key.event- Event data with the workflow state to match.- Returns:
 - The filter criterion.
 
 
 - 
 
 -