You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For our project we use two workflows for one object:
Plone Standard Workflow to controll access
Custom Workflow to controll export to another database
The plone.api function returns the state of the first workflow. There is no way to access the second one vie plone.api e.g. by optional parameter providing the wrokflow_id or the state_variable.
The text was updated successfully, but these errors were encountered:
The lazy (but valid) answer is: plone.api was/is intended for the 20 percent use cases that you use 80 percent of the time. Using two workflows is a corner case that falls far outside of the 20 percent use case, so this is not supported.
It could probably be added, but the danger is that this makes the code for the normal use case twice as complicated. A PR could be considered though.
Easiest might be to copy the code from plone.api and adapt it in your own project.
The code starts here.
For our project we use two workflows for one object:
The plone.api function returns the state of the first workflow. There is no way to access the second one vie plone.api e.g. by optional parameter providing the wrokflow_id or the state_variable.
The text was updated successfully, but these errors were encountered: