Class WorkflowElementReferenceHelper
java.lang.Object
de.xima.fc.workflow.designer.helper.WorkflowElementReferenceHelper
Helper for extracting referenced entities of workflow elements (nodes and triggers).
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowEntityReferencesfindEntityReferences(Mandant client, AssociatesModel associatesModel, FlowchartModel flowchartModel, Predicate<IEntityReferenceDescriptor> filter) Searches all entity references configured in the the nodes and triggers settings, and returns all references matching the given predicate.
-
Method Details
-
findEntityReferences
public static WorkflowEntityReferences findEntityReferences(Mandant client, AssociatesModel associatesModel, FlowchartModel flowchartModel, Predicate<IEntityReferenceDescriptor> filter) Searches all entity references configured in the the nodes and triggers settings, and returns all references matching the given predicate.- Parameters:
client- Current client for retrieving node and trigger plugins.associatesModel- Current associates model for fetching derived properties.flowchartModel- Current flowchart model with the nodes and triggers.filter- Predicate that is given a reference and must returntrueif that reference is to be included in the returned result.- Returns:
- All references for which the predicate returned
true, together with the nodes and triggers that contain that reference.
-