Hi Phillip,
Phillip Green schrieb:
> I created my own resource types for my publication; CAP and CACI. The
> CAP resource type is composed of CACI resource types. I created a
> publish usecase for CAP that works and a publish usecase for CACI
> which works. However whenever I change the publish usecase for CAP
> to invoke the publish usecase for CACI, I am having problems. No
> error messages are being generated anywhere that I can find.
> However, the sitetree.xml file isn't being updated for the live area.
> I can see my document in the live area when I check the content
> directory, so the document is being copied. And the workflow is
> being updated. It's just the sitetree.xml that doesn't change. Does
> anyone know any difference from me calling the usecase from the lenya
> menu and using the following code:
>
> invoker = (UsecaseInvoker) this.manager.lookup(UsecaseInvoker.ROLE);
> Map params = new HashMap();
> invoker.invoke(caciDocument.getCanonicalWebappURL(),
> PUBLISH_CACI_USECASE, params);
actually this looks good.
Just a wild guess, but it sounds like a bug in the transaction system.
The sitetree is affected by both the CAP and the CACI usecase.
IIUC the CACI usecase session is committed first, then the CAP usecase
session:
<cap start>
...
<caci start>
...
<caci commit>
<cap commit>
Maybe the CAP usecase overrides the sitetree changes previously made
by the CACI usecase because of some invalid change check. If I find
the time tomorrow I'll write a test case.
Would you mind filing a bug and, if possible, attaching a patch which
allows to reproduce the problem? Stepping through the usecase with a
debugger might also help to find the cause.
Thanks for reporting!
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]