You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Bart van Dijk <Ba...@Unilever.com> on 2005/07/05 11:48:11 UTC

How to get notified when someone submits a document?

Hello,

Does anyone know how to get notified (for example by sending an email) when
someone submits a document? Or is there a way to quickly see what documents
has to be (re)published? In our system the editor isn't able to publish
documents so the publisher needs to know when a document has been edited or
submitted.

Thanks in advance,
Bart


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


RE: How to get notified when someone submits a document?

Posted by Bart van Dijk <Ba...@Unilever.com>.
Thank you very much for this information, everything works perfectly!

-----Original Message-----
From: user-return-7493-Bart-van.Dijk=unilever.com@lenya.apache.org
[mailto:user-return-7493-Bart-van.Dijk=unilever.com@lenya.apache.org]On
Behalf Of Lee Carroll
Sent: Tuesday, July 05, 2005 12:27
To: user@lenya.apache.org; Bart-van.Dijk@Unilever.com
Subject: Re: How to get notified when someone submits a document?


Hello Bart,

We hacked together a simple summary report for editors and approvers to use.
whose got locks, what needs reviewing etc

I'm sure it could be improved (little worried about performance if you have
a large site)

The xsp and xsl attached


Menu config entries will look something like

<menu i18n:attr="name" name="Workflow" label="Help">
<xsp:logic>
{
if (isDocument &amp;&amp; Publication.AUTHORING_AREA.equals(area)) {
<block>
<item uc:usecase="workflowStatus" href="?">
<i18n:text>List all Publication Files Workflow Status</i18n:text>
</item>
<item uc:usecase="listModified" href="?">
<i18n:text>List Modified Files</i18n:text>
</item>
<item uc:usecase="listAwaitingApproval" href="?">
<i18n:text>List Files Awaiting Approval</i18n:text>
</item>
<item uc:usecase="listLocks" href="?">
<i18n:text>List Locks</i18n:text>
</item>

usecases look like

<!-- workflow status of a publication -->
<map:match pattern="workflowStatus" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="all"/>
<map:parameter name="listLock" value="all"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<map:match pattern="listModified" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="authoring"/>
<map:parameter name="listLock" value="all"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<map:match pattern="listAwaitingApproval" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="review"/>
<map:parameter name="listLock" value="all"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<map:match pattern="listLocks" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="all"/>
<map:parameter name="listLock" value="Locked"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>


----- Original Message -----
From: "Bart van Dijk" <Ba...@Unilever.com>
To: <us...@lenya.apache.org>
Sent: Tuesday, July 05, 2005 10:48 AM
Subject: How to get notified when someone submits a document?


> Hello,
>
> Does anyone know how to get notified (for example by sending an email)
> when
> someone submits a document? Or is there a way to quickly see what
> documents
> has to be (re)published? In our system the editor isn't able to publish
> documents so the publisher needs to know when a document has been edited
> or
> submitted.
>
> Thanks in advance,
> Bart
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: How to get notified when someone submits a document?

Posted by Lee Carroll <le...@aol.com>.
Hello Bart,

We hacked together a simple summary report for editors and approvers to use. 
whose got locks, what needs reviewing etc

I'm sure it could be improved (little worried about performance if you have 
a large site)

The xsp and xsl attached


Menu config entries will look something like

<menu i18n:attr="name" name="Workflow" label="Help">
<xsp:logic>
{
if (isDocument &amp;&amp; Publication.AUTHORING_AREA.equals(area)) {
<block>
<item uc:usecase="workflowStatus" href="?">
<i18n:text>List all Publication Files Workflow Status</i18n:text>
</item>
<item uc:usecase="listModified" href="?">
<i18n:text>List Modified Files</i18n:text>
</item>
<item uc:usecase="listAwaitingApproval" href="?">
<i18n:text>List Files Awaiting Approval</i18n:text>
</item>
<item uc:usecase="listLocks" href="?">
<i18n:text>List Locks</i18n:text>
</item>

usecases look like

<!-- workflow status of a publication -->
<map:match pattern="workflowStatus" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="all"/>
<map:parameter name="listLock" value="all"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<map:match pattern="listModified" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="authoring"/>
<map:parameter name="listLock" value="all"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<map:match pattern="listAwaitingApproval" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="review"/>
<map:parameter name="listLock" value="all"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<map:match pattern="listLocks" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="all"/>
<map:parameter name="listLock" value="Locked"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>


----- Original Message ----- 
From: "Bart van Dijk" <Ba...@Unilever.com>
To: <us...@lenya.apache.org>
Sent: Tuesday, July 05, 2005 10:48 AM
Subject: How to get notified when someone submits a document?


> Hello,
>
> Does anyone know how to get notified (for example by sending an email) 
> when
> someone submits a document? Or is there a way to quickly see what 
> documents
> has to be (re)published? In our system the editor isn't able to publish
> documents so the publisher needs to know when a document has been edited 
> or
> submitted.
>
> Thanks in advance,
> Bart
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>