[Erp5-dev] Interaction workflows - for new and copied objects
Romain Courteaud
romain at nexedi.com
Wed May 30 18:29:50 CEST 2007
* ??ukasz K. Nowak [2007-05-30 17:04:57 +0200]:
> Hello,
Hello,
> I'm interested in using interaction workflows for new and copied
> objects. I know, that I could use Init Script for portal type or create
> manage_afterCopy in document, but it is unacceptable:
> - manage_afterCopy have to be done in Document class and I will never
> modify low level documents - I had to revert all changes, due to drastic
> document incompatibilities while upgrading
You can add an [PortalType|Document|Metatype]_afterClone script.
This script will be called on pasted objects.
> - it is not possible to export only Init Script definition to BT, and
> exporting full portal type would be maintenance horror. Besides that,
> init script is often defined in BT.
This is a limitation of the business template implementation currently.
But this is how I use it for now personnaly.
> I tried to use manage_after{Add,Copy} in Trigger Method Id(s) in
> interaction workflow, but it wasn't working.
>
> Is it possible to achieve such mechanism using interaction workflow?
Did you configure the interaction workflow on the container level?
I think manage_after{Add,Copy} is called on container, isn't it ?
After that, I don't know if it will not have any side effect.
Regards,
Romain
More information about the Erp5-dev
mailing list