Lock/Unlock a file during workflow
PostPosted:Wed Sep 18, 2013 10:29 am
Hello guys
I'm pretty new to openKM and looked the whole day trough the developer manuals regarding the workflows.
I'd like to lock a file with a workflow and unlock it when the workflow is done (and by the way trying to lock any other workflow on this file as long as the workflow is ongoing).
I've tried it with a node and the <action> and with the <script> function, but without success.
Would anyone of you help me out?
Any help would be appreciated, thanks in advance.
Mike
PS: I'm using the most recent community edition.
I'm pretty new to openKM and looked the whole day trough the developer manuals regarding the workflows.
I'd like to lock a file with a workflow and unlock it when the workflow is done (and by the way trying to lock any other workflow on this file as long as the workflow is ongoing).
I've tried it with a node and the <action> and with the <script> function, but without success.
Would anyone of you help me out?
Code: Select all
<node name="node1">
<action class="com.openkm.workflow.DocumentLockActionHandler"></action>
<transition to="task-node1"></transition>
</node>Code: Select all
Both doesn't work - I'm sure I made a stupid mistake...<node name="node1">
<event type="node-enter">
<script>com.openkm.workflow.DocumentLockActionHandler();</script>
</event>
<transition to="task-node1"></transition>
</node>Any help would be appreciated, thanks in advance.
Mike
PS: I'm using the most recent community edition.