e2ebridge / bpmn

BPMN 2.0 execution engine
466 stars 138 forks source link

Persisting of modified properties #28

Open lindleycb opened 8 years ago

lindleycb commented 8 years ago

Possibly related to https://github.com/e2ebridge/bpmn/issues/16 and https://github.com/e2ebridge/bpmn/issues/17, we've been using your BPMN engine successfully now for a number of months with no glitches, but we recently had a requirement to modify rather than add one of the properties on a process instance. When we do this using setProperty, it shows as modified when using getProperties, but is left unchanged in the database. If there is a simple fix for this, we'd very much appreciate a patch.

TomKaltz commented 8 years ago

did you ever figure this out?

lindleycb commented 8 years ago

Hi Tom, I'm afraid not. We ended up working around it for our use case by writing the property change directly to the database ourselves as well as calling setProperty but an official fix would be better. It looked like setting the property and then triggering an event saved OK, but just setting the property without any form of state transition didn't persist.