Page 1 of 1

solved: How to pass a document that is uploaded in openKM to another folder? JBOSS WORKFLOW

PostPosted:Thu Dec 15, 2016 5:23 am
by jimac
I am using JBOSS to create a workflows for OPENKM.

1. After user1 uploaded a file. user1 will input some data on it.
the data on it and the file will then be transferred to USER2.

2. USER2 will then review the file , user2 may either accept or reject it.
if User2 accepted it, user2 will input some metada, example. serial#, then after that,
the file will be sent to user3, and user 3 will attach some file,

3.after that the file as well as the attached file will be sent to user4
then user 4 will upload a file then all the FILES , will then be archived.

>>if a user click REJECT, the file will be send back to the user who sent it.<<

can you give me some tips on how to create this workflow?
thank you!
if you have created some workflow that runs like this, please send the file to my email. ricateano10@gmail.com .

GOD BLESS!

Re: How to pass a document that is uploaded in openKM to another folder? JBoss WORKFLOW

PostPosted:Fri Dec 16, 2016 7:52 am
by jllort
Consider reading:
https://docs.openkm.com/kcenter/view/wfg/

OpenKM portable comes with workflow examples, you can download from here:
https://sourceforge.net/projects/openkmportabledev/

About moving documents etc... usually it's done in transactions nodes ( you can see samples, not for moving but with other action in transaction in samples what comes into openkm portable ). You might be interested in OpenKM API:
https://docs.openkm.com/apidoc/com/okm/6.3.2/
https://docs.openkm.com/apidoc/com/okm/ ... ument.html ( you have a method named move )

Re: How to pass a document that is uploaded in openKM to another folder? JBoss WORKFLOW

PostPosted:Fri Dec 16, 2016 9:12 am
by jimac
jllort wrote:Consider reading:
https://docs.openkm.com/kcenter/view/wfg/

OpenKM portable comes with workflow examples, you can download from here:
https://sourceforge.net/projects/openkmportabledev/

About moving documents etc... usually it's done in transactions nodes ( you can see samples, not for moving but with other action in transaction in samples what comes into openkm portable ). You might be interested in OpenKM API:
https://docs.openkm.com/apidoc/com/okm/6.3.2/
https://docs.openkm.com/apidoc/com/okm/ ... ument.html ( you have a method named move )


Good Day!

May I ask how to make this..workflow
A document will be reviewed by another user ( accept or reject)

Re: How to pass a document that is uploaded in openKM to another folder? JBoss WORKFLOW

PostPosted:Sun Dec 18, 2016 10:58 am
by jllort
The task must be assigned to the other user ( take a look here https://docs.openkm.com/kcenter/view/wf ... ample.html for the actor-id ). And then you must have two buttons and two transactions based on its value ( take a look here for it https://docs.openkm.com/kcenter/view/wf ... ample.html )

If you review with pacience all the documenation you will discover almosts things you need.

Re: How to pass a document that is uploaded in openKM to another folder? JBoss WORKFLOW

PostPosted:Mon Dec 19, 2016 12:48 am
by jimac
jllort wrote:The task must be assigned to the other user ( take a look here https://docs.openkm.com/kcenter/view/wf ... ample.html for the actor-id ). And then you must have two buttons and two transactions based on its value ( take a look here for it https://docs.openkm.com/kcenter/view/wf ... ample.html )

If you review with pacience all the documenation you will discover almosts things you need.
--
I have checked all the sample workflows in openKM, but then, there is no example on how to let a DOCUMENT, be reviewed by another user.
I know the usage of actor. My problem is, I don't know how to let the jboss know that A DOCUMENT will be reviewed.


In the "Purchase workflow sample" , a user must input a number to able for it to be reviewed, but in my case, I wont be inputting any number. I just need the "document" that was uploaded be reviewed.
please help. Thanks.

THANK YOU FOR REPLYING.
Please continue to help me.
Thank you!

Re: How to pass a document that is uploaded in openKM to another folder? JBoss WORKFLOW

PostPosted:Tue Dec 20, 2016 9:01 am
by jllort
Things are not so easy. In this case you should link in someway the wf with the uploaded document. The easies way is creating an specific folder where the document will be uploaded ( then you always know that documents into the folder has relation with wf ).

Re: solved: How to pass a document that is uploaded in openKM to another folder? JBoss WORKFLOW

PostPosted:Wed Jan 18, 2017 6:48 am
by pavila
Please, stop calling "JBoss workflow" to "jBPM". It's very confusing. JBoss is an application server and "JBoss Workflows" simply does not exist.

Re: solved: How to pass a document that is uploaded in openKM to another folder? JBOSS WORKFLOW

PostPosted:Thu Feb 07, 2019 7:38 am
by boby
I also have a similar requirement for Document Approval Workflow. User1 passes a document to User2 for review a document. User2 can approve or reject the document. If User2 rejects the document, the document should send back to the User1. If User2 approve the document the document should move to a new folder called 'approved docs'. Kindly help

Re: solved: How to pass a document that is uploaded in openKM to another folder? JBOSS WORKFLOW

PostPosted:Fri Feb 08, 2019 7:32 pm
by jllort
My suggestion for this scenario is using metadata. Change metadata ( select -> status ) from workflow side and with automation create a basic class for catalog https://docs.openkm.com/kcenter/view/ok ... ction.html

The lastest OpenKM version ( still not released but what will be 6.3.7 ) comes with plugin architecture. See in the class the https://github.com/openkm/document-mana ... yword.java it uses the same architecture that we have in professional version but still we have not updated the documentation because is still not released.

https://docs.openkm.com/kcenter/view/ok ... ction.html -> 6.3.6 and older
https://docs.openkm.com/kcenter/view/ok ... ction.html -> 6.3.7 and upper ( you create the class, copy into tomcat/plugins folder and you can use the new action , etc... )