Creating objects using External method (Workflow related problem)

1 Message Forum Options Options
Permalink
kralos123
Creating objects using External method (Workflow related problem)
Reply Threaded More
Print post
Permalink
Hi there.

I'm using an external method to create objects for product POI Issue Tracker.
The thing is that I'm using _createObjectByType(), but when I try to change the object's state to "in progress" automatically, the system returns that there is no workflow that provides this action.

So, I checked the initial state of the object created with this method and the state is "new", like "being created", but when I call the action "post" (as defined in my workflow), the system throws me the same error (no workflow provides that action)

If I call wftool.getInfoFor(context, 'review_state') to see the related transitions, I got nothing... just an empty dict [] for the state "new" (that state have 2 transitions defined in portal_workflow).

Is there something that i'm missing, like an special flag, or an event that updates the workflow for that item?

Thank you very much in advance!
PS: Sorry about my english!

Regards,
Carlos B.