Re: [Hypercontent-users] How to Delete Revisions
Brought to you by:
alexvigdor
|
From: Alex V. <al...@bi...> - 2007-10-25 13:02:32
|
On Oct 24, 2007, at 9:49 PM, tom tom wrote:
> Hi Alex,
> I did the fix, and now it is working. Is there any way
> that we can enforce a rule that only approvers can
> delete the revisions (similar to the makecurrent
> feature in the revisions).
The ability to delete revisions is controlled by the "delete"
permission. It is the same permission used to determine if the user
can delete files entirely.
>
> I got a different question which poped up in the user
> training session.
>
> If there are seperate 3 users (A, B, C), they only
> belongs to one group.
>
> A - Author
> B- Approver
> C- Publisher
>
> If user A does a change to a file and requests for
> approval and user B gets the request and accepts the
> change. The question is How does the publisher C know
> when to publish and What to publish.
>
> Between the Author and the Approver the process is
> streamline and works as per the expectation, but for
> publisher How can we establish such a mechanism.
> What is the best way to achieve the above.
>
> Thanks
>
You can add additional steps to the workflow in /config/workflow/
approvals.xml
For example, you might add some top-level queues for publishing
(similar to what's in publish.xml):
<q id="topublish">
<event name="dopublish" permissions="publish">
<variable name="publisher" value="${actor}"/>
<copy path="${path}" source="/build/" destination="/publish/"
force="false" delete="true"/>
<nq who="${publisher}"/>
<nq q="publishing"/>
</event>
</q>
<q id="publishing">
<event name="batch-complete">
<dq/>
<nq q="published"/>
</event>
</q>
<q id="published">
<event name="batch-reset">
<dq/>
<nq q="publishing"/>
</event>
<event name="archive" who="${publisher}">
<nq q="archived"/>
<dq/>
<dq who="${publisher}"/>
</event>
<event name="auto-archive" when="in 20 minutes">
<nq q="archived"/>
<dq/>
<dq who="${publisher}"/>
</event>
</q>
You can then forward the item to the "topublish" queue and send an
email to publishers when the item is approved. You would do this by
modifying the "approve-change" event in the "approval" queue
<event name="approve-change" permissions="approve">
<exec command="org.hypercontent.workflow.command.SetCurrentEdition">
<with-param name="edition" value="${edition}"/>
</exec>
<nq q="topublish"/>
<dq/>
<email who="group:publishers" subject="[HyperContent]: Publish
needed " content-type="text/html">
<![CDATA[
<h3>Please publish
<a href="${abs-server-base}${path}?
mode=interactive&screen=workflow.approvals&work=${work-ticket}">$
{path}</a></h3>
]]>
</email>
</event>
-Alex
|