Ticket #244 (new enhancement)

Opened 16 years ago

Last modified 14 years ago

Better workflow variations depending on portal_type

Reported by: fguillaume Owned by: fguillaume
Priority: P2 Milestone: CPS 3.5.7
Component: CPSWorkflow Version: TRUNK
Severity: normal Keywords:
Cc:

Description (last modified by fguillaume) (diff)

In many cases we want a local variation on an exisisting workflow where the only thing that is changed is that a transition applies (or not) to some specific portal_type.

  • creating only some kind of content in a workspace,
  • publishing only some kind of content (FAQItem) in a published FAQ
  • (more)...

May be also related to subworkflow support (#225).

Change History

comment:1 Changed 16 years ago by disabled-hc@…

  • Cc hc@… added

comment:2 Changed 16 years ago by disabled-hc@…

  • creating only some kind of content in a workspace,

I know how to set it manually adding a .cps_workflow_configuration

  • publishing only some kind of content (FAQItem) in a published FAQ

Now that allowed types are asked to the workflow, all types are shown in image galeries and FAQs. What to do, add a .cps_worflow_configuration ? Anyway it was previously just display filtering, those types were allowed by the workflow.

Is there a better way to restrict allowed content types in a folder than setting a .cps_workflow_configuration and list all type with an empty chain but the ones we want ?

comment:3 Changed 16 years ago by fguillaume

Adding a .cps_workflow_configuration in each instance of a given portal type just to specify what kind of objects need to be created in it is overkill and complex, we'd like it to be simpler (à la allowed_content_types).

This use case is important for example for Events in Calendars: we want events to follow a simple event-specific workflow, and only be creatable inside Calendar objects. So the workflow of the Calendar should have a way to say "only subobjects of type Event can be created". And/or the workflow of the Event should have a way to say "I can be created only in object of type Calendar".

comment:4 Changed 16 years ago by disabled-hc@…

maybe combining both searches ? ask allowed_content_types as before and then filter out based on the workflow information ?

is allowed_content_types just a displaying filter or types are really prohibited from behind created ?

comment:5 Changed 15 years ago by fguillaume

  • Keywords workflow removed
  • Component changed from CPSCore to CPSWorkflow

comment:6 Changed 14 years ago by fguillaume

  • Severity changed from normal to enhancement
  • Description modified (diff)

comment:7 Changed 14 years ago by janguenot

  • Version changed from unspecified to TRUNK
  • Milestone changed from unspecified to CPS 3.5.0

Same as #225

Note: See TracTickets for help on using tickets.