Hi Team,
We have migrated our Business/DEEs code to v11.1.5.
Afte upgrade, there are changes in Flow API where CM has removed below properties.
Flow.ChildType& ISubFlow.TargetEntity
I have gone through below CM Documentation portal for Flow API changes but unable to find alternative code for above properties.
Flow API Changes - CriticalManufacturing Developer Portal
Can some please help me with this. Highly Appreciate your help !!
Thanks,
SandipDhakane
Hi Sandip,
You can check if a flow contains Flows or Steps as childs (or both) via the boolean properties IFlow.ContainsSteps or IFlow.ContainsFlows respectively.
The ChildType is deprecated because the flow can now contain both flows and steps, so it makes no sense to have a single property defining it.
The flow now has no longer SubFlows or FlowSteps, just FlowItems.
Each flowItem has two properties: IFlowItem.Step and IFlowItem.Flow
The property is either the respective object or null, depending on what the child actually is.
So instead of ISubFlow.TargetEntity you can just use IFlowItem.Flow
All the best,
Maximilian
Thanks for the support, Maximilian. Your insights were spot on, and the solution worked perfectly to resolve our issue.I appreciate the support.