The best work (not accurate) is to create as many input parameters as possible, since many types of entities that you suspect can be passed as a ReferenceTarget, then, based on the conditions in your workflow, invoke the user workflow and set the input data and then in the Execute method of your workflow you can check which input parameter is Not Blank and process it accordingly.
The input parameters of the workflow remain internal to the developer, so if itβs good while you are doing your work and have the flexibility to use the same user activity of the workflow in different scenarios, especially when you canβt imagine what type of entity reference you will be have to deal with.
source share