Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem with WF4 Poco persisting
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COWhat are these objects? Often WF uses objects which are actually domain objects, not objects that "belong" to the WF. I always want my domain objects available, and not persisted and or duplicated in a WF. So all my object persistence is by conventional ORM. The WF only keeps Ids. When the WF activates it retrieves any objects it needs, then releases them all when done. WF should not persist Domain objects anyway , only persist its's owned objects i.e ones that only have scope in the WF. If your POCOs actually belong to the WF, not sure what is best, I've never needed that myself.
      singulars
    2. CO@Sisyphus Thanks, I decided to to it this way and only save the IDs. I need the values of a user in the workflow. Is there any way I can load the user only once and using it in all activities, without it being persisted?
      singulars
    3. COYou can add a member and mark it NonSerialized. That way it is available for all activities to use. When and where and how you choose to instantiate any members that are not persisted will depend on your specifics. The only rule is the obvious one - you are responsible for explicitly instantiating any members that were not persisted before they are accessed. If you use member variables instead instantiating objects at the point of use make sure you are aware of all the points where your workflows can idle then rehydrate, don't overlook any delays etc.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload