I use the java api to import workflows from XML during plugin installation. Afterwards I create a workflowscheme and assign the workflows to this scheme. I create my a project using a project-template and in the
configure() method of the
AddProjectHook I configure the previously loaded and created inactive workflows (e.g. adding postfunctions). Everything works fine, but I recognized that my workflows are still shown as inactive in the GUI even when they are assigned to a workflowscheme which is used in my project.
The configure part works like this:
- I get the workflow to configure
- I create a draft of the workflow with
- I add a postfunction to the workflow
- I save the updated draft with
I expected the workflow to be saved into an active version in this case.
Does anybody had the same experience or does somebody know what is going on?