[Product-Developers] Re: A question regarding the definition.xml for a workflow

Françoise Conil fcodvpt at gmail.com
Tue Oct 6 11:58:41 UTC 2009


The following information make me doubt about the possibility to
modify an existing workflow (but I did not read all the documentation
again) :

    http://plone.org/documentation/tutorial/genericsetup/the-setup-tool

    Listen: the import steps that a profile registers are additive.
That means that whenever you select a new profile as the active
configuration, any new import steps are ADDed to the set of already
registered import steps.

Creating a new workflow is probably the best thing to do.

Thanks

2009/10/6 Martin Aspeli <optilude+lists at gmail.com>:
> francoise wrote:
>>
>> I have the same question :
>>   Is it possible to modify an existing workflow with the workflow import
>> handler ?
>>
>> If it is possible, how should I do ?
>
> I don't see why not.
>
> In your workflows.xml, you need to reference the name, and in
> workflows/<name>/definition.xml you should include the workflow definition.
>
> I'm not sure how much of the definition.xml you'll need to repeat. The
> safest thing is possibly to copy the whole thing.
>
> That said, it's probably better to just copy the workflow and make your own
> workflow with the same name. This make it obvious that it's changed from the
> default.
>
> Martin
>
> --
> Author of `Professional Plone Development`, a book for developers who
> want to work with Plone. See http://martinaspeli.net/plone-book
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>




More information about the Product-Developers mailing list