Thanks Nicolas,
Fortunately in my case I could get rid of the FK and deleteWorkeffort then worked like a charm. But I thnought about that this weelend and I see more
the problem lying in the remove-related Minilang feature, see my comment in the Jira
Jacques
Le 23/01/2017 à 11:55, Nicolas Malin a écrit :
WorkEffort is a complexe entity as much technical aspect as functional cover :)
On the Jacques's case, the workEffort is used to follow jobSandox activity after user command and in logical delete all older workEffort to minimize
the history (like jenkins with his scheduler).
After your remarks, I think call deleteWorkEffort isn't logical without functional context. If we want delete a WorkEffort, we need to understand
the this context and in this case prepare the deletion by a dedicate service (remove all potential FK and so one) before call the standard service.
Nicolas
Le 23/01/2017 à 11:10, Paul Foxworthy a écrit :
Hi Jacques and Scott,
On 23 January 2017 at 09:08, Scott Gray <[email protected]>
wrote:
I can't think of any *good* reasons to remove a WorkEffort record.
Hear, hear. In general, OFBiz expires an entity by setting the thruDate.
What's so special about WorkEffort?
Cheers
Paul