Get Objects of Type
- 03 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Get Objects of Type
- Updated on 03 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 5.12.0 |
Location | Data |
The Get Objects of Type step is used to extract objects of a user-specified data type from a List of Objects. The step does so via the Source List Input which allows users to Input the List that will be filtered by the step. The other utilized Input in this step is the Objects of Type drop-down, wherein users choose the type of Object they are trying to filter. The step then takes the filtered Objects and compiles them into a new List. Note: The step offers an additional path to handle the event of the step returning no results.
Properties
Inputs
Property | Description | Data Type |
---|---|---|
Source List | List to be filtered by the Objects of Type | List of Object |
Data
Property | Description | Data Type |
---|---|---|
Objects of Type | Allows a user to choose the type of Object to filter by | --- |
Outputs
Property | Description | Data Type |
---|---|---|
Output | List of the filtered objects | List of |
Example Inputs and Outputs
Source List | Output |
---|---|
"see","This" | "see", "This" |
Null | data:{} |
Empty String | data:{} |
Common Errors
Value cannot be null
If the Objects of Type field is not set, an error will occur.
To correct this, ensure that the Object of Types field is set to a data type.
Exception Message:
Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Objects Of Type 1[GetObjectsOfType] in flow [Flow 2]: Value cannot be null. (Parameter 'nativeType')
---> System.ArgumentNullException: Value cannot be null. (Parameter 'nativeType'
at DecisionsFramework.Utilities.Data.DecisionsTypeHelper.IsDynamicType(DecisionsType rawType, Type& nativeType
at DecisionsFramework.Utilities.Data.DecisionsTypeHelper.GetNativeType(DecisionsType rawType
at DecisionsFramework.Design.Flow.CoreSteps.GetObjectsOfType.Run(StepStartData data
at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
--- End of inner exception stack trace ---
Was this article helpful?