GenericSetup profiles#
Four profiles, in two packages.
The two demo profiles exist only when the collective.multiworkflow.demo package's ZCML is loaded, which a plain installation does not do.
Profile |
Package |
Applied by |
|---|---|---|
|
|
installing the add-on |
|
|
uninstalling the add-on |
|
|
the integrator, explicitly |
|
|
the integrator, explicitly |
collective.multiworkflow:default#
The installation profile.
Version 1000; depends on plone.volto:default.
It applies the following.
The
workflow_statesKeywordIndexand metadata column, described in Catalog index.The browser layer.
A registry override making the Review state query field use the workflow states vocabulary.
It touches no content type and no workflow chain. Installing this add-on changes nothing about a site's content until a behavior declares a contribution.
collective.multiworkflow:uninstall#
Removes the browser layer.
The profile is hidden from the add-ons control panel listing by a HiddenProfiles utility, as is conventional.
collective.multiworkflow.demo:demo#
The worked example.
Version 1000; depends on collective.multiworkflow:default.
It applies the following.
The
Profilecontent type, carrying thecollective.multiworkflow.demo.foundation_memberbehavior.The
foundation_member_workflowworkflow definition.A site-wide role map for the
collective.multiworkflow: Manage membershippermission, which the workflow then overrides per state.A
repositorytoolconfiguration for the new type.
Applying it is a plain GenericSetup import with no handler, so it stays inside the caller's transaction.
collective.multiworkflow.demo:content#
Example content showcasing the membership workflow.
Version 1000; depends on collective.multiworkflow.demo:demo.
It runs a post-handler that imports example content.
The handler reindexes nothing itself. Keeping imported content correctly indexed is handled for every importer at once, by the patch described in collective.multiworkflow.exportimport.
Warning
The importer behind this profile commits as it goes. Do not apply it from an integration test layer, whose per-test rollback cannot undo those commits.
See also
How to install the worked example for the steps that load the demo package and apply these two profiles.