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

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
jimac
Expert Boarder
Expert Boarder
Posts: 89
Joined: Thu Dec 01, 2016 4:01 am

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

Post by jimac » Thu Dec 15, 2016 5:23 am

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!
Last edited by jimac on Tue Jan 03, 2017 1:21 am, edited 1 time in total.

jllort
Moderator
Moderator
Posts: 10452
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Fri Dec 16, 2016 7:52 am

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 )

jimac
Expert Boarder
Expert Boarder
Posts: 89
Joined: Thu Dec 01, 2016 4:01 am

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

Post by jimac » Fri Dec 16, 2016 9:12 am

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)

jllort
Moderator
Moderator
Posts: 10452
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Sun Dec 18, 2016 10:58 am

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.

jimac
Expert Boarder
Expert Boarder
Posts: 89
Joined: Thu Dec 01, 2016 4:01 am

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

Post by jimac » Mon Dec 19, 2016 12:48 am

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!

jllort
Moderator
Moderator
Posts: 10452
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Tue Dec 20, 2016 9:01 am

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 ).

pavila
Moderator
Moderator
Posts: 3051
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

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

Post by pavila » Wed Jan 18, 2017 6:48 am

Please, stop calling "JBoss workflow" to "jBPM". It's very confusing. JBoss is an application server and "JBoss Workflows" simply does not exist.

boby
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: Fri Jan 25, 2019 5:39 am

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

Post by boby » Thu Feb 07, 2019 7:38 am

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

jllort
Moderator
Moderator
Posts: 10452
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Fri Feb 08, 2019 7:32 pm

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... )

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests