<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Chris, hi John,<br>
<br>
I think I got a working demo by now. I used the dark_archive
plugin as a start, and added a second stage so ...<br>
<br>
inbox/buffer/... -> dark_archive -> dark_archive2<br>
<br>
... is now possible. The final workflow will be more complex, but
I think I should get it configured with this approach.<br>
<br>
Thanks again,<br>
Johannes<br>
<br>
<br>
</div>
<blockquote type="cite"
cite="mid:7fa33c25-21b7-6a36-e953-7a32a0de94b4@effective-webwork.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">Hi Chris, hi John,<br>
<br>
thanks a lot for your quick replies and your hints! I'll take a
look at both solutions and let you know if I got it all to work.<br>
<br>
Regards,<br>
Johannes<br>
<br>
<br>
</div>
<blockquote type="cite"
cite="mid:DB6PR0302MB27119CC6F070C8A3F8BF0EADC4E20@DB6PR0302MB2711.eurprd03.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">There
is a different way to achieve this.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">You
can add new 'eprint_status' options.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">This
page: <a
href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FBuilding_a_DataSet&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caff91bd272144ada9edb08d705e2dc6a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=dbvNZKdwFNd0fZBy1rJ84bQL7%2F%2F%2FrkPui5j%2FdHDP5lQ%3D&reserved=0" originalSrc="https://wiki.eprints.org/w/Building_a_DataSet" shash="QCJny202pRt33yR2pO7qkQs4FZR1GPS2QNg50LoNBfvgiPFxNd1UmSshgoxCEQVJSAy7pmqPoE9Z1dyKRY9IeJqJ8eKTYYlK2+C7bBbKiKRHlELF3w83iSPGMpvg+7tZ+7uUICILDF89B3df5eJyZvL44wBWP6KSYf45goVAgks="
moz-do-not-send="true">https://wiki.eprints.org/w/Building_a_DataSet</a>
provides details of how to create a 'dark archive' - which
is normally a different end-point for a record - so
instead of:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Inbox
-> buffer -> archive<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">You
can also go:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Inbox
-> buffer -> dark_archive<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">This
plugin does the same:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a
href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbazaar.eprints.org%2F401%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caff91bd272144ada9edb08d705e2dc6a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=rbnA9FtlsSLaILfOcPPiPILrfCfgz7e4Gju0zpXT7gQ%3D&reserved=0" originalSrc="http://bazaar.eprints.org/401/" shash="x7WiULasZsR32yhS5ynTlmOmI41EpjDCj/ZRD3334JWdAwkdhdRen5yw7DSGKMqDwm+9x3YP7h7IXDdiw2BFb3TKc8zl9GQ9o0fDbKp1P6CoH9bRCwnWpQLNkBjkDeXcdhfSZtSOd5o5hhWXPk5h9uFKWmTY397vxAZKl5xHxy4="
moz-do-not-send="true">http://bazaar.eprints.org/401/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">What
you would need to configure is <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">options
=> [qw( inbox buffer archive deletion bufferX bufferY
)],<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">and
also think about whether anyone can move e.g. from buffer
to archive - or whether everything has to go through all
stages.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">You
may want to define more user roles - so a 'normal' editor
can move from buffer to bufferX, but a 'super editor' can
move from buffer to bufferX, bufferY or even to archive.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">You
may also want to create a clone of the review screen that
looks at bufferX and buffer explicitily.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Chris'
solution would also work, each has it's merits!<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<br>
John<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"
lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"
lang="EN-US"> <a class="moz-txt-link-abbreviated"
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
moz-do-not-send="true">eprints-tech-bounces@ecs.soton.ac.uk</a>
[<a class="moz-txt-link-freetext"
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
moz-do-not-send="true">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>]
<b>On Behalf Of </b>Christöpher Gutteridge via
Eprints-tech<br>
<b>Sent:</b> 26 June 2019 12:06<br>
<b>To:</b> <a class="moz-txt-link-abbreviated"
href="mailto:eprints-tech@ecs.soton.ac.uk"
moz-do-not-send="true">eprints-tech@ecs.soton.ac.uk</a>;
Johannes Schultze <a class="moz-txt-link-rfc2396E"
href="mailto:schultze@effective-webwork.de"
moz-do-not-send="true"><schultze@effective-webwork.de></a><br>
<b>Subject:</b> Re: [EP-tech] Adding more stages to
approval workflow?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>This isn't trivial but would be possible. This is me
riffing and would need refining.<o:p></o:p></p>
<p>First of all, I would add tickbox fields for levels of
signoff. ie. signoffA and signoffB and signoffC.<o:p></o:p></p>
<p>Next I would use conditionals on the "workflow" XML file to
modify it as follows.<o:p></o:p></p>
<p>In the main <flow> section, use a <when>
condition to split behaviour for the 3 stages of the buffer
to add additional stages to the end IF the user has the
appropriate parameters. At an extreme level you can write a
plugin function that takes the user and eprint as inputs and
returns true if they have the right to approve it at stage
a/b/c.<o:p></o:p></p>
<p>If signoffA is false and the user can approve level A on
this EPrint, they see the levelA approve stage which has the
signoffA tickbox on it and they can set it to true.<o:p></o:p></p>
<p>If signoffA is true, but signoffB is false and the user
can approve level B, the see the levelB approve stage which
has the signoffB tickbox<o:p></o:p></p>
<p>Similar for signoffC.<o:p></o:p></p>
<p>The validation for publishing makes "signoffC" approval a
required field so it can't be published without signoffC
being set.<o:p></o:p></p>
<pre><flow><o:p></o:p></pre>
<pre> <stage ref="type"/><o:p></o:p></pre>
<pre> <stage ref="files"/><o:p></o:p></pre>
<pre> <stage ref="core"/><o:p></o:p></pre>
<pre> <stage ref="subjects"/><o:p></o:p></pre>
<pre> <epc:choose><o:p></o:p></pre>
<pre> <epc:when test="eprint_status='buffer' and !signoffA and $current_user{canSignoffA}'><o:p></o:p></pre>
<pre> <stage ref="signoffA" /><o:p></o:p></pre>
<pre> </epc:when><o:p></o:p></pre>
<pre> <epc:when test="eprint_status='buffer' and signoffA and !signoffB and $current_user{canSignoffB}'><o:p></o:p></pre>
<pre> <stage ref="signoffB" /><o:p></o:p></pre>
<pre> </epc:when><o:p></o:p></pre>
<pre> <epc:when test="eprint_status='buffer' and signoffA and signoffB and !signoffC and $current_user{canSignoffC}'><o:p></o:p></pre>
<pre> <stage ref="signoffC" /><o:p></o:p></pre>
<pre> </epc:when><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> </epc:choose><o:p></o:p></pre>
<pre> </flow><o:p></o:p></pre>
<p>This is utterly untested but gives some ideas I hope.
Documentation here:<o:p></o:p></p>
<p><a
href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEPrints_Control_Format&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caff91bd272144ada9edb08d705e2dc6a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=jFZP67xuDRDeLGaw11bAu44Rx8kdOXO%2BDvATnjNfsAs%3D&reserved=0" originalSrc="https://wiki.eprints.org/w/EPrints_Control_Format" shash="Lfd6k1h46G4gVhssfNCy11Oi1hogy9jOpUca5vKLsd0R7q1LCaxgX8Wopzoo6OQVy5YKNjcCGZImBcwCdM9pp54Xg30kxSHPEFStz5KE+HYekmEy0D3w6HfynDGkPAUKv98ek6DVBR9/7oqPdi30ST0ndzbRWpJeiKquEHhzijI="
moz-do-not-send="true">https://wiki.eprints.org/w/EPrints_Control_Format</a><o:p></o:p></p>
<p><a
href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FWorkflow_Format&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caff91bd272144ada9edb08d705e2dc6a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=xvAviUdntpmTjBMHevISVQSQdym%2FFaSo271aq0WVpLw%3D&reserved=0" originalSrc="https://wiki.eprints.org/w/Workflow_Format" shash="LE3O/9PTNsSON2ftgHesW1Lgcc3SDmpMnOWZADSZy0SA3yQ/F9wnvCDzZAq1XpD8QJTEwiGOtTSwNr66adCv+ejKtZcHURWXwbdeIdSpM/xe4cjb/scfaul0hPKCBZu3DzH/ZkpBrx3e43YZ8GZOSNMFzqKxEHW+AVnRlLDEeWo="
moz-do-not-send="true">https://wiki.eprints.org/w/Workflow_Format</a><o:p></o:p></p>
<p><a
href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEPScript&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caff91bd272144ada9edb08d705e2dc6a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=JpBk%2BD1VBxtuASMn%2FS%2B4nTefu2qlUbKRl92BtXXkmgc%3D&reserved=0" originalSrc="https://wiki.eprints.org/w/EPScript" shash="xNP4krEQ5uAGkbF01iCdgWgkrnRuNFLJVi2dSFUfMkOnYteZLy+sMAX5yTs3EfIXz3rPqUcC25UtaTEFmWO3Y7V5N8rFP4lFJ+utL3YIQuTxAEqrTz8VLw0leoIJi4hS+9rxdkslfdpkpIo/n4DnTe7quaa0CrLTUWIdWJOJeQo="
moz-do-not-send="true">https://wiki.eprints.org/w/EPScript</a><o:p></o:p></p>
<p>It's possible to make custom EPScript functions to do more
complex tests.<o:p></o:p></p>
<p><o:p> </o:p></p>
<p><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 26/06/2019 11:05, Johannes Schultze
via Eprints-tech wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi all,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I'm currently evaluating EPrints as a replacement for an old repository <o:p></o:p></pre>
<pre>(custom made). Until now everything worked fine (import of existing <o:p></o:p></pre>
<pre>files and metadata), and I'm now trying to get the release/approval <o:p></o:p></pre>
<pre>workflow configured. As far as I have read in the documentation, there <o:p></o:p></pre>
<pre>are four stages by default:<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>inbox -> buffer -> archive -> deletion<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I would need some more levels (and roles) in the approval workflow. <o:p></o:p></pre>
<pre>Something like this:<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>inbox -> buffer1 -> buffer2 -> buffer3 -> archive -> deletion<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Different roles in the hierarchy of the organisation should approve the <o:p></o:p></pre>
<pre>submitted eprint in multiple steps. Is it possible to configure such <o:p></o:p></pre>
<pre>behaviour in EPrints? Or can something like this only be implemented <o:p></o:p></pre>
<pre>with some kind of plugin?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Regards<o:p></o:p></pre>
<pre>Johannes<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>Christopher Gutteridge <a href="mailto:totl@soton.ac.uk" moz-do-not-send="true"><totl@soton.ac.uk></a> <o:p></o:p></pre>
<pre>You should read our team blog at <a href="http://blog.soton.ac.uk/webteam/" moz-do-not-send="true">http://blog.soton.ac.uk/webteam/</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Dipl. Inf. Johannes Schultze
Gesellschafter / Entwicklung
Tel. +49 40 60940857-5
Fax. +49 40 60940857-1
<a class="moz-txt-link-abbreviated" href="mailto:schultze@effective-webwork.de" moz-do-not-send="true">schultze@effective-webwork.de</a>
effective WEBWORK GmbH
Neuer Wall 18
20354 Hamburg
<a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.effective-webwork.de&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caff91bd272144ada9edb08d705e2dc6a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=FwjJk6hUTKt8VmuGQ2%2BQoClpvmC9ablFd1uFS6BnwEU%3D&reserved=0" originalSrc="http://www.effective-webwork.de" shash="KpjNwhDYaiLEImafNpXjn3GL1cpgnIKM9caOrGmWSCUjGhSXm8HyqiCEJ8D+EFr/wKSu6Cab+QE+oggyK1/k06K5vb9qygDaSaBwIZ1fp57weNlMsvvqUZdk/OqCN4ckfTZ7+10x3eCyrjSfUr5d0QQgUz100c3NNy9yPyWUlWk=" moz-do-not-send="true">http://www.effective-webwork.de</a>
GF Dr. Matthias Finck
HRB 101108 (Hamburg)
UStId DE254169943</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Dipl. Inf. Johannes Schultze
Gesellschafter / Entwicklung
Tel. +49 40 60940857-5
Fax. +49 40 60940857-1
<a class="moz-txt-link-abbreviated" href="mailto:schultze@effective-webwork.de">schultze@effective-webwork.de</a>
effective WEBWORK GmbH
Neuer Wall 18
20354 Hamburg
<a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.effective-webwork.de&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caff91bd272144ada9edb08d705e2dc6a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=FwjJk6hUTKt8VmuGQ2%2BQoClpvmC9ablFd1uFS6BnwEU%3D&reserved=0" originalSrc="http://www.effective-webwork.de" shash="KpjNwhDYaiLEImafNpXjn3GL1cpgnIKM9caOrGmWSCUjGhSXm8HyqiCEJ8D+EFr/wKSu6Cab+QE+oggyK1/k06K5vb9qygDaSaBwIZ1fp57weNlMsvvqUZdk/OqCN4ckfTZ7+10x3eCyrjSfUr5d0QQgUz100c3NNy9yPyWUlWk=">http://www.effective-webwork.de</a>
GF Dr. Matthias Finck
HRB 101108 (Hamburg)
UStId DE254169943</pre>
</body>
</html>