I have setup a content rule that gets triggered when I change the state of a dexterity object through the web interface, but when I change the state programmatically the content rule is not triggered.
I use the typical workflow_tool.doActionFor for changing the review_state. The review_state in the catalog/object appears changed to the new state.
Any clues??
I'm using plone 4.2.5 and dexterity 1.2.1.
This is the code I use to change the state:
cart = brains[0].getObject()
wftool = getToolByName(self.context, 'portal_workflow')
wftool.doActionFor(cart, 'charge')
wftool.doActionFor(cart, 'pay')
modified(cart)