I have a hibernate object called Property. My application needs to create a new process (defined in workorderprocess.jpdl.xml) and link it to a Property ie the user must be able to view all 'workorderprocess' tasks for this Property when viewing a Property.
Should the Property have a list of ProcessInstances linked to it or should I be using the jBPM api to lookup all 'workorderprocess' tasks linked to a particular Property?
Any advice will be much appreciated.
Either approach will work. There is no particular preference for one over the other.